PHP User Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: bbcode_highlight in ..../includes/functions.php on line 4197
Stop specific sound in movie clip
A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Stop specific sound in movie clip

  1. #1
    Junior Member
    Join Date
    Mar 2010

    Angry Stop specific sound in movie clip

    I have a sound clip called "wing" in main time line. Inside main time line I have movie clip called "shell" inside that another movie clip "perform" inside that have another movie clip "engine" with a sound clip "panel"

    how do i stop playing only the panel sound clip

    please help me. I'm using AS 2.0

  2. #2
    Senior Member Steven FN's Avatar
    Join Date
    Mar 2010
    CA, USA
    Taken from Flash CS3 Help:

    Actionscript Code:
    stop (Sound.stop method)
    public stop([linkageID:String]) : Void

    Stops all sounds currently playing if no parameter is specified, or just the sound specified in the idName parameter.

    Availability: ActionScript 1.0; Flash Player 5

    linkageID:String [optional] - A parameter specifying a specific sound to stop playing. The idName parameter must be enclosed in quotation marks (" ").

    The following example uses two buttons, stop_btn and play_btn, to control the playback of a sound that loads into a SWF file. Add two buttons to your document and add the following ActionScript to your FLA or AS file:

    var my_sound:Sound = new Sound();
    my_sound.loadSound("song1.mp3", true);

    stop_btn.onRelease = function() {
        trace("sound stopped");
    play_btn.onRelease = function() {
        trace("sound started");

    I think you can just use the linkage ID in the library export options along with creating a new sound object for referencing.

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