Guest

IconButton.as

By: a guest on May 6th, 2010  |  syntax: ActionScript 3  |  size: 0.60 KB  |  hits: 169  |  expires: Never
download  |  raw  |  embed  |  report abuse
Copied
  1. package Components
  2. {
  3.  
  4.         import spark.components.Button;
  5.        
  6.         //icons
  7.         [Style(name="iconUp",type="*")]
  8.         [Style(name="iconOver",type="*")]
  9.         [Style(name="iconDown",type="*")]
  10.         [Style(name="iconDisabled",type="*")]
  11.        
  12.         [Style(name="iconWidth",type="Number")]
  13.         [Style(name="iconHeight",type="Number")]
  14.        
  15.        
  16.        
  17.         //paddings
  18.         [Style(name="paddingLeft",type="Number")]
  19.         [Style(name="paddingRight",type="Number")]
  20.         [Style(name="paddingTop",type="Number")]
  21.         [Style(name="paddingBottom",type="Number")]
  22.         public class IconButton extends Button
  23.         {
  24.                 public function IconButton()
  25.                 {
  26.                         super();
  27.                 }
  28.         }
  29.        
  30. }