Reuse externally loaded elements
Posted on 2003-12-04
Supposing I have an XML file which defines the structure, layout, and graphical elements to use in my site, and the Flash movie loads the XML file first and then arranges itself accordingly... I want to preload all of the images whose paths are defined in the XML file (easy, already did that part) but then I want to reuse them... essentially preload them into client memory or onto the client's Flash player stage, but out of sight, until they are needed in the movie. How do I reference an externally loaded image or movie from within the main movie, and move it/place it accordingly?
Note that this is not as simple as merely loading the file into a blank movie clip and then moving the clip into position when the time comes; rather, the file must be able to be placed into other parts of the movie itself; in other layers nested in several tiers of movie clips, etc. etc.
If the file has been downloaded and placed onto the stage, and can be manipulated accordingly, then it must also be accessible in the same way, right?