A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Combobox selection to play sound

  1. #1
    Junior Member
    Join Date
    Nov 2006

    Combobox selection to play sound

    I've searched about the web and forums but can't find how to play a sound you select from a combobox list.

    There is this excellent tutorial:

    Which helps me understand how to use the combobox, however - it doesn't tell me how to play a sound after making a choice - that's all I want to do, not change a picture or anything.

    I'm extremely new to flash. Thanks!

  2. #2
    Senior Mamba austriaman's Avatar
    Join Date
    Aug 2004
    Somewhere over the rainbow
    The easiest way to do this is putting the sound directly onto your stage assigning it to the desired frame by dragging it there from your library (Crtl+L). You could also export your sound-file for actionscript and add the following script to the frame that ought to trigger it:
    newSound = new Sound(this);

    Hope this helps,

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