|
-
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?
thanks,
jellyrools
-
Left-Handed Flash User
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. (especially after adding == )
thakns for your help,
jellyrools
-
Left-Handed Flash User
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|