LOADING
Loading
Hi , welcome back.
LogoutLOGOUT
 
  Lost password?  
Hi
 




 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 08-12-2005, 12:31 PM
hawkus hawkus is offline
Registered User
 
Join Date: Jun 2005
Posts: 2
Rep Power: 0
hawkus is on a distinguished road
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");
}
on each button.

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
Reply With Quote
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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




All times are GMT. The time now is 11:39 PM.