Results 1 to 8 of 8
  1. #1
    Senior Member
    Join Date
    Jan 2006
    Location
    Utah
    Posts
    60

    Next Keyframe (Flash)

    Here is the problem. I have this page in my site,

    www.newvisionrealestate.net/586831.html

    This is the Code to the Preloader.

    myLoaded = Math.round(getBytesLoaded());
    myTotal = Math.round(getBytesTotal());
    myPercent = myLoaded/myTotal;
    myBar._width = myPercent*300;
    derek = Math.round(myPercent*100)+"%";
    if (myLoaded == myTotal) {
    gotoAndPlay(3);
    } else {
    gotoAndPlay(0);
    }



    Now the Problem is that in IE, it show's the percentage good and when it gets to 100% is goes to the next frame, (3). Now in Firefox, it shows everything great, but when it get's to 100% it stops. It just stay's at 100% and wont go anywhere. Any ideas?

  2. #2
    Administrator Dave's Avatar
    Join Date
    Sep 2004
    Location
    Te Awamutu, New Zealand
    Posts
    3,959
    Blog Entries
    79
    I've just tried the code in a test file and it seems to work okay in both browsers. Can you upload the FLA file?
    Dave Owen
    MediaCollege.com

  3. #3
    Senior Member
    Join Date
    Jan 2006
    Location
    Utah
    Posts
    60

    Yes

    Yes, I just uploaded the fla file via FTP!!! Thanks

  4. #4
    Administrator Dave's Avatar
    Join Date
    Sep 2004
    Location
    Te Awamutu, New Zealand
    Posts
    3,959
    Blog Entries
    79
    Change:
    gotoAndPlay("Play");

    to:
    gotoAndStop("Play");

    I don't know why this works (since you've already added stop(); to the Play frame) but it does
    Dave Owen
    MediaCollege.com

  5. #5
    Senior Member
    Join Date
    Jan 2006
    Location
    Utah
    Posts
    60
    That's Weird! Any explanaition as to why? How did you figure it out???? THANK YOU!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

    Derek

  6. #6
    Administrator Dave's Avatar
    Join Date
    Sep 2004
    Location
    Te Awamutu, New Zealand
    Posts
    3,959
    Blog Entries
    79
    The tried and true method of "trial and error".

    I honestly don't know why this solution works. I just had a hunch that the movie wasn't stopping in the correct frame. I checked your code and you had a stop(); in the right frame but it wasn't working in Firefox, so I changed the preloader code to execute the stop. My best guess is that it's a bug in the Firefox Flash Player since IE plays it properly.

    BTW, for most Flash debugging I find the trace(); tool to be invaluable. It really helps you to see what's going on.
    Dave Owen
    MediaCollege.com

  7. #7
    Senior Member
    Join Date
    Jan 2006
    Location
    Utah
    Posts
    60
    If you get a second, could you expand on the trace() tool. Not too familiar with that. Thanks!!

  8. #8
    Administrator Dave's Avatar
    Join Date
    Sep 2004
    Location
    Te Awamutu, New Zealand
    Posts
    3,959
    Blog Entries
    79
    Here's a quick overview. Please let me know if it makes sense:
    http://www.mediacollege.com/flash/ac...ipt/trace.html
    Dave Owen
    MediaCollege.com

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Subscribe to us on YouTube