Question
using global variables in loadMovie
Hi,
I have a main SWF movie where I declare a global variable :
_global.languagechoice = "french";
on the first frame.
I later user loadMovie to load a second SWF into the main movie. I can't
seem to access the "languagechoice" variable though. here is what I have
tried :
if (_global.languagechoice == "french") {
caption-en._visible = false;
caption-fr.gotoAndStop(1);
} else {
caption-fr._visible = false;
caption-en.gotoAndStop(1);
}
****** and I tried this
if (languagechoice == "french") {
caption-en._visible = false;
caption-fr.gotoAndStop(1);
} else {
caption-fr._visible = false;
caption-en.gotoAndStop(1);
}
****** and I tried this
if (_root.languagechoice == "french") {
caption-en._visible = false;
caption-fr.gotoAndStop(1);
} else {
caption-fr._visible = false;
caption-en.gotoAndStop(1);
}
I also tried them all just using single "=" as well, but nothing works,
any thoughts? is it possible?
Thaks for any input
Tim
I have a main SWF movie where I declare a global variable :
_global.languagechoice = "french";
on the first frame.
I later user loadMovie to load a second SWF into the main movie. I can't
seem to access the "languagechoice" variable though. here is what I have
tried :
if (_global.languagechoice == "french") {
caption-en._visible = false;
caption-fr.gotoAndStop(1);
} else {
caption-fr._visible = false;
caption-en.gotoAndStop(1);
}
****** and I tried this
if (languagechoice == "french") {
caption-en._visible = false;
caption-fr.gotoAndStop(1);
} else {
caption-fr._visible = false;
caption-en.gotoAndStop(1);
}
****** and I tried this
if (_root.languagechoice == "french") {
caption-en._visible = false;
caption-fr.gotoAndStop(1);
} else {
caption-fr._visible = false;
caption-en.gotoAndStop(1);
}
I also tried them all just using single "=" as well, but nothing works,
any thoughts? is it possible?
Thaks for any input
Tim