edweb
03-30-2003, 08:50 PM
hi all, i've made a a music control and volume bar. the code is:
var volumePercent = 0 ;
textVolume = volumePercent + "%" ;
volumeFill._xscale = 0 ;
var mySound = new Sound () ;
mySound.attachSound ("Ambient") ;
mySound.setVolume (volumePercent * 2) ;
of course when i press play the code do this:
on (release) {
mySound.stop () ;
mySound.start (0 , 10000) ;
}
the funny part now is, how can i use for example 6 mp3 and when i press on button 1, it load another mp3?
thank's in advance
var volumePercent = 0 ;
textVolume = volumePercent + "%" ;
volumeFill._xscale = 0 ;
var mySound = new Sound () ;
mySound.attachSound ("Ambient") ;
mySound.setVolume (volumePercent * 2) ;
of course when i press play the code do this:
on (release) {
mySound.stop () ;
mySound.start (0 , 10000) ;
}
the funny part now is, how can i use for example 6 mp3 and when i press on button 1, it load another mp3?
thank's in advance