Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Rolling Over

Status
Not open for further replies.

Dannybe2

Programmer
Jan 31, 2001
136
GB
I am having problems with a button linked to a movie. The button and movie are right next to each other in the same frame. The idea is when I roll over the button the movie plays, but I cannot get the movie to play at all. I have put a stop command in the first frame of the movie to stop it from playing immediately. And I have the following action commands on the button:

on (rollOver) {
movie1.play();
}
 
Thanks, but that didn't work either.

I also tried:

on (press, release, rollOver) {
movie1.gotoAndPlay(2);
}

If I remove the stop at the front of the movie1 it plays when you move to that frame as it should. I have a frame in the over frame of the button which indicates the button is working properly, and I can't seem to work out what is wrong.
 
sounds like one of 2 things

either the button code is in the wrong place or the path to the clip is wrong

can you post the fla ? that will be the quickest way to get this solved.
 
problem solved

what you have to do is give the movieclip an instance name on the stage of movie

although its called movie in the library you have to give it an instance name on the stage

just click it, open properties, give it a name and then use that name to target the clip in your button code

for your example a name of movie will make the button work
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top