Evitando di aprire un altro post, replico qui sotto (sperando di venire aiutato... asd!)
Allora, diciamo che ho cambiato direzione.
Utilizzando il componente Loader, inserisco questo codice nel primo frame:
codice:
// Create a listener object event function. The progress bar is an object so it needs an object function to work
myProgressBarListener = new Object();
// When the progress bar is complete and has preloaded the loader component content, the listener will call and run this code below:
myProgressBarListener = function (eventObject) {
// Hide the progress bar now as we don’t need it any more
myProgressBar._visible = false;
// Closes the above function
};
// Sets whether the content being loading into the loader component scales to fit the loader (true), or the loader scales to fit the content (false)
myLoader.scaleContent = true;
// Set the location of the content to be loaded. Examples are:
// myLoader.contentPath = "http://www.YourWebSite.com/images/myImage.jpg";
// myLoader.contentPath = "http://www.YourWebSite.com/myFlashMovie.swf";
myLoader.contentPath = "foto3.swf";
myLoader.contentPath = "foto2.swf";
myLoader.contentPath = "foto1.swf";
// Declares a listener that detects when the progress bar component has loaded the loader component content and is complete. Then calls the function myProgressBarListener
myProgressBar.addEventListener("complete", myProgressBarListener);
// Set up the progress bar component variable to polled mode which determines the maths behind the % counter.
myProgressBar.mode = "polled";
// The location of the Loader Component
myProgressBar.source = "myLoader";
// Sets the conversion to 1. This basically means the component divides the current and total values loaded and to be loaded. Then it floors them (works out the difference between them) and displays the converted value in the label property
myProgressBar.conversion = "1";
// Set the label to display the word 'loading' followed by the percentage value loaded so far
myProgressBar.label = "LOADING %3%%";
// The direction the progress bar moves when loading
myProgressBar.direction = "right";
// The location of the label that displays the percentage loaded so far
myProgressBar.labelPlacement = "bottom";
// Stops the Playhead in the current frame until the Movie has been preloaded
stop();
I vari swf a loro volta caricano delle immagini esterne.
Qual'è il problema?
Il problema è che:
1) Vorrei dire a questo script di caricare anche le immagini esterne ma di NON visualizzarle.
2) So che ho sbagliato a far caricare i vari filmati tutti sotto la stessa variabile, infatti inizialmente mi mostrava solo l'ultimo, poi agendo sui vari swf e dicendo loro che alla fine dovevano riprodurre quello indicato nello script.
Cosa devo fare per fare eseguire tutto dallo script che ho scritto in questo stesso reply, evitando di mettere mano ai vari swf?
Grazie per l'attenzione e arrivederci alla prossima
puntata.