Blur Filters in AS3


/ Published in: ActionScript 3
Save to your folder(s)



Copy this code and paste it in your HTML
  1. // create blurFilter object
  2. // your x and y properties determine how much that axis is blurred.
  3. // if you use values that are powers of 2, the filter will render more quickly.
  4. // quality can be set by 1 = low, 2 = medium, and 3 = high
  5. blur = new BlurFilter(BLUR-X, BLUR-Y, QUALITY);
  6.  
  7. // Actionscript assumes you'll want to add multiple filters at once.
  8. // If you want to, you can add all of your filters to an array and
  9. // apply it that way. If you only have one, just create a quick array this way.
  10. myObject.filters = [blur];

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.