PDA

View Full Version : Quick syntax variable check thing


28dead
04-08-2003, 04:04 PM
variable to loadmovie

in the frame--------------------

check = wait;

if (check == true) {loadMovie("1.swf",_root.content);

}

on the button -------------------------

on (release) {tellTarget (_root) {check = true
}

}

the load movie works fine by itself, but betting it to activate with variables is something im doing wrong

Help!!!!! :-(

tg
04-08-2003, 04:51 PM
try putting in a trace() statement just before your if statement.

my guess is that check is comming up as undefined, unless you have defined wait somewhere else in your code, or you need to put quotes("") around the word wait so that it is a string... looking at your code, flash thinks wait is another variable, and it is likely to be undefined.