flash on 2010-4-13
/**
* Copyright rou ( http://wonderfl.net/user/rou )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/5T4r
*/
package {
import flash.display.Sprite;
import flash.events.Event;
public class FlashTest extends Sprite {
public function FlashTest() {
var baseWidth:Number = stage.stageWidth;
var baseHeight:Number = stage.stageHeight;
x = baseWidth / 2.0;
y = baseHeight / 2.0;
with (graphics)
{
for (var i:uint = 0; i < 100; i++)
{
beginFill(Math.random() * 0xFFFFFF, Math.random());
drawCircle(baseWidth * Math.random() - x,
baseHeight * Math.random() - y,
Math.random() * 50);
endFill();
}
}
addEventListener(Event.ENTER_FRAME,
function(event:Event):void
{
rotationY += 2;
});
}
}
}