Welcome!

And don't forget to edit your signature & profile.

 

Icon

Statistics

  • Total posts 23318
  • Total topics 4048
  • Total members 5574
  • Our newest member
    ALF5583

TOP POSTERS

Stopping and Starting sound in different keyframes [Flash]

Related to Adobe Flash and Shockwave.
   
Hi,

I'm building a movie in flash where i have six buttons (always visible) that click to a different keyframe using the gotoAndStop method with frame names.

Basically it's 3 buttons on the left, 3 buttons on the right, with a big rectangle in the middle. When you click on one of the buttons, the big rectangle in the center changes depending what frame i told it to stop at.

My questions is: How can i have sound playing on each individual frame so when i click a different button the sound will stop and then play the sound that associated with the button that was clicked on. I currently have tried it where i placed sound into two different movieclips, and placed the movieclips in the associated keyframes, but when i click a different button, both sounds are still playing even though i'm on a different frame.

All help is much appreciated.

Thanks!
User avatar
the penguin
Smashing <table>
 
Posts: 22
Joined: Wed Feb 11, 2009 3:11 pm
   

   
Haven't used it this way in a long time, but:
You can associate sounds to layers (click on a frame in the timeline). You have Event, Loop and Repeat (if I recall correctly); I think you need Event (check the reference).
Otherwise you need to do it stop the sounds via ActionScript.

Basically you're trying to create a 6 song playlist? An easy cheat would be setting the sound volume to 0 (even fade out ;) ).

Sorry for the late reply :(
and that's the way i feel about it.
User avatar
ikarus
Smashing <span>
 
Posts: 88
Joined: Thu Feb 12, 2009 6:53 am
Location: Circum Valensis
   

   
Thank you for your reply. I was getting worried this was too complicated for nobody responded. I might have some follow up questions depending if I get stuck or not.
User avatar
the penguin
Smashing <table>
 
Posts: 22
Joined: Wed Feb 11, 2009 3:11 pm
   


Return to Flash



Who is online

Users browsing this forum: No registered users and 1 guest