dcsimg
A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Looking for Simple Play & Stop Audio Help

  1. #1

    Looking for Simple Play & Stop Audio Help

    Hello,
    I want to create a graphic button, which is a simple play / stop icon that when pressed will either start or stop a MP3 audio file from playing.

    If it could pull the MP3 file from an external server location that would be even better, but if I have to embed the audio into Flash, that is fine too.

    Forgive me it has been 3 years since I've used Flash... alot has changed since.

    any help would be greatly appreciated.

    thanks!

  2. #2
    Moderator
    Join Date
    Apr 2001
    Location
    Akron OH, USA
    Posts
    4,841
    you will need to review the concepts behind the sound object. You can use loadSound() to either load a mp3 completely before playing, or play as it loads (progressive load). If you load first, then use the onload event to start the sound. If you progressively load, then the sound starts playing after Flash preloads enough sound to fill its buffer. The sound object has a start() and stop() method to control playback.
    aviarts.com - web development and flash development

  3. #3
    I appreciate your response greatly...

    However I havent the foggiest idea what you are talking about.

    I was hoping someone might know of a tutorial to walk me through the process.

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