all groups > flash actionscript > january 2007 >
You're in the

flash actionscript

group:

Complex Buttons & Keyframe


Complex Buttons & Keyframe Jak Plague
1/2/2007 8:14:34 PM
flash actionscript:
Hi there,

I have a project I have been working on in Flash 8, that really needed the
'Complex Buttons' as provided here -
www.kirupa.com/developer/mx2004/button_effect.htm
(you can download the .fla here)

I got them to work really well ... But I am having issues making them go to a
key frame, instead of where the tutorial code had them going (which was a 'get
url' back to kirupa.com.)

See here -
this.onRelease = function(){
getURL("www.kirupa.com","_blank");
}
//

I need this button to simply go to a key frame, when you click it, like this -
on (release) {
_root.gotoAndPlay(90);
}

When I change it to this ... It kills the button, and make the code unstable
on export.
I even tried this -
this.onRelease = function(){
_root.gotoAndPlay(90);
}

And no go ... If any can help me out, I would be very grateful.

Thanks much!,
~Jak

p.s. I plugged these buttons into Flash 8, but exported as Flash 7,
Actionscript 2.0
Re: Complex Buttons & Keyframe aniebel
1/2/2007 8:40:29 PM
try putting your code on the main timeline where "my_btn" is the instance name of your movieclip button:
my_btn.onRelease = function(){
_root.gotoAndPlay(90);
AddThis Social Bookmark Button