A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: preloader script not working in MC

Threaded View

  1. #1
    Member
    Join Date
    Jan 2004
    Posts
    87

    preloader script not working in MC

    Hi
    I have made the next script an put it in the first frame of the stage
    it's works fine but if i put it in a MC the progressBar will not work.
    Here is the text:
    code:
    stop();
    myInterval = setInterval(preloader,10);
    function preloader() {
    if (getBytesLoaded() >= getBytesTotal()) {
    play();
    clearInterval(myInterval);
    }
    progressBar._xscale = (getBytesLoaded()/getBytesTotal())*100;
    }


    I have tryed many variation change the play(); with "_root.play",or with "with _root.play..","_root.getbytes..." and so on but i cant make the progressBar work , can someone help me here

    Thank you very much..
    Last edited by maydays; 05-27-2004 at 12:00 AM.

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center