|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Sound When Button is pressed
Hi
I have a button and i want a 1 second sound clip called "bleep.wav" from my libray to play when its clicked. i want it in the press bit, but ive no idea how to work with sound. so far the code looks like this: Code:
on (release) {
tellTarget ("down") {
gotoAndStop (1);
}
}
on (press) {
tellTarget ("down") {
gotoAndPlay (2);
}
}
on (release) {
}
thanks for any help in advance |
|
#2
|
|||
|
|||
|
Hey I was just scrolling down the board and found another one of your posts.
It's Pretty easy to use sounds on buttons, just study the example it's not that complicated ![]() You can find the sound fx I used here http://www.flashkit.com/soundfx/Int...-7838/index.php |
|
#3
|
|||
|
|||
|
as i mentioned in the other thread, i cant view your version of flash. cheers.
|
|
#4
|
||||
|
||||
|
The animated button has at least 4 frames. All you do is create a new layer and in the DOWN state, just drag in your sound.
It's just like editing your button and adding a down position to the button, but just creating a new layer is good for organizing things.
__________________
- Infinityws.com - Providing Reliable Web Hosting Solutions Since 2000 - Web Hosting - Reseller Accounts - E-Commerce Packages - Free ClientExec License With ALL Reseller Accounts A Satisfied Customer
|
|
#5
|
|||
|
|||
|
Hey Nell Sorry about that I'm using MX.
|
|
#6
|
|||
|
|||
|
thanks both of you! really appreciate your efforts!
The solution is so simple when i think of it now :/ later Nell |
![]() |
| Viewing: Dev Shed Forums > Web Design > Flash Help > Sound When Button is pressed |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|