Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Need help with button/clip scenario

I am trying to create a button that displays PAUSE when the movie is running, when clicked, it pauses the movie and displays a PLAY button. When that is clicked, the movie resumes and the PAUSE button displays again, and so on.

This is the code I am using:

for the stop button place the code:

on(release){
this._visible = false;
playButton._visible = true;
_root.stop();
}

for the play button place the code:

on(release){
this._visible = false;
stopButton._visible = true;
_root.play();
}

select each button and put it in its own seperate movie clip. Give one an instance name of stopButton and the other an instance name of playButton.


select the playButton movieclip and open up object actions. Place the following:

onClipEvent(load){
this._visible = false;}


-----------------------------------------------------------

Now the only problem that I am having is that the playButton is not visible after clicking on the stopButton. I must have something wrong somewhere. Any ideas as to what?

I have placed the pause/play button .swf out at this url so you can see firsthand what it is doing:

www.blueridgewebdesign.com/play_pause_buttons.html
(includes a link to download the .fla)

The PLAY button does not display when the PAUSE button is clicked...it is just an empty space!......can someone help please?

Comments

  • ajoyajoy Member Posts: 17
    hi there dude,
    ther is another way to do this and achieve the result you want, could you mail me your fla and i will correct your erroe and also add a scene with another way to achieve the same

    do let me know if this is ok with you

    thanks



Sign In or Register to comment.