Ver Mensaje Individual
  #1 (permalink)  
Antiguo 26/03/2009, 17:55
Avatar de Kottore
Kottore
 
Fecha de Ingreso: octubre-2007
Mensajes: 170
Antigüedad: 17 años, 1 mes
Puntos: 8
Help with AS3.0

I'm trying to make it appear a line from one point to another with the following code*ActionScript 3.0 Code:

Código:
function some(evt:MouseEvent):void{
var trapezoid:Shape = new Shape();
trapezoid.graphics.lineStyle(2, 0xFFD700, 1, false, LineScaleMode.VERTICAL, CapsStyle.NONE, JointStyle.MITER, 10);
trapezoid.graphics.lineTo(evt.stageX, evt.stageY);
this.addChild(trapezoid);}
stage.addEventListener(MouseEvent.MOUSE_MOVE, some);
And everything works fine but I could not find a way to just leave the last line that detects the event*

Would appreciate your help since I'm something new in AS3*

Thanks in advance

Última edición por Kottore; 26/03/2009 a las 18:02