A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: loadVariablesNum Percent Load

  1. #1
    Senior Member enstent's Avatar
    Join Date
    Oct 2001
    Location
    Toronto ON
    Posts
    238
    I am loading in a lot of content using the loadVariablesNum function. Is there a way to see how much is loaded? Can I have a percent loader for loadVariablesNum?

    Does anyone find that when you are bring in MySQL content into Flash it loads in slow?

  2. #2
    Senior Member enstent's Avatar
    Join Date
    Oct 2001
    Location
    Toronto ON
    Posts
    238
    dang, this board smells

  3. #3
    proud new daddy! LuxFX's Avatar
    Join Date
    May 2000
    Location
    Dunsinane
    Posts
    1,148
    there's no neat way to do this, but you can fake it, as long as you have control over the data file.

    just insert variables in the file like "percLoaded=20" at about 1/5 of the way through the file, and "percLoaded=64" at about 64% of the way through the file, or whatever. then you can run a loop while the data loads and you can use the variables you've inserted to determine the 'percentage'. This is analogous to the old flash4 method of detecting load percentages by checking the load status of several keyed frames that were pre-determined to be positioned at certainly load percentages.

    As for the mysql-data slow-down, flash does get kinda slow if there's a LOT of variables going on. So if you're loading a lot of data, this could be the cause. A possible solution (if this can be worked into your script) would be to break the data down into segments and load only a single relevant segment at a time. This can be pretty development-intensive, but I've always believed that extra development is worth it when it improves the end-user experience.

    hope this helped!
    cheers
    -LuxFX

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