PDA

Click to See Complete Forum and Search --> : Creating a play and stop button MC for Flash MX 2004


benjo
06-28-2005, 09:58 AM
Need to create a simple play and stop button for a Movie clip that will play and stop a sound. It's for a preview of song tracks. How can I make this in a simple way where I just create one MC and reuse that function over into the next 9 songs?

Ulysses
06-28-2005, 10:53 AM
This'll help you on an easy footing: http://www.kirupa.com/developer/actionscript/sound.htm

Keep in mind, that there are multiple ways to play (and thus stop) a sound via actionscript. I've not had time to look at how the above example loads it sound, but it is a walkthrough, so it should at least help to clearly explain how to play and stop a sound in general. If you're you plan to use this via a website ... do try testing on a dial-up connection ... some actionscript/flash methods work great locally and on really fast internet connection, but sometimes, a whole different approach is required for general web use - particularly where sound and video are concerned (that is the beauty and the beast of showave flash though ... don't take the movie preivew for granted when developing for the web. Try rigging up a local web server for testing instead, and use a script to restrict the bandwidth).

benjo
06-28-2005, 02:48 PM
This looks great ulysses. Thanks I'll work on it once I get home. At my current job I can only play with print projects. =(