To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here


A Flash Developer Resource Site

Go Back   Flash Kit Community Forums > Flash Help > Flash MX

Reply
 
Thread Tools Search this Thread Display Modes
Old 03-06-2004, 01:08 PM   #1
jellyrools
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
jellyrools is offline   Reply With Quote
Old 03-06-2004, 01:11 PM   #2
mickbrit55
Left-Handed Flash User
 
mickbrit55's Avatar
 
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);
}
}
The conditional test has to be in brackets ()

Mick
__________________
mickbrit55@Comcast.net
mickbrit55 is offline   Reply With Quote
Old 03-06-2004, 01:12 PM   #3
oldnewbie
Banned
 
Join Date: Apr 2001
Location: Montréal, Québec.
Posts: 25,397
A comparisom if statement uses 2 "==" characters, not one!
oldnewbie is offline   Reply With Quote
Old 03-06-2004, 01:20 PM   #4
jellyrools
Member
 
Join Date: Jan 2004
Location: England
Posts: 87
thanks

Thanks, that works a treat. (especially after adding == )

thakns for your help,
jellyrools
jellyrools is offline   Reply With Quote
Old 03-06-2004, 01:24 PM   #5
mickbrit55
Left-Handed Flash User
 
mickbrit55's Avatar
 
Join Date: Nov 2003
Location: NJ USA
Posts: 1,375
Thanks newb ... didn't spot that one

Mick
__________________
mickbrit55@Comcast.net
mickbrit55 is offline   Reply With Quote
Old 03-06-2004, 11:54 PM   #6
Filosofer
Member
 
Join Date: Jun 2002
Posts: 67
DAMN, i was too late to report help in this thread...

darn it you guys.. hehehe


peace.
Filosofer is offline   Reply With Quote
Reply

Go Back   Flash Kit Community Forums > Flash Help > Flash MX

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:07 PM.


internet.commerce
Be a Commerce Partner
 »  »  »  »  »  »  »
 »  »  »  »  »  »
 

    

Acceptable Use Policy


The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.