Page 1 of 1

Flash movie not loading in Safari

Posted: 14 Apr 2009, 11:32
by FuZzY665
Hey Guys

I'm trying to code a preloader for my flash movie and have succeeded in doing so, but the flash swf won't load in Safari on a Mac. It loads fine on everything else eg: Firefox, IE, Firefox on Mac, but no Safari on Mac.

Any help would be great. Heres my code for the preloader bar.

Code: Select all

stop();
import fl.controls.ProgressBarMode;

loadbar.mode=ProgressBarMode.MANUAL;

this.addEventListener(Event.ENTER_FRAME, loadProgress);

function loadProgress(e:Event) {
    var bytesLoaded=this.loaderInfo.bytesLoaded;
    var bytesTotal=this.loaderInfo.bytesTotal;
    loadbar.setProgress(bytesLoaded, bytesTotal);
    if (bytesLoaded==bytesTotal) {
        this.removeEventListener(Event.ENTER_FRAME, loadProgress);
        gotoAndPlay(2);
    }
}

Re: Flash movie not loading in Safari

Posted: 14 Apr 2009, 11:38
by RuadRauFlessa
Can you provide more detail on what actually happens in Safari. Does it load but the progress par does not show or does it simply not load the swf file at all. What does it show on screen? ets ets....

Re: Flash movie not loading in Safari

Posted: 14 Apr 2009, 12:23
by FuZzY665
The progress bar appears on stage, but doesn't load and if I add a dynamic text field to the stage as a percentage indicator all it says is "infinity" rather than showing the percentage.