ActionScript: Flash Buttons with Style

In today's article, Allan shows you how to abstract all the parameters for his flash button into Actionscript, making a generic function that allows the Flash button to be controlled programmatically from outside Flash.
This 13 page article is suitable for beginners and intermediate Actionscripters and Dreamweaver users who wish to enhance the interactivity and look of buttons by using Flash.
| User Level: | Beginner |
|---|---|
| Product: | Dreamweaver MX |
| Technologies: | HTML, Flash |
| Number Of Pages: | 13 |
Table of Content:
- The core button
- Altering last week's button
- Creating the button from scratch
- ActionScript concepts
- Making it all dynamic
- Creating the Movie clip
- Giving the button some more to do
- The root timeline
- The code itself
- Variables for testing
- Building our own functions
- Starting the animation
- Stopping the animation
- Creating the animThing Object
- The animThing.startup() function
- The animThing.doAnim function
- The animThing.grow function
- Adding more animations
- Putting it all together
Allan Kent
Allan comes from Cape Town, South Africa. He has been implicated in writing for several WROX, glasshaus, Wiley and Apress publications, generally in the 'cool stuff that PHP can do' sections.
You can catch up with him at his website http://www.mediafrenzy.co.za.
User Reviews
Total of 4 reviewsAgree that link is needed.
Written by George Zirfas on February 27, 2004I agree that providing a link for the source files is needed. Because flash allows you to add actions almost anywhere, to frames, movie clips etc., it's easy to put your scripts somewhere they don't belong. Which either makes them not execute or ...
RE: RE: Not so great...
Written by Allan Kent on August 18, 2003Shawn, I just checked and we can in future provide a download link for the source files used in the article. This will help avoid confusion about where code blocks need to go and what the code is exactly. Allan
RE: Not so great...
Written by Shawn Kelshaw on August 18, 2003Alan. I apologize. I should have caught that myself. Anyway, thanks for your attention to it and I checked the site. The site instructions are correct too. I will post an amendment to my first review soon. Shawn Everyone, I screwed up. This ...
Not so great...
Written by Shawn Kelshaw on August 14, 2003I am a intermediate level flash developer and thought this would be a good tutorial. After purchase, I went through the .pdf and attempted to execute. However, it seems this tutorial may rely a little too much on a previous tutorial and code. The ...












