![]() |
|
| • All Online Courses • New Courses • QuickTips • Word Definitions • Submit a Tutorial • Links • |
|
Adding Behaviors to Buttons in Flash Tutorial Adding Behaviors to Buttons (Continued)Remember that when we added a behavior to our button earlier, we selected a movie clip behavior from the Behaviors panel. Flash automatically added the event for the mouse (on release). When we add script using the Actions panel, we need to add the event manually. Under Global Functions, select Movie Clip Control and then on from the submenu:
When we add the on event, Flash inserts the code and then pops up a menu allowing us to select which event we want to use. Double-click release in the menu to insert it. The on(release) event makes the behavior happen when the user releases the mouse button after clicking it.
Tip: If you accidentally lose the pop-up menu, click the Show Code Hint The Script pane should now look like the following:
This tells Flash to play the animation when the user clicks the play button.
The stop() action will stop the animation in whatever frame is currently active when the user presses the pause button. If the user then presses the play button, the animation will continue from that frame. This is an effective means of essentially pausing the animation.
by Summer Doucet Find more free Software tutorials from Learnthat.com. More Information:
Help us by rating this tutorial: [---] [--] [+] [++] [+++] [---] lowest; [+++] highest
|
|
||||||
![]() |
Learn: Free
Tutorials - Links
to Free Tutorials
Understand: Free Technical Definitions
- ExplainThat Whitepapers
Use: Certification Section -
Discussion Forum
Visit Our Network Sites:
About Us : Contact Us : Advertise : Privacy Information