jerry
September 20, 2002, 10:34am
1
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…
system
September 20, 2002, 11:54am
2
Why do you have
nextScene();
play();
nextScene(); will move to the next scene, you don’t need play();.
system
September 20, 2002, 11:57am
3
perhaps, but the preloader works with any other movie! …how do I preload the sound!??
system
September 20, 2002, 12:05pm
4
system
September 20, 2002, 12:53pm
5
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!??