forked from: flash on 2010-8-6
forked from flash on 2010-8-6 (diff: 28)
ActionScript3 source code
/**
* Copyright ecjtu.leon49 ( http://wonderfl.net/user/ecjtu.leon49 )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/rKxK
*/
// forked from ecjtu.leon49's flash on 2010-8-6
package {
import flash.text.TextField;
import flash.display.*;
public class FlashTest extends Sprite {
public var long:int;
public var wide:int;
public var dX:int;
public var dY:int;
public function FlashTest() {
// write as3 code here..
long = 50;
wide = 25;
dX = 100;
dY = 100;
var txt:TextField = new TextField();
txt.text = "dfdsfsdfsdfsdf";
addChild(txt);
init();
}
public function init():void
{
this.graphics.beginFill(0xff0000);
this.graphics.lineStyle(1,0x666666);
this.graphics.moveTo(dX-wide/2,dY);
this.graphics.lineTo(dX,dY-long/2);
this.graphics.lineTo(dX+wide/2,dY);
this.graphics.lineTo(dX,dY+long/2);
this.graphics.lineTo(dX-wide/2,dY);
}
}
}
