Posted By

visualadvance on 04/12/11


Tagged


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

StarkCreations


AS3: Mouse Glow Trail


 / Published in: ActionScript 3
 

This is just the gist of it. I haven't tested this code exactly.

  1. bitmapData = new BitmapData (sw, sh, true, 0);
  2. bitmapRenderer = new Bitmap (bitmapData);
  3. blueGoal.filters = [new BlurFilter(2,2,1)];
  4. addChild (bitmapRenderer);
  5.  
  6. this.addEventListener (Event.ENTER_FRAME, onEnter);
  7.  
  8. private function onEnter (evt:Event):void
  9. {
  10. // apply the blur to the cursor
  11. bitmapData.draw (blueGoal, blueGoal.transform.matrix);
  12. bitmapData.applyFilter (bitmapData, bitmapData.rect, new Point (0,0), new BlurFilter (2,2,1));
  13. }

Report this snippet  

You need to login to post a comment.