A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: preload sound

  1. #1
    Junior Member
    Join Date
    Jan 2004
    Posts
    2

    preload sound

    Hallo!

    How can I make a sound preload that, when it completes the preloading, the music begins to play immediatly?

    Thanks!!

  2. #2
    FK's Giant Steve_w_V's Avatar
    Join Date
    Mar 2003
    Location
    San Jose, California
    Posts
    2,113
    Same way to do movies. Use
    code:
    Sound.getBytesLoaded()
    //and
    Sound.getBytesTotal()

    Among other code

    You can use loadSound() but there is a bug in Flash Player 6 so it won't work that way. Are you using 6 or 5 or...?
    The other day, I bought a box of animal crackers. On the side, it said "Do Not Eat if Seal is Broken". I opened the box and sure enough...

  3. #3
    Junior Member
    Join Date
    Jan 2004
    Posts
    2
    Hi there! Thanks for replying!

    I´m using flasx mx.


    I followed this tutorial: http://www.flashkit.com/tutorials/Au...824/more20.php

    But the music won't start when the preload ends... only if u click the button again...

    Thanks again!

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