|
|
|
#1 |
|
Member
Join Date: Jan 2004
Location: England
Posts: 87
|
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 |
|
|
|
|
|
#2 |
|
Left-Handed Flash User
Join Date: Nov 2003
Location: NJ USA
Posts: 1,375
|
Hiya
![]() Like this : Code:
on (press) {
if (ph1.text = "Belle in Poolroom") {
gotoAndPlay(7);
}
if (ph1.text = "st. Pauls from Millenium Bridge") {
gotoAndPlay(10);
}
}
Mick
__________________
mickbrit55@Comcast.net |
|
|
|
|
|
#3 |
|
Banned
Join Date: Apr 2001
Location: Montréal, Québec.
Posts: 25,397
|
A comparisom if statement uses 2 "==" characters, not one!
|
|
|
|
|
|
#4 |
|
Member
Join Date: Jan 2004
Location: England
Posts: 87
|
thanks
Thanks, that works a treat.
(especially after adding == )thakns for your help, jellyrools |
|
|
|
|
|
#5 |
|
Left-Handed Flash User
Join Date: Nov 2003
Location: NJ USA
Posts: 1,375
|
Thanks newb ... didn't spot that one
![]() Mick
__________________
mickbrit55@Comcast.net |
|
|
|
|
|
#6 |
|
Member
Join Date: Jun 2002
Posts: 67
|
DAMN, i was too late to report help in this thread...
darn it you guys.. hehehe ![]() peace. |
|
|
|
![]() |
|
||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|