var container:MovieClip = createEmptyMovieClip("container", getNextHighestDepth()); var mcLoader:MovieClipLoader = new MovieClipLoader(); mcLoader.addListener(this); mcLoader.loadClip("intro_risque.swf", container); /* function onLoadInit(mc:MovieClip) { trace("onLoadInit: " + mc); } */ bytes_loaded = Math.round(this.getBytesLoaded()); bytes_total = Math.round(this.getBytesTotal()); getPercent = bytes_loaded/bytes_total; percentValue = Math.round(getPercent*100)+"%"; function onLoadProgress(mc,percentValue) { this.tf_preloadtext.text = ("Bezig met ladennn: " + percentValue); }