Ver Mensaje Individual
  #7 (permalink)  
Antiguo 28/05/2009, 13:22
hartodeterra
 
Fecha de Ingreso: junio-2004
Mensajes: 4
Antigüedad: 19 años, 10 meses
Puntos: 0
Respuesta: Como acceder a escenas de un swf a traves de url

Aunque la peli me carga bien, me da un error:

Statement must appear within on/onClipEvent handler
El error dice que está en la primera línea (he incluido la escena inicio)
var escenas =new Array('inicio', 'serie1', 'serie3', 'serie5', 'serie7','seriex5')
onClipEvent (load) {
total = _root.getBytesTotal();
}
onClipEvent (enterFrame) {
loaded = _root.getBytesLoaded();
percent = int(loaded/total*100);
text = percent+"%";
//trace(percent)
this.gotoAndStop(percent);
if (loaded == total and total>380 and a<>1) {
a=1;

for (var i=0;i<escenas.length;i++){
if(_root.idEscena==escenas[i]){
_root.gotoAndPlay(_root.idEscena);
break
}
_root.gotoAndPlay("s7");
}
}
}



El php he puesto lo mismito que me has puesto (cambiando tamaños y nombres mipeli por minisite.swf) y ... le ponga el enlace que le ponga empieza por el principio.

Sé que estoy haciendo algo mal, pero el que?????.

Última edición por hartodeterra; 28/05/2009 a las 13:31