actionscript 3 - how to perform event on flex line -
how perform event on flex line objects.so can able move or re-size line using mouse.i using flexline shown in below code:-
spark.primitives.line; var st:stroke =new stroke(0x345654,1,1); var obj:line = new line(); obj.stroke =st; obj.xfrom =0; obj.yfrom=0; obj.xto = 500; obj.yto = 500; obj.addeventlistener =????? //how resize line using mouse??
please explain how addeventlistner on line or give other idea achieve this.
it not possible. line
not interactiveobject
.
you can add group , listen events,
or draw line graphics
on sprite
, listen sprite events(this more lightweight).
or may add graphic primitives line
group , calculate code line appeared under group click.
Comments
Post a Comment