flash on 2010-3-30
/**
* Copyright hacker_4dwegcvw ( http://wonderfl.net/user/hacker_4dwegcvw )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/v0Mo
*/
package {
import flash.display.Sprite;
import flash.display.Graphics;
import flash.filters.DropShadowFilter;
public class FlashTest extends Sprite {
public function FlashTest() {
var window:Sprite = new Sprite();
window.x = 25;
window.y = 25;
addChild(window);
var w:int = 300;
var h:int = 300;
var ellipse:int = 50;
var headerH:int = 50;
var footerH:int = 50;
var margin:int = 10;
//var backgroundBmpDate:BitmapData = new WindowBackgroundBitmap(0,0);
var contentsColor:uint = 0x333333;
var g:Graphics = window.graphics;
g.lineStyle(0.1,0,1,true);
g.beginFill(0);
g.drawRoundRect(0,0,w,h,ellipse,ellipse);
g.endFill();
g.lineStyle(0,0,0);
g.beginFill(contentsColor);
g.drawRect(margin,headerH,w-margin*2,h-headerH-footerH);
g.endFill();
//var shadowFilter:DropShadowFilter = new DropShadowFilter(4,45,0,0,7,3,3,0.7,3);
var shadowFilter:DropShadowFilter = new DropShadowFilter(4,45,0,0.7,3,3,0.7,3);
window.filters = [shadowFilter];
}
}
}