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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Buttons - on (release) script

Status
Not open for further replies.

dtk3

MIS
Feb 24, 2004
44
CA
Hello. I have three frame labels, a, b and c each with different data and three buttons a_btn, b_btn and c_btn. The frames with the data are on one layer and the buttons on another. I also have an actions layer that has a stop action set for the duration of the other layers.

I select a_btn and type in the following actionscript:

on (release) {
gotoAndStop ("a");
}

When I test this it doesn't work. I have also tried entering the frame number that the data starts at as opposed to the frame label.

Any suggestions as to what I am doing wrong?

Thanks.
dtk3
 
That should work! Unless your buttons are within a mc and you should then add _root or _level0 to your script...

on (release) {
_level0.gotoAndStop("a");
}

Also, no double quotes on the frame label itself, only in the above script!

If it still doesn't work, post a link to your .fla, zipped up and in a MX only format...






 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top