• Some users have recently had their accounts hijacked. It seems that the now defunct EVGA forums might have compromised your password there and seems many are using the same PW here. We would suggest you UPDATE YOUR PASSWORD and TURN ON 2FA for your account here to further secure it. None of the compromised accounts had 2FA turned on.
    Once you have enabled 2FA, your account will be updated soon to show a badge, letting other members know that you use 2FA to protect your account. This should be beneficial for everyone that uses FSFT.

Flash button script..

C@$H

Limp Gawd
Joined
May 30, 2001
Messages
322
Ok...so it stop at frame 30. Theres a button. When i click it, i want it to go to a specific frame number... Whats the script for that ?
 
Been a while since I've done actionscript but I believe its something like movie.gotoAndPlay(frame#);

Flash MX has a pretty robust documentation and code snipits, it should be easy to figure out.
 
Code:
onRelease() {
  gotoAndPlay(Frame);
}


Code:
onRelease() {
  gotoAndStop(Frame);
}

--KK
 
King's method is if you put the action script directly on the button. If you wish to contain it into a seperate frame (which I always recommend) on a seperate layer, you would do something like this:
Code:
_root.play_button.onRelease = function(){
	gotoAndPlay("scene 1", 1);	//Alternativly, gotoAndPlay(1)
}
 
Back
Top