dcsimg
A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: the neverending preloader dilema

  1. #1
    flashing since v3
    Join Date
    Jan 2002
    Posts
    401
    i should have learnt this by now... but im still having problems... (y'see even the more experienced flashers get stuck sometimes)

    Code:
    bytes_loaded = _root.getBytesTotal();
    bytes_total = _root.getBytesLoaded();
    //math 
    percent_loaded = Math.round((bytes_total/bytes_loaded)*100);
    percent_loadedtxt = percent_loaded add " %";
    the problem is.... adding that damn % on the end of the percent_loaded variable, to load into the text field, percent_loadedtxt.

    bugger



    [Edited by offdahook on 05-29-2002 at 05:53 AM]

  2. #2
    flashing since v3
    Join Date
    Jan 2002
    Posts
    401

    let this be a lesson to you all.....

    when embedding numbers for a textfield... remember that a % isnt contained within the numeric character set....

    i've messed up lol

    IGNORE THIS POST PEOPLE

  3. #3
    Danny Gomez Creations cosmiceye's Avatar
    Join Date
    Mar 2002
    Location
    under a palmtree in Jamaica waiting for psytopia 2005 to begin
    Posts
    982
    Hey, let me just tell you that your first varibles up there are inverted. If you copied&paste from your .fla, you may wanna check it...

  4. #4
    flashing since v3
    Join Date
    Jan 2002
    Posts
    401
    inverted? i dont understand.... i got it working now anyway... so it cant be wrong

    simple mistake i made by not embedding the %

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