Introducing the Graphics Object : Graphics : Graphics Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » Graphics » Graphics »

 

Introducing the Graphics Object


 

package{
  import flash.display.Sprite;
  
  public class Main extends Sprite{
    public function Main(){
      createSprite();
    }
    public function createSprite(){
      var spr:Sprite = new Sprite();
      spr.graphics.beginFill(0x00ff001.0);
      spr.graphics.drawRect(005050);
      spr.graphics.endFill();
      addChild(spr);
    }
  }
}

        



Leave a Comment / Note


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


Flash / Flex / ActionScript examples

 Navioo Graphics
» Graphics