Skip to main content
May 21, 2009
Answered

Moving loader information to main timeline

  • May 21, 2009
  • 1 reply
  • 578 views

Im trying to create a gallery application in flash.

I created a movie clip and inside of it i create a loader variable.

after loading it i want to put it on the stage but not using the same loader.

what im trying todo is to load the information, and the copy the loaded information to a different loader that lives on the main timeline (root)

and then use the addChild to put it on stage but its got to be on the main timeline or a different movieclip, not the same movieclip that loaded the object.

does any1 know how can i do it ??

Should i post the source code ?

This topic has been closed for replies.
Correct answer

Using the Loader class it's actually possible to addChild to any timeline, regardless of where you have defined the loader variable. Just do something like this:

parent.addChild(loader)

1 reply

Correct answer
May 21, 2009

Using the Loader class it's actually possible to addChild to any timeline, regardless of where you have defined the loader variable. Just do something like this:

parent.addChild(loader)

May 21, 2009

Thanks alot. its working great .

May 21, 2009

Cool. Also not that you can move it at any point later simply by using addChild again. It will automatically remove it from where it used to be and put it wherever else you want it to be.