Estoy haciendo una ruleta en flash con as2
Logre el mobimiento de la ruleta poniendo esta accion en la ruleta
Código :
[as]onClipEvent(enterFrame){
if (spinning){
if (spin <= 0){
spinning = false
rot = (_rotation < 0) ? 180 + _rotation : _rotation
_root.youSpunA = Math.floor(16 * rot/180)+1
}else{
_rotation += spin -= .15
_parent.wheel._rotation = -_rotation
}
}
}[/as]y un boton que la hace girar con esta accion
Código ActionScript :
onClipEvent(enterFrame){
if (spinning){
if (spin <= 0){
spinning = false
rot = (_rotation < 0) ? 180 + _rotation : _rotation
_root.youSpunA = Math.floor(16 * rot/180)+1
}else{
_rotation += spin -= .15
_parent.wheel._rotation = -_rotation
}
}
}y quiero que cuando se detenga, abanze a un fotograma determinado.
Como lo puedo hacer?
Muchas gracias.
