-
Three buttons - Want to play audio upon clicking the play button - Help required
I am near the end of my quiz however there still one item i am having trouble with, I wish to have three buttons:
1. a play button instance name: play_btn
2. a pause button instance name: pause_btn
3. a stop button instance name: stop_btn
I wish for the play button to play a single mp3, the pause to pause the song and the stop button to reset the song back to the start without it playing the mp3 again unless the play button is pressed.
I have no idea how to do this and from the research I’ve done I cannot find anyone else who is doing the same in AS3 (including this forum).
Cheers,
Callum
-
I believe you are in need of the soundChannel:
http://help.adobe.com/en_US/AS3LCR/F...ndChannel.html
look at the example. Note how the play works, kinda funny:
soundChannel=sound.play();
but for stop/pause it is soundChannel.stop();
-
 Originally Posted by Prozac500
I have no idea how to do this and from the research I’ve done I cannot find anyone else who is doing the same in AS3 (including this forum).
obviously my friend ... your researching abilities are pretty subpar
found this one first google search:
http://flashspeaksactionscript.com/c...player-in-as3/
it doesn't have you pause button in but like I said ... first search, first result. I would do a little more looking around.
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|