Ver Mensaje Individual
  #1 (permalink)  
Antiguo 13/03/2009, 10:56
Guille80
 
Fecha de Ingreso: marzo-2009
Mensajes: 2
Antigüedad: 15 años, 1 mes
Puntos: 0
Error en simple paint en flash

Estoy usando por primera vez flash y actionscript, estoy intentando crear un editor de dibujo sencillo, el tema es el siguiente, yo coloco un clip de pelicula, lo llamo "cuadrodbj" y despues inserto el código siguiente:

...
cuadrodbj.onPress = function() {
this.isDrawing = true;
cuadrodbj.lineStyle(2, 0xFF0000, 100);
if (relleno) {
cuadrodbj.beginFill(0xFF0000);
} else {
cuadrodbj.endFill();
}
cuadrodbj.moveTo(cuadrodbj._xmouse, cuadrodbj._ymouse);
};

cuadrodbj.onMouseMove = function() {
if (this.isDrawing) {
cuadrodbj.lineTo(cuadrodbj._xmouse, cuadrodbj._ymouse);
}
updateAfterEvent();
};
cuadrodbj.onRelease = function() {
this.isDrawing = false;
};
cuadrodbj.onReleaseOutside = function(){
this.isDrawing = false;
};

...

La cuestion es que dibujar dibuja, pero no dentro del clip de pelicula, solo alrededor. A ver si podeis aclararme este problemilla que seguro que es por mi falta de practica en este tema, Gracias.