Fill a rectangle : Rectangle : Graphics Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » Graphics » Rectangle »

 

Fill a rectangle


 

package{
  import flash.display.*;
  import flash.filters.*;
  public class Main extends Sprite{
    public function Main(){

        var box:Sprite = new Sprite(  );
        box.graphics.lineStyle(  );
        box.graphics.beginFill(0xFFFFFF);
        box.graphics.drawRect(00100100);
        box.graphics.endFill(  );
        addChild(box);
        box.filters = [new DropShadowFilter(10)new GlowFilter(  )];

    }
  }
}

        



Leave a Comment / Note


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


Flash / Flex / ActionScript examples

 Navioo Graphics
» Rectangle