FlashLite and MovieClipLoader loadClip issue

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! :)

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • bodytext
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • BlinkList
  • Furl
  • Ma.gnolia
  • MisterWong
  • NewsVine
  • Reddit
  • StumbleUpon
  • Technorati

Tags: , , ,

2 Responses to “FlashLite and MovieClipLoader loadClip issue”

  1. Iphone » FlashLite and MovieClipLoader loadClip issue Says:

    [...] pit wrote an interesting post today on FlashLite and MovieClipLoader loadClip issueHere’s a quick excerptI’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. What happens is this: if you start loading a clip via loadClip(), and then, … [...]

  2. J2ME, Flash Lite, Symbian, Iphone, Android and Ajax news, tutorials, source code » Blog Archive » FliKun: KuneriLite based FlashLite photo uploader for Flickr Says:

    [...] While loading a thumb in a MovieClip, we should take care not to remove the Clip while it’s loading (for example, because the user has navigated to another screen). Doing this we’ll avoid the issue described here. [...]

Leave a Reply