A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Modem compatibility

Hybrid View

  1. #1
    Flash Bwad Bwoy
    Join Date
    Oct 2002
    Location
    Camberwell, London, UK
    Posts
    57

    Modem compatibility

    I've recently built a Flash 6 site: Superconductor

    All of the content is defined in XML documents, and loaded dynamically when required. This includes JPEGS, MP3 soundtrack and TEXT. This system dramatically cuts down site pre-load time.

    The problem is that the MP3 soundtracks, despite being relatively low-bandwidth, take up pretty much all of a 56k modem connection. This means that images (especially the photo gallery thumbnails) don't load before the timeout functions trip in...

    The site uses Flash 6 local variable storage, so if you turn the music off, and re-load the page, it remembers. This solves the problem.

    --------------------------

    What I want to build is some kind of auto connection speed detection that dynamically disables music if the connection is slow. The most obvious way is to time how long the site takes to load, but if it's the second or third visit it will be buffered so this won't be valid, wheras the music is randomly selected so can change every time.

    Does anyone know a good way to get a reliable estimate of network connection bandwidth ?

    Thanks,
    A.

  2. #2
    Senior Member
    Join Date
    Aug 2000
    Location
    Montréal
    Posts
    14,141
    Hi,
    even JS uses that method: comparing the time it takes to load. To prevent the caching in your detection, you could append a random var after some loaded detector swf.
    loadMovieNum("detector.swf?r="Math.round(Math.rand om()*999999),1);
    has not been tested. Just an idea
    gparis

  3. #3
    Flash Bwad Bwoy
    Join Date
    Oct 2002
    Location
    Camberwell, London, UK
    Posts
    57
    Of course!
    I forgot about doing that. It should do the trick, cheers mate.

    A.

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