We help IT Professionals succeed at work.
Get Started

Flash Preloader freezes in IE when cached

Last Modified: 2013-12-08
My flash file has a preloader on frame 1 and the rest of my application on frame 2.  I've attached the actionscript from frame 1 for reference.  The "GCSafeTween" refers to a custom class that is the equivalent to Flash's built in Tween class.  Anyways, the site works perfectly in all browsers, but there is one issue.  On first load, IE loads everything fine, but once IE caches the flash file it gets stuck on the preloader (for reference, http://www.audiocouch.com )  Is there a simple workaround i can do to prevent it from freezing on the preloader?  Also, in the code I have it so that it won't load frame 2 until the animations involving the preloader complete.  Thanks in advance!
import fl.transitions.TweenEvent;
import com.exanimo.transitions.GCSafeTween;
import fl.transitions.easing.*;
new GCSafeTween(preloader_mc, "alpha", Regular.easeOut, preloader_mc.alpha, 1, 15, false);
new GCSafeTween(preloader_mc, "y", Back.easeOut, preloader_mc.y, 170, 15, false);
this.loaderInfo.addEventListener (ProgressEvent.PROGRESS, preLoader_fcn);
function preLoader_fcn(event:ProgressEvent):void {
	var percent:Number=event.bytesLoaded/event.bytesTotal*100;
		new GCSafeTween(preloader_mc, "alpha", Regular.easeOut, preloader_mc.alpha, 0, 15, false);
		var myTweenX:GCSafeTween = new GCSafeTween(preloader_mc, "y", Back.easeIn, preloader_mc.y, 700, 15, false);
		myTweenX.addEventListener(TweenEvent.MOTION_FINISH, doNextTween);
function doNextTween(e:TweenEvent):void{
		this.removeEventListener(ProgressEvent.PROGRESS, preLoader_fcn);

Open in new window

Watch Question
This problem has been solved!
Unlock 1 Answer and 4 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE