
25/02/2009, 08:32
|
 | | | Fecha de Ingreso: enero-2009 Ubicación: barcelona
Mensajes: 483
Antigüedad: 16 años, 1 mes Puntos: 22 | |
Respuesta: Pizarra de dibujo Hace un par de días uno forosdelweb dejo un script de como hacerlo, su problema era que no se le borraba la pantalla. El script era este:
stop();
canvasAbove = attachMovie ('canvas_mc','can',2);
canvasAbove._alpha = 10;
painting = createEmptyMovieClip ('painting',1);
theBrush = new Object ();
theBrush.onMouseDown = function(){
isPainting = true;
painting.moveTo(_xmouse,_ymouse);
painting.lineTo(_xmouse+1,_ymouse+1);
}
theBrush.onMouseMove = function(){
if(isPainting){
painting.lineTo(_xmouse, _ymouse);
}
}
theBrush.onMouseUp = function(){
isPainting = false;
}
Mouse.addListener(theBrush);
painting.onEnterFrame = function(){
ranWidth = Math.round((Math.random() * 20)+5);
painting.lineStyle(ranWidth,0x990000,100);
}
tornar_btn.onRelease = function(){
painting.clear();
}
tornar_btn.onPress = function(){
_root.gotoAndPlay("etiqueta");
} |