Posted By

adrianparr on 04/14/10


Tagged

filter Glow as3 glowfilter


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

fortes
tspitzr
scottwatkins


AS3 Glow Filter Demo


 / Published in: ActionScript 3
 

This code assumes there is a movieclip on the stage with an instance name of 'ball_mc'.

  1. import flash.filters.GlowFilter;
  2. import flash.filters.BitmapFilterQuality;
  3.  
  4. var glowColor:Number = 0x000000;
  5. var glowAlpha:Number = 1;
  6. var glowBlurX:Number = 3;
  7. var glowBlurY:Number = 3;
  8. var glowStrength:Number = 2;
  9. var glowQuality:Number = BitmapFilterQuality.LOW;
  10. var glowInner:Boolean = false;
  11. var glowKnockout:Boolean = false;
  12.  
  13. var gf:GlowFilter = new GlowFilter(glowColor, glowAlpha, glowBlurX, glowBlurY, glowStrength, glowQuality, glowInner, glowKnockout);
  14.  
  15. ball_mc.filters = [gf];

Report this snippet  

You need to login to post a comment.