flash on 2012-9-11
♥0 |
Line 21 |
Modified 2012-09-11 13:15:38 |
MIT License
archived:2017-03-20 11:06:12
ActionScript3 source code
/**
* Copyright ifree ( http://wonderfl.net/user/ifree )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/3S3q
*/
package {
import flash.text.TextField;
import flash.display.GraphicsPath;
import flash.geom.Point;
import flash.display.Graphics;
import flash.display.Sprite;
public class FlashTest extends Sprite {
public function FlashTest() {
// write as3 code here..
var gp:GraphicsPath=new GraphicsPath();
gp.lineTo(0,0);
gp.moveTo(20,20);
//gp.moveTo(100,20);
gp.lineTo(10,0);
gp.moveTo(3,3);
gp.lineTo(1,1);
gp.moveTo(1,1);
var txt:TextField=new TextField();
txt.text=gp.data.toString();
addChild(txt);
}
}
}