Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ActionScripting and buttons

Status
Not open for further replies.

jason12776

Technical User
Nov 15, 2001
93
US
Does anybody know of any good Websites for learning ActionScripting. In paticular, using Flash MX, I created a text box and if the contents of the text box contain a certain word, to go to a certain fram. But it just sits there.

on (release)
{
if (vendor_name = "Burrows")
{
gotoAndStop(1);
}
}

Vendor_Name is the name I gave to the text box and set it to input text. I also tried it like:

on (release)
{
if (vendor_name.text = "Burrows")
{
gotoAndStop(1);
}
}

This way just set the text box = "Burrows" when the button was clicked on. Any suggestions? I have a lot more scripting to go, so any websites would be great.

Cheers,
Jason
 
This will work :

on (release)
{
if (vendor_name == "Burrows")
{
gotoAndStop(1);
}
}

you need double equal signs (==) for equal to Regards

Big Bad Dave

logo.gif


davidbyng@hotmail.com
 
Big Bad Dave,

I sent you an email with screenshots. It still isn't working though I was positive it would. I should've known that. If you can, take a look at it.

Jason
 
I've emailed you back Regards

Big Bad Dave

logo.gif


davidbyng@hotmail.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top