-
whats wrong with my if?
im making an online gallery for my friends and family, but something is going wrong with the if command:
on (press) {
if ph1.text = "Belle in Poolroom" {
gotoAndPlay(7);
}
if ph1.text = "st. Pauls from Millenium Bridge" {
gotoAndPlay(10);
}
}
the actionscript error report says i need to put in some (, but i dont know where? :confused:
thanks,
jellyrools
-
Hiya :)
Like this :
Code:
on (press) {
if (ph1.text = "Belle in Poolroom") {
gotoAndPlay(7);
}
if (ph1.text = "st. Pauls from Millenium Bridge") {
gotoAndPlay(10);
}
}
The conditional test has to be in brackets ()
Mick
-
A comparisom if statement uses 2 "==" characters, not one!
-
thanks
Thanks, that works a treat. :cool: (especially after adding == :D )
thakns for your help,
jellyrools
-
Thanks newb ... didn't spot that one :)
Mick
-
DAMN, i was too late to report help in this thread...
darn it you guys.. hehehe
:)
peace.