Hay algún tutorial con un botón de este estilo? Adjunto código para posibles soluciones. Gracias.
rotacion = function () {
this.onPress = function() {
miListener = new Object();
miListener.onMouseMove = function () {
updateAfterEvent();
xDif = _root._xmouse - this._x;
yDif = _root._ymouse - this._y;
angulo = Math.atan2(yDif, xDif);
angulo = angulo*180/Math.PI;
bruFlecha._rotation = angulo;
};
Mouse.addListener(miListener);
};
this.onRelease = this.onReleaseOutside = function() {
Mouse.removeListener (miListener);
};
};
