I am having problems with this if else statement.
I have a variable (frame number 30) passing into my swf from another swf. This I know is working correctly.
on (release) { getURL("http://www.website.com/land.html?stateVar=30"); }
I am directing the swf to start on different frame numbers depending on the variable, this is working.
But when I place this code:
if(stateVar==30){
gotoAndPlay(30);
}
else{
stop();
}
I have also tried this:
if(stateVar=="30"){
gotoAndPlay(30);
}
else{
stop();
}
(in case it was a string vs number issue.)
it just stops - it does not go to frame 30.
I need this because I need the file to stay on frame 1 if no variable is passed in.
Am I doing something obvious wrong?
Is there a better way to do this?
Thanks in advance
Shawn