Hi,
I’m hoping someone knows the answer and can save my head: :wasted::crazy::wasted::crazy:
:wasted:
I’m redesigning our company’s site, I’m no Flash expert and the issue is that when you see the website using Internet Explorer it gets stuck in a temporary state showing the preloader (Firefox works fine):
Why isn’t IE initialising properly as you can see in the code below?
My structure uses a menu that loads a swf file for each page, is that what you guys would use, or would it be best having everything in one fla?
_root.onLoad = function () {
preloader_mc._visible = false;
mcLoader.loadClip("home.swf", loader1_mc);
}
var mcLoader:MovieClipLoader = new MovieClipLoader();
var listener:Object = new Object();
listener.onLoadProgress = function (target:MovieClip, bytesLoaded:Number, bytesTotal:Number):Void {
//trace(target + ".onLoadProgress with " + bytesLoaded + " bytes of " + bytesTotal);
preloader_mc.preloaderBar_mc._xscale = Math.round(bytesLoaded/bytesTotal * 100)
}
listener.onLoadInit = function (target:MovieClip):Void {
//trace(target + ".onLoadInit");
preloader_mc._visible = false;
}
mcLoader.addListener(listener);
menu_mc.btnHom_mc.onRelease = function () {
preloader_mc._visible = true;
mcLoader.loadClip("home.swf", loader1_mc);}
menu_mc.btnMul_mc.onRelease = function () {
preloader_mc._visible = true;
mcLoader.loadClip("multimedia.swf", loader1_mc);}
menu_mc.btnEve_mc.onRelease = function () {
preloader_mc._visible = true;
mcLoader.loadClip("events.swf", loader1_mc);}
menu_mc.btnExh_mc.onRelease = function () {
preloader_mc._visible = true;
mcLoader.loadClip("exhib.swf", loader1_mc);}
menu_mc.btnRoc_mc.onRelease = function () {
preloader_mc._visible = true;
mcLoader.loadClip("rockface.swf", loader1_mc);}