flash on 2009-10-10
♥0 |
Line 21 |
Modified 2009-10-10 17:30:43 |
MIT License
archived:2017-03-30 09:36:29
ActionScript3 source code
/**
* Copyright hacker_9p8x8mco ( http://wonderfl.net/user/hacker_9p8x8mco )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/6zsE
*/
package{
import flash.display.Sprite;
public class flashTest extends Sprite{
public function flashTest(){
var s1:Sprite = new Sprite();
s1.graphics.lineStyle(1,0xff0000);
s1.graphics.drawCircle(0,0,50);
s1.x = 100;
s1.y = 100;
addChild(s1);
var s2:Sprite = new Sprite();
s2.graphics.lineStyle(1,0x0000ff);
s2.graphics.beginFill(0xffffff);
s2.graphics.drawRect(0,0,50,50);
s2.graphics.endFill();
s2.x = 150;
s2.y = 50;
addChild(s2);
}
}
}