I'm having a problem with the button for a navigation bar. I want to have it so on button hit the text on the button is like the product of this tutorial. I'm not quite sure how to go about it. I have made the movie clip, but how to integrate it to the actual button is giving me a problem.
Thanks for any help.
Dynamic buttons
Started by LkuHomer, Feb 28 2007 04:49 PM
2 replies to this topic
#1
Posted 28 February 2007 - 04:49 PM
#2
Posted 28 February 2007 - 09:32 PM
From what I understand, you want it so when you press on the button the button text does that fly off the button like in the tutorial?
Make your button a movieclip instead and give it the code:
replace the ## with either the frame number of the label name of the part of that movieclip where the animation is. This will probably require a blank frame to start with that contains the name of the text in a static spot and a stop() action. Put the animation on the next frame and you should be good.
Make your button a movieclip instead and give it the code:
this.onPress = function(){
this.gotoAndPlay(##);
}
this.onRelease = function(){
this.gotoAndStop(1);
}
replace the ## with either the frame number of the label name of the part of that movieclip where the animation is. This will probably require a blank frame to start with that contains the name of the text in a static spot and a stop() action. Put the animation on the next frame and you should be good.
#3
Posted 28 February 2007 - 11:33 PM
OK, thanks Pax, that makes sense. I appreciate the help.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users
