timshaya
February 27th, 2008, 05:08 PM
Hi guys,
Is there ANY WAY to have the preloader code inside the 1st frame of a SWF and not have this IE problem?
I found this thread (http://www.actionscript.org/forums/showthread.php3?t=149491&highlight=AS3+preload+problem) that suggests using a wrapper SWF with a document class, but my Art Director keeps telling me it won't work on their Teamsite setup... (yeah, don't get me started on that one).
Can anyone help out or point me to a thread that discusses this problem?
I swear I've seen one but I can't find it now.
I have a Flash CS3, AS3 file with a proloader in the first frame that preloads itself via loaderInfo property...
prelodmc.width = 1;
loaderInfo.addEventListener (ProgressEvent.PROGRESS, plLoading);
function plLoading(event:ProgressEvent) :void {
var pcent:int=event.bytesLoaded/event.bytesTotal*100;
prelodmc.scaleX=pcent/100;
if(pcent==100) {
TweenLite.to(prelodmc, 0.7, {alpha: 0, delay: 0.3, ease: Exponential.easeOut, onComplete: moveOn});
}
}
If I refresh the thing in IE the SWF no longer loads but just sits there on the first frame.
Thanks for taking the time to help out!
Is there ANY WAY to have the preloader code inside the 1st frame of a SWF and not have this IE problem?
I found this thread (http://www.actionscript.org/forums/showthread.php3?t=149491&highlight=AS3+preload+problem) that suggests using a wrapper SWF with a document class, but my Art Director keeps telling me it won't work on their Teamsite setup... (yeah, don't get me started on that one).
Can anyone help out or point me to a thread that discusses this problem?
I swear I've seen one but I can't find it now.
I have a Flash CS3, AS3 file with a proloader in the first frame that preloads itself via loaderInfo property...
prelodmc.width = 1;
loaderInfo.addEventListener (ProgressEvent.PROGRESS, plLoading);
function plLoading(event:ProgressEvent) :void {
var pcent:int=event.bytesLoaded/event.bytesTotal*100;
prelodmc.scaleX=pcent/100;
if(pcent==100) {
TweenLite.to(prelodmc, 0.7, {alpha: 0, delay: 0.3, ease: Exponential.easeOut, onComplete: moveOn});
}
}
If I refresh the thing in IE the SWF no longer loads but just sits there on the first frame.
Thanks for taking the time to help out!