This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Flash Site Design > January 2004 > Music Player





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Music Player
Legolas9901 webforumsuser@macromedia.com

2004-01-26, 11:29 pm

Hey all-

Got a big problem. This is pretty much the shortest explanation. To begin, think of it as a music player.

I have a movie clip. In that are two buttons that control a PAUSE in the action and a PLAY. Also in this movie clip, I have another layer that contains music.

This is the actionscript coding for the two buttons:

FOR THE STOP/PAUSE:

on(release) {
gotoAndStop(1);
}

FOR THE PLAY:

on(release) {
gotoAndPlay(1);
}

Basically the problem is that they're not responding to my demands! I'm clicking them and nothing happens, the music keeps on playing. Is it the fact that they're within a movie clip? The buttons and the music are all in together in the same movie clip.

Any help would be great.


vitcheff webforumsuser@macromedia.com

2004-01-29, 12:31 pm

playButton:

on(release){
_root.myMovieClip.gotoAndPlay(1);
}


pauseButton:

on(release){
_root.myMovieClip.gotoAndStop(1);
}

Flash needs a reference to the movieClip, which you want to play and pause.

hope this helps



The greatest nonsense is like the greatest number...
Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews