Comunidad de diseño web y desarrollo en internet online

CONVERTIR A AS2 - Flash Player 8

Citar            
MensajeEscrito el 19 Sep 2008 05:04 pm
Tengo el siguiente codigo pero solo funciona con Flash Player 6 me gustaria que funacionara con FP8



function Mover(x,d, aceleracion) {
show.foto.onEnterFrame = function() {
//this._x += (x-this._x)/aceleracion;
this._y += (d-this._y)/aceleracion;
if (Math.abs(d-this._y)<0.5 ) {
//this._x = x;
this._y = d;
delete show.foto.onEnterFrame;
}
};
}

Por chavewain

3 de clabLevel



Genero:Masculino  

firefox
Citar            
MensajeEscrito el 19 Sep 2008 05:15 pm
La sintaxis es válida para AS2, el problema lo debes tener en tro código

Jorge

Por solisarg

BOFH

13669 de clabLevel

4 tutoriales
5 articulos

Genero:Masculino   Bastard Operators From Hell Premio_Secretos

Argentina

firefox
Citar            
MensajeEscrito el 19 Sep 2008 06:12 pm
lo mas seguro que te suceda es que la llamada a la función sea:

Código ActionScript :

mover(x, d, aceleracion);


Y la función tiene la palabra Mover en mayúscula y flash player 6 no hacía ninguna diferencia con esto. Debes cambiarlo, o pones la función en minúscula o la llamada en mayúscula.

Por elchininet

Claber

3921 de clabLevel

17 tutoriales

Genero:Masculino  

Front-end developer at Booking.com

firefox
Citar            
MensajeEscrito el 19 Sep 2008 06:16 pm
good point

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.