Advertisement
morpe

ombra 2

Apr 21st, 2011
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import flash.display.Sprite;
  2. import flash.filters.DropShadowFilter;
  3.  
  4. // Draw a box.
  5. /*var boxShadow:Sprite = new Sprite();
  6. boxShadow.graphics.lineStyle(0);
  7. boxShadow.graphics.beginFill(0xFF3300);
  8. boxShadow.graphics.drawRect(50, 50, 100, 100);
  9. boxShadow.graphics.endFill();
  10. addChild(boxShadow); */
  11.  
  12. // Apply the drop shadow filter to the box.
  13. var shadow:DropShadowFilter = new DropShadowFilter();
  14. shadow.distance = 10;
  15. shadow.angle = 45;
  16. shadow.blurX = 10;
  17. shadow.blurY = 10;
  18. shadow.color = (0x999999);
  19.  
  20. // You can also set other properties, such as the shadow color,
  21. // alpha, amount of blur, strength, quality, and options for  
  22. // inner shadows and knockout effects.
  23.  
  24. //boxShadow.filters = [shadow];
  25. eleBlu.filters = [shadow];
  26. titolo.filters = [shadow];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement