A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: How to play a Sound at a certain frame?

  1. #1
    Senior Member
    Join Date
    Jan 2008
    Posts
    107

    Cow Icon How to play a Sound at a certain frame?

    Hello. I have a very simple .fla where you press X times a button it goes to frame 2.

    I would like to play a sound every time I reach frame 2, but I'm a bit confused with the code. I read some tutorials, but they were about 2.0 and the 3.0 ones were poorly explained.

    Let's assume I imported a sound named 'ping.wav'. What do I need to do to play that sound on frame 2?

    Thanks.

  2. #2
    Ө_ө sleepy mod
    Join Date
    Mar 2003
    Location
    Oregon, USA
    Posts
    2,441
    You can import the sound clip into your library and select a frame, then in properties under "sound" just choose that sound and set the sync to "start".

    If you want to do it with code, take a look at the intro to sound tutorial over at gotoAndLearn.com.

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