| Creat A Simple Button First of all, In this tutorial you will learn how to make even the simplest of buttons and how to add actionscript to it so it can either play your movie,stop your movie or jump to a certain frame. 1. First open your flash program with any size stage you please. 1.1. Select the colours that you want for your button 2. Select either the circle tool or the square tool and drag that shape onto your stage. 2.1. If you have selected the square tool then before you draw your shape onto the stage double click the square tool icon and another box will appear. 2.2. If you enter a number into that box it will round the corner of the square, 100 being the most round,0 being no difference. 3. Highlight all you shape and right click it. 3.1. Click on convert to symbol and make it a movieclip,Make sure that it is centered. 3.2. Now click on you new movieclip and right click it. 3.3. Goto create a symbol again and this time make it a Buton also center it. 4. You know have a button, but it does nothing so you need to addscript. So once again right click your new button and goto action panel, You can also do this by clicking on the action panel window and then clicking the button. 5.Its time to add the script. now you can either type it up or by draggin it over from the menu on the left, For now i suggest to copy and paste the following scipts into the panel and click ok.
GotoandPlay-This will goto the the selected frame,Change the 2 to the Fame you want.
script: gotoAndPlay(2);
Stop-This will Stop the movie on the frame clicked.
Script: Stop()
If you have any problems then please PM me. (Sorry for no images... My internet is playing up) |