Use GlowFilter : GlowFilter : Graphics Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » Graphics » GlowFilter »

 

Use GlowFilter


 

package{
  import flash.display.Sprite;
  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(  );
        var boxShadow:Sprite = new Sprite(  );
        boxShadow.graphics.lineStyle(  );
        boxShadow.graphics.beginFill(0xFFFFFF);
        boxShadow.graphics.drawRect(00100100);
        boxShadow.graphics.endFill(  );
        addChild(boxShadow);
        addChild(box);
        box.filters = [new GlowFilter(  )];
        boxShadow.filters = [new DropShadowFilter(1045014411, false, true)];

    }
  }
}

        



    Related Scripts with Example Source Code in same category :

Leave a Comment / Note


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


Flash / Flex / ActionScript examples

 Navioo Graphics
» GlowFilter