Groups | Blog | Home
all groups > flash actionscript > june 2004 >

flash actionscript : Question about var:boolean = true


Habitmaster
6/3/2004 11:09:33 PM
If I attach var x=false; to a frame in a movie clip, and on a frame in the root
time line I attach if(x=fals){ will it work?

i.e. will AS on the root time line be aware of variables stated on a movie
clip time line?

Will
gorlins
6/3/2004 11:46:15 PM
Jeckyl
6/4/2004 9:27:57 AM
no .. because you used a single = instead of double in the if, and you did
not spell false correctly

if (x == false) {
...
}

or better

if (! x) {
...
}

AddThis Social Bookmark Button