Using the buttonMode of the Sprite : Sprite : Development Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » Development » Sprite »

 

Using the buttonMode of the Sprite


 
package{
  import flash.display.Sprite;
  
  public class Main extends Sprite{
    public function Main(){
         var foo:Sprite = new Sprite();
         foo.graphics.beginFill(0xff00001);
         foo.graphics.drawRect(00100100);
         foo.graphics.endFill();
         foo.buttonMode = true;
         addChild(foo);
    }
  }
}

        



Leave a Comment / Note


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


Flash / Flex / ActionScript examples

 Navioo Development
» Sprite