Movie Clip Loader Problems

  • calgreen
  • Born
  • Born
  • calgreen
  • Posts: 1

Post 3+ Months Ago

I am working on a website and am having problems with an MCL. As is, I have an empty .swf that contains a preloader. Once it has loaded, the actual website is loaded in. This works fine, but I would like to have one of ten random splash images displayed when it loads in. Right now, I have an MCL in the main .swf that loads the image in, but it doesn't show up until you click on the home button .. which refreshes the image. I would like to have the image loader in the preloading .swf. So basically, the final file will only be loaded once the splash image has been selected and loaded along with the site. I hope that makes sense.

Here is the code in my preloading file:

Code: [ Select ]
swfpreloader = new MovieClipLoader ();
swfpreloader.onLoadStart = function(target_mc)
{
    target_mc.stop();
};

swfpreloader.onLoadProgress = function(target_mc, loadedBytes, totalBytes)
{
    loader.text = Math.ceil((loadedBytes/totalBytes)*100)+"Loaded";
};

swfpreloader.onLoadInit = function(target_mc)
{
};

swfpreloader.onLoadComplete = function(target_mc)
{
    loader._visible = false;
    target_mc.play();
};

swfpreloader.loadClip("website.swf", 1);

stop();
  1. swfpreloader = new MovieClipLoader ();
  2. swfpreloader.onLoadStart = function(target_mc)
  3. {
  4.     target_mc.stop();
  5. };
  6. swfpreloader.onLoadProgress = function(target_mc, loadedBytes, totalBytes)
  7. {
  8.     loader.text = Math.ceil((loadedBytes/totalBytes)*100)+"Loaded";
  9. };
  10. swfpreloader.onLoadInit = function(target_mc)
  11. {
  12. };
  13. swfpreloader.onLoadComplete = function(target_mc)
  14. {
  15.     loader._visible = false;
  16.     target_mc.play();
  17. };
  18. swfpreloader.loadClip("website.swf", 1);
  19. stop();


I appreciate anyones help! Thanks.
  • 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 20 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
 
cron
 

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