hi,
i am a hobby webpage designer/animator and i work quite well with flash mx 2004 but my programing skills are minimal.
i am creating an interactive map for a site. you can zoom in out and pan. the script for the paning/zooming moves a movieclip containing the map itself and a crosshair both in seperate layers. the zoom affects both the crosshair and the map but the crosshairs remain at the center of the screen. the map is a movie clip containing the map bitmap and different transparent buttons.
i want to have it so that when i press one of the buttons the whole movie jumps to a different frame. i put in the scrip without errors but i does not work. i notice that when i put the button to which the script is applied outside all the groups/movieclips etc. that then it works.
here is the location of the button:
the button is in the movie clip “map”.
how do i tell the button to jump to frame 5 in the scene “main” and not try to jump to frame 5 of the movieclip “map”?
here is my current script for the button:
on (release) {
gotoAndPlay(“Main”, 5);
}
just for info: i have applied the stop comand to the first frame of the scene.
Thank you so much for you help,
-Johannes