A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: Sound Objects - how-to preload multiple sound objects

  1. #1
    Japanese l337 TRJNET's Avatar
    Join Date
    Mar 2001
    Location
    Toronto, Canada
    Posts
    399

    Sound Objects - how-to preload multiple sound objects

    Im basically making a site for a sound engineer friend of mine, and like Im trying to make a music interface for his site, thats able to preload tracks, and play & load those multiple mp3 tracks dynamically (mp3s are in the same folder). Or the setup could be like multiple sound objects that have their own progress bar etc for loading kinda like the will-musser example. Im up for any suggestions as the MM docs dont help in this area very much

    A good example of this would be @t http://www.willmusser.com. I under-stand how-to create and use 1 sound object for example, but when i try and use 2 sound objects etc, for 1 dynamic textfield named "progress", heres the coding to call-upon a sound object, which is basically 1 mp3 thats getting loaded, and shows progress in percentage via that dyamic textfield. What Im wondering, is if anyone knows of the AS for the btns to load tracks ie: on (release), load mp3"blaghla.mp3" ? if anyone knows the coding to load mp3s, feel free to leave a reply ;p And any good ways of calling upon multiple sound objects at once seperate dynamic textifelds or progress bars for loading etc.

    PHP Code:
    sound_1 = new Sound();
    sound_1.loadSound("http://themakers.com/sounds/atmospheres_1.mp3"true);
    function 
    checkLoad(){
        var 
    percentLoaded = (sound_1.getBytesLoaded()/sound_1.getBytesTotal())*100;
        
    progress.text Math.round(percentLoaded)
        
    message.text "MEK - Far From Home";
        
    }
    checkProgress setInterval(checkLoad1000); 
    Last edited by TRJNET; 03-11-2004 at 05:24 AM.
    consultant / contractor / designer

  2. #2
    Japanese l337 TRJNET's Avatar
    Join Date
    Mar 2001
    Location
    Toronto, Canada
    Posts
    399
    *bump*
    consultant / contractor / designer

  3. #3
    Japanese l337 TRJNET's Avatar
    Join Date
    Mar 2001
    Location
    Toronto, Canada
    Posts
    399
    *bump*bump*
    consultant / contractor / designer

  4. #4
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    Some confusion as to what you're really looking for...

    Have you ever had a look at this...

    htpp://www.kennybellew.com/

  5. #5
    Japanese l337 TRJNET's Avatar
    Join Date
    Mar 2001
    Location
    Toronto, Canada
    Posts
    399
    yay u came to the rescue !!! I finally have some good documentation that I can work better with, thnx for the suggestion, it has what I want !!
    consultant / contractor / designer

  6. #6
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397

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