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

Closed Thread
Results 1 to 4 of 4

Thread: Question about embedded audio

  1. Default Question about embedded audio

    Can someone tell me if there are any freeware embedded audio players available? I need an audio player that I can put on a website that will allow people to click a button and play the audio (or stop or pause) MP3 format. I have seen several of these players but I believe they are proprietary and I want to be able to distribute it. Here is an example of the type of player I am talking about. (The player is on the top right of this page):

    http://www.sonicmemo.com/sonicmemo.html

    Thank you,

    James

  2. #2
    Join Date
    Sep 2003
    Location
    Florida
    Posts
    3

    Default Flash? Non flash?

    Welcome to FlashAdvisor!

    I know of all different types of audio players, but it depends just what you are looking for. Flash? Non flash? If flash, did you want just a plain and simple one, just buttons, would you like a visualization? Please describe what you are looking for exactly!

  3. #3

    Default

    The example you linked to, is just a simple flash film with a mp3 linked from the library, and 2 buttons.
    These are the basics (and I mean the basics)
    Code:
    //this goes on frame 1 of the main timeline
    //tell it to stop 
    stop();
    //make a sound object
    mySound = new Sound (this)
    //attach a sound from the library to it
    mySound.attachSound("mySong");
    thats our sound attached we just need to start it now.
    to do this we make a button and give it the instance name of play_btn (in the properties on the left)
    to start the song playing we say:

    Code:
    this.play_btn.onRelease(){
    mySound.start();
    }
    similarly we can tell the sound to stop by placing the following code on
    Code:
    this.play_btn.onRelease(){
    mySound.stop();
    }
    hope that gets you started, if you want to pause the sound it gets quite complicated....and I've no flash at the mo, to check it b4 giving it you.

    Taff

  4. Default

    Taff, it'd be better to load dynamically to keep the filesize down. So instead of

    Code:
    mySound.attachSound("mySong");
    Use

    Code:
    mySound.loadSound("mySong.mp3");

Closed Thread

Thread Information

Users Browsing this Thread

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

     

Similar Threads

  1. Replies: 1
    Last Post: 08-29-2006, 11:13 PM
  2. Replies: 3
    Last Post: 07-28-2006, 10:01 PM
  3. Lines Around Embedded SWF
    By ziola111 in forum Newbies
    Replies: 1
    Last Post: 05-16-2006, 02:26 PM
  4. Embedded buttons don't work-- Help me please
    By markwantsnyc in forum Flash Scripting
    Replies: 5
    Last Post: 12-15-2005, 11:59 PM
  5. streaming audio?
    By jay05 in forum Flash Scripting
    Replies: 3
    Last Post: 03-14-2005, 06:35 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