Archive for the ‘bugs’ Category

FlashLite and MovieClipLoader loadClip issue

Wednesday, April 23rd, 2008

I’ve recently faced a tedious issue with MovieClipLoader and its loadClip method and finally realized its root cause thanks to this post on Jesse Warden’s blog.

Flash Lite logo

What happens is this: if you start loading a clip via loadClip(), and then, before it finishes, you remove the target MovieClip, FlashLite (noticed the same behavior in both FL2.x and FL3.0) will raise a “Unable To Load Data” error. That’s absolutely senseless and, above all, you have no ways to catch this error and avoid the horrible popup to… popup.

So, what’s the solution? Easy: do not remove MovieClips while you’re loading something within them! :)