I have a problem with my as3 preloader. I'm uploading a file in DeviantArt and the file works fine if it is not on fullscreen.
But if it is in fullscreen, the loader doesn't work. However, this problem only occurs in Google Chrome. It works fine with Firefox and Explorer.
I can't figure out what is wrong.
Here is the code I'm using
stop();
import flash.display.*;
this.stop();
LoadingBar.loaderInfo.addEventListener(ProgressEvent.PROGRESS, LoadingProgress);
LoadingBar.loaderInfo.addEventListener(Event.COMPLETE, LoadingFinish);
function LoadingProgress(event:ProgressEvent):void
{
var pcent:Number = event.bytesLoaded / event.bytesTotal * 100;
LoadingBar.scaleX=pcent/100;
LoadingInfo.text = int(pcent) + "%";
}
function LoadingFinish(event:Event):void
{
gotoAndStop(2);
}