If you want to have a button that takes you to another frame look below:
You need to set up your buttons and use this actionscript to help you out.
Once you have done creating your button and making it a symbol. Click once on your button and open the actions panel (shortcut is F9). This is where all the code for your button will go.
Well the first line is pretty obvious, when you release off the button, do whatever is between the {} brackets.
Where it says _root.gotoAndStop, you're telling the code that you want the play head to go to a certain frame and stop there. However, you can also do gotoAndPlay, if you want the header to continue playing from a certain frame.
Finally, there's the (1). I just used that number for the sake of example, but basically change the number to whatever frame number you want the button to go to.
If you want to have a button that takes you to another frame look below:
ReplyDeleteYou need to set up your buttons and use this actionscript to help you out.
Once you have done creating your button and making it a symbol. Click once on your button and open the actions panel (shortcut is F9). This is where all the code for your button will go.
code:
--------------------------------------------------------------------------------
on (release){
_root.gotoAndStop(1);
}
--------------------------------------------------------------------------------
Description of what just happened:
Well the first line is pretty obvious, when you release off the button, do whatever is between the {} brackets.
Where it says _root.gotoAndStop, you're telling the code that you want the play head to go to a certain frame and stop there. However, you can also do gotoAndPlay, if you want the header to continue playing from a certain frame.
Finally, there's the (1). I just used that number for the sake of example, but basically change the number to whatever frame number you want the button to go to.
How to make a mute button
ReplyDeletehttp://www.photoshopsupport.com/flash/tt/flash-mute-sound.html
Included in this tutorial is how to make a simple mute button with limited coding but is essential to the learning process.
Be sure to pay attention to the concepts as it may aid you in future flash projects.
How make an animated button
ReplyDeletehttp://www.layersmagazine.com/flash-button-animation.html
This example and tutorial shows the basics on how to create and animate a really cool button roll-over effect, check it out!