Drawing a line ActionScript 3 not working -


hello have piece of code drawing simple line doesn`t if possible tell me mistake thankful!!! here code:

function click2(e:mouseevent):void{     e.currenttarget.removeeventlistener(mouseevent.click, click2);     fx=mousex;     fy=mousey;     var i:int;     i=2;     trace(i);     trace(sx,sy);     trace(fx,fy);     var  line:shape = new shape();     line.graphics.beginfill(0x0066ff);     line.graphics.moveto(400, 300);     line.graphics.lineto(400, 400);     this.addchild(line); } 

thank , appreciate community of website, , guys me see mistakes, im beginner im doing becouse of people heart!!!

you drawing line have set linestyle:

function click2(e:mouseevent):void {     e.currenttarget.removeeventlistener(mouseevent.click, click2);     fx=mousex;     fy=mousey;     var i:int;     i=2;     trace(i);     trace(sx,sy);     trace(fx,fy);     var line:shape = new shape();     line.graphics.linestyle(1, 0x0066ff, 1);     line.graphics.moveto(400, 300);     line.graphics.lineto(400, 400);     this.addchild(line); } 

Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

VBA function to include CDATA -