
Welcome Guest
|
#1
|
|||
|
|||
|
Sound buttons/code advice
Hi,
Fairly new to flash and just trying to get my hed round the actions scripts involved in getting sounds to play via buttons. I would like 3 buttons each to play a different loop of music separately. then i would like 3 buttons to play sound effects over the top. the code i've used for the first part is: Actionscript:
mySound = new Sound();
function playSound(theSound) {
stopAllSounds();
mySound.attachSound(theSound);
mySound.start(0,100);
}then: Actionscript:
on (release) {
playSound("funk");
}does anyone know what i could do so that the sound effects play over the top of the loops? many thanks! Last edited by Scottae : 08-12-2005 at 11:09 PM Reason: Format with AS tags |
|
#2
|
||||
|
||||
|
Create a separate sound object for the sound fx and the loop. Also get rid of the stop all sounds.
__________________
Our greatest glory is not in never falling but in rising everytime we fall. - Confucius Blog | Shared Items |
«
Previous Thread
|
Next Thread
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Kenny Bellew Sound Object Tutorial | jumpingJack | Sound and Music |
23 | 05-03-2011 07:37 AM |
| sound and loader problem | maani786 | Flash CS3 / Flash 9 |
0 | 12-11-2008 07:46 AM |
| How to attach Sound | krang | Sound and Music |
1 | 10-13-2006 06:41 AM |
| My sound loops has silence at end...no good! Help pleeze. | omkark | Sound and Music |
7 | 02-17-2003 09:54 AM |
| Sound starts over and over and over... | yan | Flash 5 Actionscript |
1 | 06-26-2001 06:39 PM |

Art & Design



