Jump to content
Search Community

Eckstein1

Members
  • Posts

    30
  • Joined

  • Last visited

Everything posted by Eckstein1

  1. Nevertheless thanks a lot for your reposes and the great tool... Uli
  2. Hi again, if I understand it correctly there is the following difference between content and rawContent: content: container integrating the loaded swf (rawContent) as a sub-object (name like loader object) rawContent: the loaded swf itself without a container integrating it (name "instance..." whatever) What I'm working on is a tool similar to your XMLLoader which receives a xml structure and generates loadings out of it. What I'm developing is a tool receiving a xml-file and generating tweens, timelines and actions (i.e. MOVIE1.visible=true, MOVIE2.mouseLeave=MOVIE2.x+200, MOVIE3.background.color=0, etc) out of it. To implement the actions quite simple I use the instance names to access the objects. I could implement a code which routes the action if required to the rawContent, but I try to avoid that. Would it be possible for you to add a parameter to set the name of the rawContent (i.e. rawName="MOVIE")? If I read the error message correctly it says that the object is already added to the DisplayList. Maybe you could add a parameter (i.e. addDisplayList=false) to prevent adding it to the DisplayList or is there any way to remove it from the DisplayList, set the name and add it to the DisplayList again? Thanks a lot for your great support Uli
  3. Hi, I want to set the name of a loaded MovieClip. The code attached shows what I want to do. It's not the one I'm using (only used to explain what I try to do). import flash.display.MovieClip; import flash.events.*; import com.greensock.*; import com.greensock.events.LoaderEvent; import com.greensock.loading.*; var myName:String = "Movie"; this[myName] = new MovieClip(); this[myName].name = myName; var loader:SWFLoader = new SWFLoader("movies/main.swf", {name:"example", container:this, onComplete:completeHandler}); loader.load(); function completeHandler(event:LoaderEvent):void { trace(this[myName].name); // Movie trace(event.target.rawContent.name); // instance4 //event.target.rawContent.name = myName; // Error: Error #2078: ... this[myName]=event.target.rawContent; trace(this[myName].name); // instance4 trace(event.target.rawContent.name); // instance4 //this[myName].name = myName; // Error: Error #2078: ... } What do I have to do to set the name and keep the name? Thanks a lot in advance Uli
  4. You are absolutly correct. After diving deeper into my code I realize quite fast where it came from. I'm driving around it and in fact now it does what it should do. Thanks a lot for your time to point on my problem...
  5. Hi, I'm creating an animation. It keeps it's language specific parts in separate files. So first I detect the computer's language and try to load the file. If it doesn't exist I always load the default English file. I try to realize this by URL and alternateURL. So the computer's language file I populate in the URL and the English filename I populate in alternateURL. If the specific file doesn't exist the onError and onComplete function is called. Now it sucessfully loads the alternateURL and calls the onComplete again. I'm wondering why the onComplete is called twice. I expected it to be called just once after the successful load. Is my expectation wrong or am I using the URL/alternateURL in a context it should not get used. Uli
×
×
  • Create New...