Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / Flash Site Design / January 2004



Tip: Looking for answers? Try searching our database.

Music Player

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Legolas9901 - 27 Jan 2004 03:05 GMT
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 - 29 Jan 2004 16:30 GMT
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...
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.