Im loading variables via loadvariablesnum and im checking the debug and they
successfully getinto the _level0
now for some reason in the next frame its not reading that vari .. IE Below
if(_level0.FID != "")
{
_root.gotoAndPlay(6);
}
in the debug tho under _level0 it chose FID correctly in... doesnt make sense
rezzkilla - 22 Nov 2007 01:24 GMT
Not sure if this helps but sometimes I can't make an equality comparison with
an empty imported variable. Seems in the past i could use an if statement with
empty quotations to check for an empty variable, but the last few projects
using Flash 8 I've had to use undefined.
if(_level0.FID != undefined)
{
_root.gotoAndPlay(6);
}
However, I would write it like
if (_root.FID == undefined) {
//throw an error
gotoAndStop(5);
alert.text = "Please provide an FID";
} else {
//continue on
gotoAndStop(6);
alert.text = "Hello";
}
Are you loading an empty variable and what does your flash movie do (ie goto
frame 6 or not?)?