In Flash CS3 how do you code a button within a movie clip to go back to frame 1 in original scene?
I made a button that linked to a movie clip. Now within that movie clip I have a home button which I would like to link to the first frame in the original scene. I have no idea what the code for the button should be or where it should be put??? ANY HELP??? THANKS!
Ok, maybe I worded that wrong.
So I have a flash website. On the home page there is a button that when you click it, it jumps you to frame 5. On frame 5 is a movie clip that starts when you click the button on the home page. From that movie clip (on frame 5) I want to have a button that goes back to the original frame 1 of the whole flash website (the home page). I can't figure out where to add the code or what code to add so that the button within the movie clip jumps back to the original home page.
Umm.... kind of hard to understand with your description.... the code would go on the button
Click the button and go to your Actions panel. type something like this:
on (release){
_root.IfThatMovieClipIsInAnotherClipTheNameOfIt.TheMovieClipsName.gotoAndPlay(1);
}
This senario is if you have a Movie Clip inside a Movie Clip... if it is on the root timeline itself just use the _root.YourMovieClipsName.gotoAndPlay(1)
if you want it to stop on frame 1 use the property gotoAndStop()
and if you want to go to frame 1 on the master timeline it you can just use "gotoAndPlay(1)" without any links to _root
Again go to the section the button is in and select it (dont open it) and add that code to the Actions Panel on the Button Object
Update:
Ok... simple enough.
Make a button and place it on Frame 5 or wherever else you want it.
Again, select the button (dont double click the button to open it!) it should still be on the timeline of the main file (not the 4 frame button timeline).
Click on "Actions" tab or Window => Actions and type the following:
on(release){
gotoAndPlay(1);
}
it is as simple as that!