During the development process, you may need to jump from one interface to another, for example, the Window jump in the software, the page Jump in Web development... but in the Flash world: there are only frames and no windows and pages. Therefore, controlling the jump between timelines/frames is the most common solution to this requirement.
Btn1.addeventlistener (mouseevent. mouse_down, function () {Md. gotoandplay (1) ;}); btn2.addeventlistener (mouseevent. mouse_down, function () {Md. gotoandstop (2) ;}); btn3.addeventlistener (mouseevent. mouse_down, function () {Md. gotoandplay (3) ;}); btnprevious. addeventlistener (mouseevent. mouse_down, function () {Md. prevframe () ;}); btnnext. addeventlistener (mouseevent. mouse_down, function () {Md. nextframe () ;}); Md. stop (); addeventlistener (event. enter_frame, enterframehandler); function enterframehandler (E: Event): void {txtmsg. TEXT = "current frame/total frames:" + MD. currentframe + "/" + MD. totalframes ;}
Source File: http://cid-2959920b8267aaca.skydrive.live.com/self.aspx/Flash/FrameControl.fla