SimpleButton with up, over and down sprite : SimpleButton : Development Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » Development » SimpleButton »

 

SimpleButton with up, over and down sprite


 

package{
  import flash.display.*;
  
  public class Main extends Sprite{
    public function Main(){
        var overSprite:Sprite = new Sprite();
          overSprite.graphics.beginFill(0xff00001);
          overSprite.graphics.drawRect(00100100);
          overSprite.graphics.endFill();
        
          var upSprite:Sprite = new Sprite();
          upSprite.graphics.beginFill(0x00ff001);
          upSprite.graphics.drawRect(00100100);
          upSprite.graphics.endFill();
        
          var downSprite:Sprite = new Sprite();
          downSprite.graphics.beginFill(0xffffff1);
          downSprite.graphics.drawRect(00100100);
        
          downSprite.graphics.endFill();
        
          var btnOne:SimpleButton = new SimpleButton(upSprite, overSprite, downSprite, overSprite);


    }
  }
}

        



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


Flash / Flex / ActionScript examples

 Navioo Development
» SimpleButton