Comunidad de diseño web y desarrollo en internet online

velosidad

Citar            
MensajeEscrito el 04 Oct 2006 11:34 pm
estoy haciendo una animacion en la que uso 12 fps y en otra animacion que uso 50 fps, si habro las 2 animaciones, y sus bibliotecas, y paso un clip de pelicula desde la animacion 50 fps a la 12 fps el clip de pelicula se ve muy lento y no keda, mi pregunta es ¿existe algun script para solusionar mi problema ? y si no se utilizan script y conosen otro metodo xfavor digan Grax!!!!

NiKoPoLiS

Por nikopolis

21 de clabLevel



Genero:Masculino  

firefox
Citar            
MensajeEscrito el 05 Oct 2006 12:15 am
Prueba esto:

Código :

MovieClip.prototype.setFrameRate = function(fps) {
        this.stop();
        if (this.__fpsInt__ != undefined) {
                clearInterval(this.__fpsInt__);
                delete this.__fpsInt__;
        }
        this.__nextFrame__ = function(ptr) {
                if (ptr._currentframe<ptr._totalframes) {
                        ptr.nextFrame();
                } else {
                        ptr.gotoAndStop(1);
                }
                updateAfterEvent();
        };
        this.__fpsInt__ = setInterval(this.__nextFrame__, Math.round(1000/fps), this);
};

y para asignar la velocidad de fotogramas:

Código :

_root.setFrameRate (12)
_root.clip.setFrameRate (50)

Por Zguillez

BOFH

10744 de clabLevel

85 tutoriales
17 articulos
3 ejemplos

Genero:Masculino   Bastard Operators From Hell Héroes Team Cristalab Editores

BCN

firefox

 

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