-
variable question.
Here is my problem.
I have a main movie timeline. In that movie I have several movie clips that I want to play when a variable is entered in a external movie that I load at level 1.
When I use this on the main time line.
if(_level1.coin3 = "1"){
_root.coin3.gotoAndPlay(2);
;
}
The movie automatically starts playing.
When I use this
if(_level1.coin3 == "1"){
_root.coin3.gotoAndPlay(2);
;
}
Nothing happens no matter what variable is put in.
Anyone know what im doing wrong?
-
= means you are assigning it the value of 1
== means you checking the equality to 1
sounds like a path/scope issue.. like the var isnt getting set or checked correctly..