
You want to load a movie and send it directly
to a given framelabel. So append the framelabel
to the url of the movie like this:
myMovie.swf?framelabel=scene3
Then inside myMovie.swf you have to isolate the
framelabel from property _url, wait until the
given frame is loaded and then you can jump to
the label. Here is the script:
frame 1:
//This function analyzes the querystring of _url
//and sets the global array parms with the values
//of the query string.
function getParms(urlstring){
//divide urlstring in url and searchpart
var tmpArray = urlstring.split("?");
//search is global variable for possible later use
search = tmpArray[1];
//divide searchpart in var=value strings
//in our example there is just one of this
//pairs, but some could provide other variables
//this way too.
tmpArray = search.split("&");
//convert tmpArray in associative array
parms = new Array();
for(var i=0;i<tmpArray.length;i++){
//split the var=value string into varname and value
var t = tmpArray[i].split("=");
//store the pairs in global Array parms
parms[t[0]] = t[1];
}
}
//get Parameters of our _url
getParms(_url);
//get the value of variable framelabel (our label to jump to)
label = parms["framelabel"];
if(label eq ""){ // no label given, jump to start of movie
gotoAndPlay(4);
}
frame 2:
ifFrameLoaded(label){
gotoAndPlay(label);
}
frame 3:
//go back and check again
gotoAndPlay(2);
frame 4:
//your movie starts here
Privacidad ּ Publicidad ּ Prensa ּ Premios ּ Colaborar ּ Enlazarnos ּ Mapa del Sitio ּ Aviso legal ּ Boletín ּ Contacto
2001 - 2011 | Sitio creado y mantenido por Gabriel Marcelo Rodríguez
Hosting de alta calidad a bajo costo Neolo.com.ar