Ok… I know that I must be missing something fairly fundamental but I can’t seem to wrap my brain around it.
Here is my concept idea:
I have a main timeline with a set of buttons and a movie clip.
When you hover over the various buttons, I am trying to get the movie clip to play and depending on the button hovered over, have the playhead in the movie clip go to a specific frame.
I have the movie clip placed on the main timeline with a stop action on the first frame so it won’t play right away.
I don’t know the proper syntax in actionscript to call the movie clip and direct the playhead to the correct frame.
I have tried the gotoAndPlay, and a couple of variations but I think my logic is flawed.
I would appreciate it if someone could give me direction (you don’t have to actually give me the code).
Ok that makes sense and here is the script that I am using which is not getting me the results I am looking for.
Ok just in case my formatting is incorrect in terms of layers etc…
On a layer called “hover” I have placed the instance of the movieclip “names”. The instance is called “m1” (just for purposes of trying to get this to work)
On a layer above “hover” I have placed the button that uses this script.
on (rollOver) {
m1.gotoAndPlay(5);
}
Frame 5 of the movieclip is where I want the clip to start playing.
As it stands now… I get nothing when I hover over the script.
As a test, I went into the movieclip and removed all the stop actions and then previewed the published file… the movie clip played and repeated fine.
Creating engaging and entertaining content for designers and developers since 1998.