Skip to main content
Inspiring
March 16, 2007
Answered

MovieClipLoader never makes it to onLoadComplete?

  • March 16, 2007
  • 1 reply
  • 279 views
I'm hoping someone with more experience with the moviecliploader class can help me. I'm trying to load two images into two instances of a child movie (mcDog and mcCat). I'm trying to load these two images and when they're loaded move on to the next frame (named start). When I press Ctrl-Enter to test the movie, everything works fine. However when I simulate download, it never makes it into the onloadcomplete function at all, so it never advances to the next frame. I've attached the code. Anyone have any ideas? Thanks!

This topic has been closed for replies.
Correct answer kglad
your code looks fine. some of those moviecliploader methods just don't work well in the test environment.

and you would be better served to use the onLoadInit() method instead of onLoadComplete, though in this situation it won't matter. but you'll run into a problem sooner or later using onLoadComplete and you'll waste time trying to figure out that you should be using onLoadInit().

1 reply

kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
March 16, 2007
your code looks fine. some of those moviecliploader methods just don't work well in the test environment.

and you would be better served to use the onLoadInit() method instead of onLoadComplete, though in this situation it won't matter. but you'll run into a problem sooner or later using onLoadComplete and you'll waste time trying to figure out that you should be using onLoadInit().
Inspiring
March 16, 2007
Thanks for looking at it and the advice. I changed it to onLoadInit, but that still didn't help. It doesn't work when I put the swf in an html page either, so there is something wrong. I can't figure it out for the life of me. This is driving me CRAZY!
Inspiring
March 16, 2007
Nevermind, it does work in the browser. I'm using xml to load in the data and just realized it was trying to use a cached version of the xml which had bad data in it. Simulate download doesn't work, but everything else seems to. Gee, that's really valuable when you're trying to test. Thanks again for your help!