Fix for the Loader Component also covers scrollpane issues

  • Jaw
  • Graduate
  • Graduate
  • User avatar
  • Posts: 132
  • Loc: Minneapolis, MN

Post 3+ Months Ago

If anyone has had a problem with externally loading content into a flash movie... it's because someone at macromedia was drinking when they wrote the code for the mx.core.ExternalContent class. I say this because the code states that if the external content does not start after 3 tries the complete command gets sent even though the content hasn't started to download. Here is the offending code....

Code: [ Select ]
// sometimes you get a -1 before it starts loading
  if (x.failedOnce != undefined)
  {
   x.failedOnce++;
   if (x.failedOnce > 3)
   {
   dispatchEvent({type: "complete", target: x.obj, current: x.loaded, total: x.total});
   //trace("total == -1 loaded = " + x.loaded);
   delete loadList[i];
   delete x;
   }
  }
  1. // sometimes you get a -1 before it starts loading
  2.   if (x.failedOnce != undefined)
  3.   {
  4.    x.failedOnce++;
  5.    if (x.failedOnce > 3)
  6.    {
  7.    dispatchEvent({type: "complete", target: x.obj, current: x.loaded, total: x.total});
  8.    //trace("total == -1 loaded = " + x.loaded);
  9.    delete loadList[i];
  10.    delete x;
  11.    }
  12.   }


I know it's complete garbage. I'm a little pissed because it took 1 month of disecting my own code to find that it was clean and macromedia was to blame. Two days ago I was searching on google for the umpteenth time trying to find anyone who was having the same problems and I stumbled upon this link explaning the problem and solution.

http://jeff.mxdj.com/loader_component_a ... plorer.htm
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

Post Information

  • Total Posts in this topic: 1 post
  • Users browsing this forum: No registered users and 8 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.