Comunidad de diseño web y desarrollo en internet online

cargo 1 swf y se repite simultaneamente

Citar            
MensajeEscrito el 06 Oct 2009 07:40 pm
Hola bueno tengo un problema cargo un swf en un clip con loadmovie y quiero que se reprodusca solo 1 vez
lamentablemente el swf q cargo no le puedo poner stop porque no tengo el archivo .fla
quisiera saber si hay alguna solucion.

Lo cargo con lo siguiente y va en la segunda escena

_root.img2.loadMovie('menu2.swf');

Por the_yero

2 de clabLevel



 

firefox
Citar            
MensajeEscrito el 07 Oct 2009 11:42 am
Puedes llamar a una función así (una vez que haya terminado de cargar, es decir tienes que agregar un preload)

Código ActionScript :

function controla(){
  _root.img2.onEnterFrame = function(){
     if(this._currentframe==this._totalframes) {
       this.stop()
        delete this.onEnterFrame
     }
  }
}


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.