Flash Advisor logo
:: Desktop Shortcut
:: Flash Help
Advice from Experts

Closed Thread
Results 1 to 4 of 4
  1. #1

    Default How do I stop sound?

    What do I type under frame actions if I want to stop music from playing once I reach a certain frame?

  2. # ADS
    Join Date
    Always
    Posts
    Many
     
  3. #2
    Join Date
    May 2004
    Location
    U.S.A.
    Posts
    2,890

    Default

    Hi,

    Are you using frame sound or loading sound into an object?......

    stopAllSounds();

    or

    mySound.stop(["idName"])

  4. #3

    Default

    Which is which?
    And I'm using frame sound but if you could tell how button sound works that would work much better.

  5. #4
    Join Date
    May 2004
    Location
    U.S.A.
    Posts
    2,890

    Default

    Hi,

    stopAllSounds();

    will stop all sounds in the movie.

    button sound is just putting the sound on the appropriate keyframe in the button.

    Object sound takes a bit of actionscript. You need to create a new sound object and then depending on how you want to load it..... either attaching it from the library or using the loadSound method...
    Code:
    mySound = newSound();
    mySound.attachSound("soundtrack");
    mySound.start();
    trace("Soundtrack is " + mySound.duration/1000 + " seconds in length");
    This would require the sound to be in your library and exported for actionscript in the first frame with an export name of "soundtrack"

    Here is a very nice sound tutorial.......

    http://kennybellew.com/tutorial/

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. BG sound playing non-stop through scenes
    By colormesilly in forum Sound and Music
    Replies: 0
    Last Post: 09-17-2006, 03:34 AM
  2. Replies: 1
    Last Post: 12-17-2005, 09:25 PM
  3. Sound - play and stop buttons
    By Floyd89 in forum Newbies
    Replies: 1
    Last Post: 12-17-2005, 12:47 AM
  4. Replies: 3
    Last Post: 06-03-2005, 12:00 PM
  5. Stop the looping!
    By chesh1r3c in forum Newbies
    Replies: 2
    Last Post: 07-10-2003, 05:53 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Sponsors
Create Speaking Characters for your website and Flash movies. 15 Day Free Trial