Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import flash.display.Sprite;
- import flash.filters.DropShadowFilter;
- // Draw a box.
- /*var boxShadow:Sprite = new Sprite();
- boxShadow.graphics.lineStyle(0);
- boxShadow.graphics.beginFill(0xFF3300);
- boxShadow.graphics.drawRect(50, 50, 100, 100);
- boxShadow.graphics.endFill();
- addChild(boxShadow); */
- // Apply the drop shadow filter to the box.
- var shadow:DropShadowFilter = new DropShadowFilter();
- shadow.distance = 10;
- shadow.angle = 45;
- shadow.blurX = 10;
- shadow.blurY = 10;
- shadow.color = (0x999999);
- // You can also set other properties, such as the shadow color,
- // alpha, amount of blur, strength, quality, and options for
- // inner shadows and knockout effects.
- //boxShadow.filters = [shadow];
- eleBlu.filters = [shadow];
- titolo.filters = [shadow];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement