0

Play a sound on touch

Somehow I missed this, but I’m wondering how to have a sound play when a part of an image is touched? It is an interactive presentation with multiple zones. I have an .mp3 that should play when a touch is initiated on a jpeg. What are the commands to do this and should the audio file be in a separate zone from the jpeg?
Thanks!

15 comments

  • 0
    Avatar
    Allen H. Porter

    Using BrightAuthor, attach a touch event to that JPEG that triggers the mp4
    .  First drag the audio file to the same zone (could be in any zone really) and then attach the touch event to that JPEG that launches the mp4.  Simple.

  • 0
    Avatar
    Nikki S

    Sorry for the confusion...allow me to complicate this.

    I already have the next state (when touched) going to a video file. Is there a way to have it continue to the video file while playing the (quick) audio sound simultaneously? I don't think it would make sense to wait for the audio sound to play before continuing on to the next video.

    Do you know if there is a way to do this?

    Thank you!

  • 0
    Avatar
    Allen H. Porter

    That touch event could trigger two things at once.  I can't recall if you can play an mp4 in an image/video zone.  Try it.  Worst case you can create another zone that is audio.  Then have the touch event above send a Zone Message that is listened for in the other zone...probably attached to a Event Handler that triggers the mp4 to play.

     

    Easy peezy

  • 0
    Avatar
    Nikki S

    I did figure it out with the send zone message. That was what I needed. Thank you!

  • 0
    Avatar
    Morla
    Hello Nikki, can you tell me how exactly you did that? 
  • 0
    Avatar
    Nikki S

    I have the touch event going to the next state, but in the advanced tab, I added a command to "Send" "Send Zone Message" and then the name of the sound. I have a different zone where there is an Event Handler. Add a Zone Message Event to that Event Handler and attach your MP3. When you name this sound file, just make sure your Send Zone Message goes to that name you give it.

    Hopefully that makes sense. Good luck! 

  • 0
    Avatar
    Morla

  • 0
    Avatar
    Morla

    Do you think so?

     

  • 0
    Avatar
    Morla

  • 0
    Avatar
    Allen H. Porter

    The zone message doesn't need to be the file name although nothing wrong with that...although I have never tried a dot in the zone message before.  Just remember that the message you send from this zone needs to benthe same message you listen for in the other zone.

  • 0
    Avatar
    Morla
    I can not find my mistake:/
  • 0
    Avatar
    Morla

    could you send me a example?

  • 0
    Avatar
    Nikki S

    In the first picture you sent where it says "Specify Zone Message" call it "ping" for example instead of ping.mp3. Then in the second image you sent, change "ping.mp3" to just "ping". Then save it and try it!

  • 0
    Avatar
    Brandon

    Having all the states in the same zone will not work.

    The Event Handler and Audio file need to be in a separate zone from the Images that send the Zone Message.


    The states in the Blue rectangle need to be in a separate audio zone, otherwise the playback will never get to them.

  • 0
    Avatar
    Morla

    Thank you!  That was very helpful. It works!

Please sign in to leave a comment.