I have two sections of my app in separate swf files that have very
similar functionality, but have different content. The 2 swf files are
generated from the same fla file. I built a core class that controls
the creation of the menu and loading the content. The menu data and
content is in an xml file called config.xml that I load into the core
class. I attached the core class to the main movie clip in my fla. I
then exported the 2 swfs, put them in their own folders, in which there
was a folder called config that held the config.xml that went with the
section. What I found is it would work fine when I loaded the first swf,
but when I loaded the second, it is still referencing the data for the
first movie. So even though it was a different swf file, the content
was the same. The swf were loaded into the same holder movie, so I
thought this might be the problem. I changed my root movie ot created a
new emptyMovieClip each time a section was loaded, and delete the old
one, but that didn't solve the issue. The only way I found around this
was to create two subclass files that extend the main class, overriding
the function that loads the xml file, and rename the xml files to be
specific to the swf.
My question is, is this normal behavior? How can I get rid of the class
and/or data from memory so the new data will load?
Thanks
Russ
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com