I have a navigation that contains main buttons with sub buttons under each. On each sub button I have this to load my external swf’s. The navigation is loaded into level100. Check it out here http://www.gregory.se/flash.html
_level0.mcl.loadClip ("main"+_root.num+"/sub"+itemnum+".swf", 50);
The _root.num and the itemnum are the variables that change depending on what I’ve clicked in my menu system.
In my sub swf’s I have to manually declare these variables (the same numbers as the one above) cause I don’t know how to get them from that swf to this? I need them to be able to load the correct xml file.
var main:Number = 1; var sub:Number = 1; myXML.load("main"+main+"/xml/sub"+sub+".xml")