PDA

View Full Version : basic instance naming question


annette
11-09-2004, 05:29 PM
If I have two different swfs loading into a main swf but never actually loaded at the same time does it matter if they share the same instance/variable names? Scenerio being one swf for dial up users and another for broadband with largely the same actionscripting + loading into one holder mc in the main swf?

Xeef
11-09-2004, 05:54 PM
Hmmm

shoudn't by a problem
even if you load it at the same time because the will even then have diferent parent's
so diferent paths to the variables

EtherealChaos
11-10-2004, 04:48 AM
hey what do you mean by parent's?

wut if the swf files have links to say, "_root.variable"? where would _root refer to?

Xeef
11-10-2004, 02:18 PM
sorry was wrong

in this case you woud need to use "_lockroot"

annette
11-11-2004, 07:11 AM
Sorry I've not been back to say thanks for your responses. I ended up loading the swfs into seperate holder mc's in the main swf to be on the safe side. All the swfs had relative pathing so didnt have the _root problem and didnt want to limit to flash 7 with lockroot.