Using Flash to Navigate Flash Navigation
August 17, 2007 12:00 AM
Adding on...Flash ActionScript 3.0Remember that in actionscript 3.0 all script is written to the frames and not the objects such as buttons and movieclips. Go to Next Page: (Note: "invButton" is the button instance)function gotoNextPage(event:MouseEvent):void{ var url:String = "javascript:trivNextPage()"; var request:URLRequest = new URLRequest(url); navigateToURL(request,"_self") ;}invButton.addEventListener(MouseEvent.CLICK,gotoNextPage);Go to Previous Page: (Note: "invButton" is the button instance)function gotoPreviousPage(event:MouseEvent):void{ var url:String = "javascript:trivPrevPage()"; var request:URLRequest = new URLRequest(url); navigateToURL(request,"_self") ;} invButton.addEventListener(MouseEvent.CLICK,gotoPreviousPage );
Discussions have been disabled for this post