Buenas, tengo un problemilla y me gustaria que me dieseis alguna idea.
Tengo un menu, que llama a la funcion mostrar. Esta llama a u prototype de easing,
pero me aparece en pantalla de un tiron. He aqui el code:
Movieclip.prototype.mover = function(acc, dec, destY, destX) {
this.acc = acc;
this.dec = dec;
this.destY = destY;
this.destX = destX;
this.currX = this._x;
this.currY = this._y;
this.diffX = this.destX-this.currX;
this.diffY = this.destY-this.currY;
this.vx = (this.vx+(this.diffX)*1/this.acc)/this.dec;
this.vy = (this.vy+(this.diffY)*1/this.acc)/this.dec;
this._x += this.vx;
this._y += this.vy;
};
function mostrar(seccion, pos) {
this.onEnterFrame = function() {
contenido.mover(2.5, 3, 70, 800);
if (contenido._x>=770) {
delete this.onEnterFrame;
contenido.seccion.loadMovie(seccion);
carga =
int(contenido.seccion.getBytesLoaded()*100/contenido.seccion.getBytesTotal());
if (carga>=100) {
this.onEnterFrame = function() {
contenido.mover(2.5, 3, 70, pos);
if (contenido._x<=(pos+1)) {
delete this.onEnterFrame;
}
};
}
}
};
}
En local, funciona bien, pero en internet sale del tir�n. Incluso le digo que hasta
que no est� cargada la movie no inicie el moviemiento, pero sigue saliendo del tir�n.
Luego si apretas al mmismo boton, desaparece normalmente, y aparece bien. S�lo es la
primera vez.
Alguna idea?
Saludos y gracias por anticipado.<!-------------------------------
Lista ASNativos:
subscripciones/desubscripciones
http://www.sidedev.net/asnativos
-------------------------------->