A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: getBytesLoaded() -vs- Loaded = getBytesLoaded()

  1. #1
    Senior Member
    Join Date
    Aug 2005
    Posts
    170

    getBytesLoaded() -vs- Loaded = getBytesLoaded()

    is it better to just use
    getBytesLoaded()
    or to make
    BLoaded = getBytesLoaded()
    then use "BLoaded" in your script.

  2. #2
    Senior Member
    Join Date
    Jul 2001
    Location
    Stockholm, Sweden
    Posts
    416
    getBytesLoaded() wont give you anything
    BLoaded = getBytesLoaded() and BLoaded will have the loaded bytes for you to put in a textfield.

    Same principle as having
    var text
    instead of
    text="hello"

  3. #3
    Senior Member
    Join Date
    Aug 2005
    Posts
    170
    im still new to flash:
    what do you mean by:

    Same principle as having
    var text
    instead of
    text="hello"

  4. #4
    ___________________
    Join Date
    May 2004
    Posts
    3,174
    what the hell...
    lars is totally off here.
    first off, text="hello" is preferrable to var text;text=hello (unless you want it scoped locally, then var text=hello is still better than var text;text=hello;)
    second, all BLoaded is, is a pointer - like a shortcut - to the real product, which is the return of the function call.

    to the OP - if you're going to say getBytesLoaded more than once, use a pointer (var blah=getBytesLoaded). if not, don't.

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