flash on 2011-3-28
♥0 |
Line 22 |
Modified 2011-07-05 20:22:26 |
MIT License
archived:2017-03-20 05:02:47
ActionScript3 source code
/**
* Copyright phi16 ( http://wonderfl.net/user/phi16 )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/qTht
*/
package {
import flash.display.Graphics;
import flash.display.Shape;
import flash.display.Sprite;
import flash.events.Event;
public class FlashTest extends Sprite {
public var rad:Number=10;
public function FlashTest(){
this.x=this.y=235;
this.addEventListener(Event.ENTER_FRAME,Loop);
}
public function Loop(e:Event):void{
this.graphics.clear();
this.graphics.beginFill(0xff00ff);
for(var i:int=0;i<16;i++){
this.graphics.drawCircle(Math.cos((i*360/16+rad)*3.1415926535/180)*180,Math.sin((i*360/16+rad)*3.1415926535/180)*180,20);
}
this.graphics.endFill();
rad++;
}
}
}