edacsac
10-12-2005, 12:07 AM
I'm trying to think of a way to make a site I'm working on more dynamic. Right now I'm in a position where a movie clip loads a movie that creates a list of buttons inside a scrollpane via an XML file. The XML file contains .swf name and caption for the button. Clicking one of those buttons a sends the command to load that particular movie into the movie clip, which happens to be a picture gallery that also gets its images and captions from different XML file. I need to bridge the gap. When the button is clicked, I would like to load a single generic "image gallery" .swf, and send said .swf the name of the xml file to load. Right now, the clicked button loads a seperate .swf for each gallery, and the only difference per .swf is the XML file it loads - which is hard coded into the AS.
Is it possible to use some type of loadMovie function and send that loaded movie a variable to determine which XML file to load? Sounds like something that is really possible, but I haven't seen anything related to that.
Thanks for any responses!
Is it possible to use some type of loadMovie function and send that loaded movie a variable to determine which XML file to load? Sounds like something that is really possible, but I haven't seen anything related to that.
Thanks for any responses!