Flash
  Home arrow Flash arrow Page 3 - Flash Buttons
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Moblin 
JMSL Numerical Library 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
FLASH

Flash Buttons
By: James Payne
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 3 stars3 stars3 stars3 stars3 stars / 25
    2007-11-19

    Table of Contents:
  • Flash Buttons
  • Making A Simple Color Changing Button
  • Creating the Different Button States
  • Testing the Movie

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Flash Buttons - Creating the Different Button States


    (Page 3 of 4 )

    The Up State

    As I said earlier, the Up state defines how a button looks when a mouse button is pressed and then released over it. Choose the Rectangle graphic you created earlier from the Library Pane, and drag it to the center of the stage, making sure that the Up state is the state you are in (it will be highlighted if so).

    Before we begin with the other states, click on the UP phase, then hold down the shift button and select the Over, Down, and Hit phases, so that all four states are selected. Now either right click and choose Insert Blank Keyframes (make sure you choose Blank Keyframe and not the other types) or press Insert>>Blank Keyframe from the menu. This will create duplicate frames across the board. The Rectangle should only appear in the Up state at this point. Otherwise the program will not work.

    The Over State

    Again, the over state is how the button appears when the user's mouse moves over it. If you look at the top of your screen you will see the Onion Skinning button.




    Make sure your Onion Skinning button is on; if it isn't, make sure to click it. Click the Over state frame. You should now see the outlined view of where the rectangle was in the previous frame. This is so you can place a new image in the same spot without using rulers or going through a bunch of trouble. It will appear as it does in the picture above: sort of hazy.

    Next, drag an instance of the Rectangle button to the stage and place it so that it is exactly over the Onion Skin outline (you should not be able to see the Onion Skin after you do this).

    Once the Rectangle is in place, click on the Color drop-down box in the Properties Pane and choose the Brightness option. Set the brightness level to around 50%. This will fade out the image, giving it a similar look to the onion skin.

    The Down State

    Our friend the down state is how the button appears when the user clicks on it, but does not release the mouse button. Again, we are going to drag an instance of our Rectangle graphic to the stage, making sure to align it on top of the onion skinned button from the previous frame. This time we are going to change the color of the button to a deeper shade of red.

    Click on the Color drop-down box located on the Properties Pane and choose the Tint option. Pick a darker color of red from the Color Selector box; beneath that you will see the RGB (red, green, blue) options. Lower the Red to about 55 or so or until the red of the box is a darker color than the original shade.

    The Hit State

    Lastly, the Hit State, as we said, is the area that the button is in. Click the Hit state frame and drop an instance of the Rectangle graphic over the onion skin.

    And that's it.

    More Flash Articles
    More By James Payne


       · Hey, thanks for stopping by to read my article. I mean really, you should be...
     

    FLASH ARTICLES

    - Organizing Frames and Layers for Flash Anima...
    - Organizing Frames and Layers
    - Using XML and ActionScript with Flex Applica...
    - Interfaces and Events with ActionScript and ...
    - Manipulating Data with ActionScript in Flex ...
    - ActionScript Syntax for Flex Applications
    - ActionScript in Flex Applications
    - A Closer Look at Apollo`s File System API
    - Using the File System API
    - ActionScript 101
    - Flash Buttons
    - Advanced Flash Animation
    - Creating Your First Animated Movie with Flas...
    - Flash: Building Blocks
    - Building Preloaders






    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
    Stay green...Green IT