flash on 2010-5-5
♥0 |
Line 24 |
Modified 2010-05-05 08:04:08 |
MIT License
archived:2017-03-20 08:52:11
ActionScript3 source code
/**
* Copyright sinclairc5 ( http://wonderfl.net/user/sinclairc5 )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/haUX
*/
package {
import flash.display.Sprite;
[SWF(width='400', height='300', backgroundColor='#000000', frameRate='30')]
public class FlashTest extends Sprite {
public function FlashTest() {
// write as3 code here..
var dial:Dial = new Dial();
addChild( dial );
}
}
}
import flash.display.Sprite;
class Dial extends Sprite
{
public function Dial()
{
draw();
}
private function draw()
{
this.graphics.beginFill( 0xffff, 1 )
this.graphics.drawCircle( 0, 0, 10 );
this.graphics.endFill();
}
}