Home arrow Flash arrow Page 2 - Flash Buttons
FLASH

Flash Buttons


Everybody seems to like pushing buttons online, but who likes buttons that just sit there? Nobody, that's who. How can you tell if you pressed a button online with your mouse if you don't get some kind of feedback? This tutorial will help you create buttons in Flash that let your visitors know when they interact with them.

Author Info:
By: James Payne
Rating: 4 stars4 stars4 stars4 stars4 stars / 31
November 19, 2007
TABLE OF CONTENTS:
  1. · Flash Buttons
  2. · Making A Simple Color Changing Button
  3. · Creating the Different Button States
  4. · Testing the Movie

print this article
SEARCH DEVARTICLES

TOOLS YOU CAN USE

advertisement
Flash Buttons - Making A Simple Color Changing Button
(Page 2 of 4 )

For starters, open up Flash and click on the Rectangle Button. Next, draw a rectangle in the center of the stage, making sure to color it Red. Remember, this is a button, so don't make it too large.

Next, use the Selection Tool and double click inside the rectangle until both the inside and outside are highlighted. Then click on Insert>>Convert to Symbol and choose Graphic as the type. Name the symbol Rectangle and click the OK button.

Now delete the rectangle off the stage. I know, I know: why did we create it? Because I like to waste your time fool! Muaahhah!

Click on Window>>Library or press the F11 key. This will open your Library Pane. Inside you will see the symbol you just created, the Rectangle Graphic.

Next, click on Insert>>New Symbol. Choose Button for the Behavior, give it some silly name like MyButton and click the OK button.

As you can see, Flash automatically defaults you to the edit button view.

Buttons have four states in Flash. They are as follows:

  • Up: How the button appears when a mouse button is pressed and then released over it.

  • Over: How the button appears when the mouse is moved over it.

  • Down: How the button appears when the mouse button is pressed over it and not released.

  • Hit: This is used to determine the area the button is in.


blog comments powered by Disqus
FLASH ARTICLES

- More Top Flash Game Tutorials
- Top Flash Game Tutorials
- Best Flash Photo Gallery Tutorials
- The Top Flash Tutorials for Menus
- 7 Great Flash Tutorials
- Adobe Creative Suite 5.5 Now Available
- Critical Flash Vulnerability Heats Up the Web
- More on Nonpersistent Client-Side Remote Sha...
- Nonpersistent Client-Side Remote Shared Obje...
- Using the Decorator Pattern for a Real Web S...
- Using Concrete Decorator Classes
- Delving More Deeply into the Decorator Patte...
- The Decorator Pattern in Action
- A Simple Decorator Pattern Example
- Decorator Pattern

Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 



© 2003-2012 by Developer Shed. All rights reserved. DS Cluster 4 - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials