Flash - rotacion

 
Vista:

rotacion

Publicado por vicho4d (2 intervenciones) el 14/10/2005 19:16:23
Hola colegas, necesito su ayuda.

tengo un movie clip, que quiero que rote una vez, y le he pusto el siiguiente codigo:

Código:

onClipEvent (enterFrame) {
this._rotation += 1;
if (this._rotation == 360) {
this.onEnterFrame = function() {
delete this.onEnterFrame;
};
}
}

el problema esta en que yo quiero que rote solo una vez, pero su rotacion es continua, cual es el problema. Otra cosa, tengo un boton y tengo este codigo en un frame vacio:

Código:

boton_btn.onRollOver = function() {
onEnterFrame = function () {
bola._rotation += 1;
if (bola._rotation == 360) {
onEnterFrame = function () {
delete bola.onEnterFrame;
};
}
};
};
boton_btn.onRollOut = function() {
onEnterFrame = function () {
delete bola.onEnterFrame;
};
};

y tengo el mismo problema que sigue rotando continuamente, si alguien sabe como resolver mi problema se lo agradecere bastante....
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

RE:rotacion

Publicado por Darkhogg (29 intervenciones) el 15/10/2005 21:56:05
para lo de la rotación:

onClipEvent(enterFrame) {
if (rot <= 360) {
_rotation ++
rot ++
}
}

solo girará una vez y una vuelta completa

lo del botón sinceramente no se qué pretendes hacer con ello :S
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar