/ Published in: ActionScript 3
This is just the gist of it. I haven't tested this code exactly.
Expand |
Embed | Plain Text
bitmapData = new BitmapData (sw, sh, true, 0); bitmapRenderer = new Bitmap (bitmapData); blueGoal.filters = [new BlurFilter(2,2,1)]; addChild (bitmapRenderer); this.addEventListener (Event.ENTER_FRAME, onEnter); private function onEnter (evt:Event):void { // apply the blur to the cursor bitmapData.draw (blueGoal, blueGoal.transform.matrix); bitmapData.applyFilter (bitmapData, bitmapData.rect, new Point (0,0), new BlurFilter (2,2,1)); }
You need to login to post a comment.
