A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Sounds for different buttons

  1. #1
    Junior Member
    Join Date
    Apr 2000
    Posts
    2

    Post

    Help!!! Here's the situation: I have different music tracks for each button. I want to make it so that when I hit the button, the music track will start. And when I hit another button, the current music track will stop and start a different track. What is the correct way of doing this?

    Thanks for your help!

  2. #2
    Senior Member
    Join Date
    Feb 2000
    Posts
    1,092

    Smile

    Make movie clips with just the audio(music)
    in them.

    MC 1 song 1
    MC 2 song 2
    MC 3 song 3
    MC 4 song 4

    Give each MC (movie clip) an instance name
    like track 1,
    track 2
    track 3
    track 4
    Now make 4 buttons.

    actions are
    On (release)
    tell target (track 1)
    Go to and Play frame 1
    On End

    Do that for all the buttons so that each button controls it own MC that contains the loop(song you want it to play.


    Now you will also need to Tell target

    In each button to stop all sounds.

    ex.

    Button 1 plays MC track 1
    But when button 2 is pressed
    Button 2 has to Tell Target MC track 2 to play
    and stop all other MC tracks.


    Im sure you can figure it out from here.

    Take care....

    regards...
    Jeff A. aka jydnas Sounds and Music Moderator

  3. #3
    Senior Member
    Join Date
    Feb 2000
    Posts
    1,092

    Post

    O and one more thing
    make sure you drag the MC's out of the library on to the scene.

  4. #4
    Junior Member
    Join Date
    Apr 2000
    Posts
    2

    Thumbs up

    Thanks a lot! I really appreciate the help. You are awesome man!

  5. #5
    Senior Moderator ®
    FK´s Banning Machine ™
    GMF ™'s Avatar
    Join Date
    Feb 2000
    Location
    Oslo, Norway
    Posts
    5,697

    Post

    Check out my Flashdisc player man.
    www.flash-design.as

    Best regards GmF , Turn your volume up !

    ------------------

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center