K Onda Soy Nuevo En Estos Foros Espero Me Ayuden Lo Que Pasa ise una ruleta en macromedia flash pero solo da vuelta con el mouse y io quiero ke empieze a dar vuelta con un boton ya ise el boton pero no se mucho de programacion, (me pasaron el codigo) y quiero cambirlo pero no se como me ayudan!

Codigo:
on (press)
{
var x = _root._xmouse - this._x;
var y = _root._ymouse - this._y;
rot = Math.atan2(y, x) * 180 / 3.141593E+000;
this.clickrotation = rot - this._rotation;
pos = 1;
}
on (release, releaseOutside)
{
this.spinSpeed = this._rotation - this.lastrotation;
if (this.spinSpeed > 180)
{
this.spinSpeed = this.spinSpeed - 360;
} // end if
if (this.spinSpeed < -180)
{
this.spinSpeed = this.spinSpeed + 360;
} // end if
pos = 2;
}
onClipEvent (enterFrame)
{
if (pos == 2)
{
this.spinSpeed = this.spinSpeed * 7.000000E-001;
this._rotation = this._rotation + this.spinSpeed;
} // end if
if (pos == 1)
{
var x = _root._xmouse - this._x;
var y = _root._ymouse - this._y;
rot = Math.atan2(y, x) * 180 / 3.141593E+000;
this.lastrotation = this._rotation;
this._rotation = rot - this.clickrotation;
} // end if
}

Si Se tiene que cambiar el codigo pasenmelo y me dicen que tengo ke hacer lo ke se hacer yo son videos no juego en macromedia


Grax :D xD :lol: :P