Skip to main content
Participating Frequently
October 23, 2006
Question

I want to a movie clip to repeat everytime I click a button.

  • October 23, 2006
  • 1 reply
  • 219 views
Hello,

I am new to actionscripting but not Flash, I am using Flash MX 2004 for a college project at the moment. I have created an interface which features four buttons, each button activates a different movie clip. This works fine but only on the first time to press the button if you press the button again the movie clip does not play again, I would like the movie clip to play EVERY time the button is pressed. Here is the script that I have created in a seperate layer called actions, if that helps:

ellaimage._visible = false
Betaimage._visible = false
Yakuzapic._visible = false
Pornopic._visible = false
boxmovie._visible = false
Betabox._visible = false
textboxmc._visible = false
Yakuzabox1._visible = false
Pornobox1._visible = false

pellabutton.onRelease = function () {
stop ();
Betaimage._visible = false
Yakuzapic._visible = false
Pornopic._visible = false
textboxmc._visible = false
Betabox._visible = false
Pornobox1._visible = false
Yakuzabox1._visible = false
boxmovie._visible = true
textboxmc._visible = true
Pellaimage._visible = true;
Pellaimage.gotoAndplay(1)}


Betabutton.onRelease = function () {
stop ();
Pellaimage._visible = false
Yakuzapic._visible = false
Pornopic._visible = false
textboxmc._visible = false
Yakuzabox1._visible = false
Pornobox1._visible = false
Betaimage._visible = true
Betabox._visible = true
boxmovie._visible = true
Betaimage.gotoAndplay (1) }

Yakuzabutton.onRelease = function () {
stop ();
Pellaimage._visible = false
Betaimage._visible = false
Pornopic._visible = false
textboxmc._visible = false
Pornobox1._visible = false
Betabox._visible = false
Yakuzabox1._visible = true
boxmovie._visible = true
Yakuzapic._visible = true
Yakuzapic.gotoAndplay (1) }

Pornobutton.onRelease = function () {
stop ();
Pellaimage._visible = false
Yakuzapic._visible = false
Betaimage._visible = false
textboxmc._visible = false
Betabox._visible = false
Pornobox1._visible = true
Yakuzabox1._visible = false
Pornopic._visible = true
boxmovie._visible = true
Pornopic.gotoAndplay (1) }

// this command stops the timeline
stop ();


Any help would be great.

Thanks in advance
    This topic is closed to new replies. Start a new post to keep the conversation going.

    1 reply

    Participating Frequently
    October 23, 2006
    Opps wrong Forum sorry