|
|
| mms1fan 2005-08-31, 7:35 pm |
| I want my buttons to play a sound clip on release. i have the sound clips on
one layer and the buttons on another. on release they send you to the frame
with that clip on it. problem is that when you click a new button, it plays the
new sound over the one already playing until the first one quits.
| |
| rampant_shadow 2005-08-31, 9:23 pm |
| quote: Originally posted by mms1fan
I want my buttons to play a sound clip on release. i have the sound clips on
one layer and the buttons on another. on release they send you to the frame
with that clip on it. problem is that when you click a new button, it plays the
new sound over the one already playing until the first one quits.
have you Actionscripted the button so that
on (rollOut) {
gotoAndPlay(frame#);
}
so that it goes and plays that sound if on rollOut you have a movie, put the sound clip on a different layer in the movie and put that movie on the rollOut effect it should play it at the same time as the movie.
laters
Trav | |
|
| CAll your sounds usng actionscript - this invlolves
Leave the sound file in the library - not on a timeline
In the library right click the sound and select linkage then tick the 'export
for actionscrip' box
On your main timeline add the following code
mySound= new Sound()
then for your buttons add this code
b1.onRelease=function(){ //b1 being the name of your button
mySound.stop()// stops other sounds triggered by the buttons
mySound.attachSound("sound_1') //this should be the instance name of sound in
library
mySound.start(0,1)
}
|
|
|
|
| Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |