play a different sound on a different frame in the timeline

Posted on 2007-08-06
Last Modified: 2010-04-03
im making a keyboard event listener that plays a sound.  And i want the same key to play a different sound on a different frame in the timeline.  Is that possible ?  flash cs3
Question by:flashactions
    1 Comment
    LVL 14

    Accepted Solution

    You'll have to use a bit of actionscripting to accomplish this. What you can do is check the current frame you're in and use that as a conditional basis to determine what sound you wish to play.


    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    Join & Write a Comment

    Sometimes you know that one object has a specific child in it, but you can't find the child. This happened to me when I was trying to code some actionScript to make a toolbar work with its embedded buttons.  My partner had created the toolbar usi…
    Recently, I was asked to recommend a tracking system to be implemented on a clients website. As the entire site was built on flash, my first thought was to suggest custom built tracking system. However, our company at that point of time didn't h…
    The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
    This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now