Submit Your Article Forum Rules

Results 1 to 2 of 2

Thread: preloading child movies into parent movie

  1. #1
    Junior Member
    Join Date
    Jun 2004
    Posts
    20

    preloading child movies into parent movie

    hey everyone,
    I have a parent movie which contains a preloader movie that i want to activate when child movies are loaded into the parent movie, similar to http://www.muppets.com
    my preloader is 3 frames the first frames as is:

    bytestotal = loader2.getBytesTotal();
    bytesloaded = loader2.getBytesLoaded();
    percentloaded = Math.round((bytesloaded/bytestotal)*100);
    if (bytestotal == bytesloaded){
    gotoAndPlay(3);
    }
    if(percentloaded !=100){
    setProperty(_root.loadingmove.loaderbar.sliderbar, _xscale,percentloaded*2);
    }

    where loader2 is the load window
    the second frame sends it back to one and the third frame just has stop();

    when a button is clicked inside the first child movie, it loads another child movie in the loader2 window. It also calls for the preloader to gotoAndPlay(1);as to reactivate the preloader. And it calls set the text of the preloader to Loading (scene name) as follows:
    _root.loadingmove.loadingtext.text = "Loading Entertainment";
    The movies load fine but the preloader doesn't work and the text in the preloader doesn't show up. Does anyone have any idea why this won't work??
    Thanks for your help.
    Mat

  2. #2
    Senior Member MtraX's Avatar
    Join Date
    Jul 2003
    Posts
    389
    Hi

    An easy way to solve this would be to add a preloader to each child movie...

    Regards
    MtraX

Similar Threads

  1. Close a child page and refresh parent page
    By getmea in forum Web Programming Discussion Forum
    Replies: 16
    Last Post: 02-06-2010, 11:19 PM
  2. Loading child movie while parent movie is loading
    By subho in forum Flash Discussion Forum
    Replies: 0
    Last Post: 11-19-2005, 03:04 AM
  3. load external text into child movie
    By pbrollwitme in forum Flash Discussion Forum
    Replies: 1
    Last Post: 07-13-2005, 12:42 PM
  4. IE and preloading images from other sites
    By ADAM Web Design in forum Graphics & Design Discussion Forum
    Replies: 1
    Last Post: 04-22-2005, 08:13 PM
  5. Single Parent, Step-Parent and Family Health Links Exchanged
    By pgmradio in forum Marketing Strategies Discussion Forum
    Replies: 0
    Last Post: 04-27-2004, 05:08 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •