Comunidad de diseño web y desarrollo en internet online

una cosa muy tonta

Citar            
MensajeEscrito el 04 Feb 2015 12:21 pm
Si para hacer un bucle que baja es:
onClipEvent (enterFrame) {
this._y += 1;
if (this._y>420) {
this._y =0;
}
}

como lo hago para que suba... es que me he bloqueado :?

Por afrimagen

0 de clabLevel



 

safari
Citar            
MensajeEscrito el 05 Feb 2015 12:57 pm
Algo asi

Código ActionScript :

onClipEvent (enterFrame) {
     this._y -= 1;
     if (this._y<0) { 
        this._y =420;
     }
}


La sintaxis es de AS1, el código metido en eventos sobre los MC está desaconsejado desde AS2

Jorge

Por solisarg

BOFH

13669 de clabLevel

4 tutoriales
5 articulos

Genero:Masculino   Bastard Operators From Hell Premio_Secretos

Argentina

firefox

 

Cristalab BabyBlue v4 + V4 © 2011 Cristalab
Powered by ClabEngines v4, HTML5, love and ponies.