zdravim použil jsem toto, je to na prvnim frame
_root.traceBox.vScrollPolicy ="on";
//trace function
function myTrace(msg)
{
_root.traceBox.text += msg + newline;
_root.traceBox.vPosition = _root.traceBox.maxVPosition;
}
/*********************************************************************/
//init
var myMCL = new MovieClipLoader();
/*********************************************************************/
//callbacks
myMCL.onLoadStart = function (targetMC)
{
var loadProgress = myMCL.getProgress(targetMC);
myTrace ("The movieclip " + targetMC + " has started loading");
myTrace("Bytes loaded at start=" + loadProgress.bytesLoaded);
myTrace("Total bytes loaded at start=" + loadProgress.bytesTotal);
myTrace("____________________________________");this.symbol2.visible=false;
}
myMCL.onLoadProgress = function (targetMC, loadedBytes, totalBytes) {
myTrace ("movie clip: " + targetMC);
myTrace("Bytes loaded at progress callback=" + loadedBytes);
myTrace("Bytes total at progress callback=" + totalBytes);
myTrace("____________________________________");this.symbol2.visible=false;
}
myMCL.onLoadComplete = function (targetMC)
{
myTrace (targetMC + " has finished loading.");
var loadProgress = myMCL.getProgress(targetMC);
myTrace("Bytes loaded at end=" + loadProgress.bytesLoaded);
myTrace("Bytes total at end=" + loadProgress.bytesTotal);
myTrace("____________________________________");this.symbol2.visible=false;
}
myMCL.onLoadInit = function (targetMC)
{
myTrace ("Movie clip:" + targetMC + " is now initialized");
this.symbol2.visible=false;
targetMC._width = 170;
targetMC._height = 170;
myTrace("____________________________________");
}
myMCL.onLoadError = function (targetMC, errorCode)
{
myTrace ("ERRORCODE:" + errorCode);
myTrace (targetMC + "Failed to load its content");
myTrace("____________________________________");
}
/********************************************************************/
//load the files in to their respective targets
pruser je ze kdyz kliknu na tlacitko a to vola
on (release) { this.symbol2.visible=false;
myMCL.loadClip("english.swf",this.symbol2);
}
tak mi to neskryje nacitany swf. potrebuju nacitat swf a po dobu nacitani ho nezobrazovat, a zobrazit ho az cely po nacteni, resim tak skryti nacitani u swf s preloaderem díky za helpa vsem.