A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Two sounds on one MC to play?

  1. #1
    Eternal Newbie
    Join Date
    Apr 2006
    Location
    Bitter cold Hell of the crappy NW
    Posts
    392

    Two sounds on one MC to play?

    I have an MC with 3 frames, acting as a button.

    The AS(2.0) tells the mc to gotoAndStop frame 2 on roll over and gotoAndStop frame 3 onPress.

    It does all of this, I have traced it ("being rolled over" and "being pressed") so I know the states are being taken care of.

    The problem is frame 2 and frame 3 each have a sound on them. When I roll over the MC the sound on frame 2 plays, when I click it, the sound on frame 3 does NOT play.

    What can I do to make the different sounds play?

    ~MoN
    If I am wrong, please just correct me and move on.. there is no need for all that pointing and laughing! ~MoN

  2. #2
    Member
    Join Date
    Nov 2005
    Location
    Houston, TX
    Posts
    93
    Have you set the sound for frame 2 to stop when you click it? where are you telling it to play the sounds, in the frame's AS or in the AS where you originally test for the rollover and onpress?

  3. #3
    Eternal Newbie
    Join Date
    Apr 2006
    Location
    Bitter cold Hell of the crappy NW
    Posts
    392
    Actually... I don't know... LOL

    This is my first time with sounds, I draged the sound from the library to the stage for each frame. No AS. The roll over sound plays when you roll over the button MC, so I thought it was something I don't know how to do yet.

    I tried attachSound, but the help file didn't tell me much and nothing I did worked at all.

    ~MoN
    If I am wrong, please just correct me and move on.. there is no need for all that pointing and laughing! ~MoN

  4. #4
    Member
    Join Date
    Nov 2005
    Location
    Houston, TX
    Posts
    93
    I've got a tutorial that I first used to learn about sounds.
    http://www.flash-here.com/tutorials/...lay_sound.html
    If you don't get the information you need from there, let me know.

  5. #5
    Eternal Newbie
    Join Date
    Apr 2006
    Location
    Bitter cold Hell of the crappy NW
    Posts
    392
    Alright, thanks! I will give it a go later tonight.

    ~MoN
    If I am wrong, please just correct me and move on.. there is no need for all that pointing and laughing! ~MoN

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