A Flash Developer Resource Site

Results 1 to 17 of 17

Thread: preload actionscript using "getBytes" problems

Threaded View

  1. #1
    Join Date
    Nov 2011

    preload actionscript using "getBytes" problems

    Okay, so I'm now trying to use information I've found from hundreds of webpages all talking about how to check to see if your external .swf has loaded yet.

    So, in my first frame I have nothing
    In my second frame, I have this script:

    var mova = loadMovie("QM-SWF-01.swf", "mc1");
    var whatigot = mova.getBytesLoaded();
    var whatineed = mova.getBytesTotal();

    if (whatigot == whatineed) {

    In my third frame, I have this script:


    Problem is, I know that my script in frame 2 is not right...but I'm pretty sure I've followed all the advice from all of the webpages...and nothings working.

    What happens is, even if the movie hasn't loaded yet, it jumps ahead to frame 6, as if completely ignoring the "==".

    The only thing I think it could be is if I'm not calling the "getBytesTotal()" and "getBytesLoaded()" properly or something.
    Attached Files Attached Files

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