ActionScript 3.0: Cursor personalizado
Autor: Francisco ArceCorreo: fj_arce@yahoo.com.mx
function pintaColor(e:MouseEvent):void {
var color:String = e.target.name;
Mouse.hide();
pincel_mc = new Pincel();
addChild(pincel_mc);
stage.addEventListener(Event.ENTER_FRAME, cursorPincel);
}
function cursorPincel(event:Event):void {
pincel_mc.mouseEnabled = false;
pincel_mc.x = mouseX;
pincel_mc.y = mouseY;
}
http://www.pacoarce.com
No hay comentarios:
Publicar un comentario