A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: AS3 stop sound

  1. #1
    Member
    Join Date
    Jan 2009
    Posts
    30

    AS3 stop sound

    Just need a bit of help.

    I need to have one sound on the timeline stop playing while letting the others continue. The sound is named "shark".

    I know how to use:

    flash.media.SoundMixer;
    SoundMixer.stopAll();

    but instead of stopping all the sounds, I just want to stop the sound named 'shark'. Can someone point me in the right direction? Thanks!!

  2. #2
    Senior Member cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,449
    If you have the sound in the library you can create a class, call it and later stop it individually.
    Here is shown how to create a class:
    http://flashscript.biz/flashas3/Wave...nalyzer_2.html

    If it is embedded on the timeline, no way.
    - The right of the People to create Flash movies shall not be infringed. -

Tags for this Thread

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