Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

loading movies into the library

Status
Not open for further replies.

albie101

Programmer
Oct 8, 2001
50
NZ
is there a way to load movies into the library using actionscript? I have a whole heap of .swf names in an xml file which I need to load into my movie. I don't really want to use loadMovie, and was wondering if there was a way to import these into the library.

Thanks
Em
 
You can use attachMovie - this loads a movieClip into either your main movie or another movieClip at runtime (you have to export the clip from your library when you publish the movie, right click and look at "linkage properties").

You could target this in the same way as you were intending in your earlier post by retrieving the name from a file.
 
Wouldn't this mean that each movieClip would have to already be loaded into the library before runtime though? Or can I add them after the movie is already running?

Sorry - I'm a little confused be it all...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top