Preloading sound!

Hey, I’m usig the following action to do sound:

scene02

[COLOR=royalblue]firstSound=new Sound();
firstSound.attachSound(“trance”); [/COLOR]

in the same scene I got this button:

[COLOR=royalblue]on (release) {_root.firstSound.start()[/COLOR]

…very simple!

in scene01 I’ve made a preloader:

[COLOR=royalblue]if(_framesloaded == _totalframes){
nextScene ();
play ();
}

else {
loaded = Math.round(getBytesLoaded()/1024);
total = Math.round(getBytesTotal()/1024);
percent = Math.round((loaded/total)*100)+"%";
bytes = loaded+“kb loaded”;
}[/COLOR]

BUT this don’t work with sound!! WHY?.. it works with any other movie… :frowning:

Why do you have

nextScene();
play();

nextScene(); will move to the next scene, you don’t need play();.

perhaps, but the preloader works with any other movie! …how do I preload the sound!??

http://techrepublictk.cnet.com/webbuilding/pages/Graphics/Flash4Tips/ss12.html

THX flex, but I still don’t quite get it!

All I wan’t is to make a sound loop (no problem) and have 2 buttons to control the sound (still no problem)… it’s a feature on many sites… just like this http://www.jap-studio.com/japenter.htm with a simple percentage preloader!

anyone knows about a tutorial, or something!??