Jump to content
Killersites Forums

Flash 8 custom media player (sound files)

Recommended Posts

I have a custom media player and I have my sound files playing when I click the play/pause button and segment buttons that I have created but I don't know how to make the play/pause button pause. I have a forward and back btn that I want to have working so that it will go to the previous and next sound file. I have a stop btn that stops all sounds. When I click segment 1 it plays and when I click segment 2 it plays but segment 1 keeps playing. I want to have it where if I click 1 of them it plays but when I click a different one, the first sound stops and the second file plays. My whole website is in 1 layer and the pages are in different frames. My media player is in frame 9. Here is my actionscript for frame 9:



mysound1 = new Sound();


segment1_btn.onRelease = function() {



mysound2 = new Sound();


segment2_btn.onRelease = function() {



mysound3 = new Sound();


segment3_btn.onRelease = function() {



mysound4 = new Sound();


segment4_btn.onRelease = function() {



mysound5 = new Sound();


segment5_btn.onRelease = function() {



playButton.onRelease = function() {




stopButton.onPress = function() {



slider_1.onPress = function(){

this.startDrag(true, _root.groove_1._x,_root.groove_1._y, _root.groove_1._x + 98,_root.groove_1._y);


slider_1.onRelease = function(){



slider_1.onMouseMove = function(){

newPoint = Object();

newPoint.x = this._x

newPoint.y = this._y




Link to post
Share on other sites
  • 5 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...