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....
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
0