Hi, i'm trying to load an external swf into a an mc named home_container using a preloader. Everything loads fine, exept that the preloader never appears ! I have no idea why, if someone could help that would be great. Thanx
This is thed code i use:
Frame1:
ActionScript Code:
[COLOR=orange]this.home_container.loadMovie("http://www.vnstudios.com/ice.swf");[/COLOR]
[COLOR=orange]_level0.home_container.loadMovie("http://www.vnstudios.com/ice.swf");[/COLOR]
Frame2:
ActionScript Code:
[COLOR=orange](empty)[/COLOR]
Frame3:
ActionScript Code:
[COLOR=orange]_level0.preloader.gotoAndStop(2);[/COLOR]
[COLOR=orange]stop();[/COLOR]
And this is the code on my preloader:
ActionScript Code:
[COLOR=orange]this.onEnterFrame = function() {[/COLOR]
[COLOR=orange]percent = (_root.home_container.getBytesLoaded()/_root.home_container.getBytesTotal())*100;[/COLOR]
[COLOR=orange] if (!isNaN(percent)) {[/COLOR]
[COLOR=orange]if (percent == 0) {[/COLOR]
[COLOR=orange]percent_display = "";[/COLOR]
[COLOR=orange]} else {[/COLOR]
[COLOR=orange]percent_display = Math.ceil(percent)+"% LOADED.";[/COLOR]
[COLOR=orange]}[/COLOR]
[COLOR=orange]this.bar._visible = true;[/COLOR]
[COLOR=orange]this.bar._xscale = percent;[/COLOR]
[COLOR=orange]if (percent>1) {[/COLOR]
[COLOR=orange]this.reelmc._visible = true;[/COLOR]
[COLOR=orange]}[/COLOR]
[COLOR=orange]_root.home_container.stop();[/COLOR]
[COLOR=orange]}[/COLOR]
[COLOR=orange]if (percent == 100) {[/COLOR]
[COLOR=orange]this.gotoAndStop(1);[/COLOR]
[COLOR=orange]delete this.onEnterFrame;[/COLOR]
[COLOR=orange]delete this.onEnterFrame;[/COLOR]
[COLOR=orange]percent_display = "";[/COLOR]
[COLOR=orange]this.bar._visible = false;[/COLOR]
[COLOR=orange]_root.home_container.play();[/COLOR]
[COLOR=orange]}[/COLOR]
[COLOR=orange]};[/COLOR]
[COLOR=orange]stop();[/COLOR]
If anyone could help me or send me an example that would be great.
Thanks again