Post by
LuckyLuke »
https://forums.nicoclub.com/luckyluke-u119961.html
Tue Nov 17, 2009 10:16 am
I am starting to use AS 3.0. I am doing external script. I stored my external script in the .as file. But when you click on the button it pops up new window instead change current window.
books_btn.addEventListener(MouseEvent.ROLL_OVER, booksOverHandler);function booksOverHandler(event:MouseEvent):void { books_btn.gotoAndPlay ("books");}books_btn.addEventListener(MouseEvent.ROLL_OUT, booksOutHandler);function booksOutHandler(event:MouseEvent):void { books_btn.gotoAndPlay ("books_end");}books_btn.addEventListener(MouseEvent.CLICK, booksClickHandler);function booksClickHandler(event:MouseEvent):void { navigateToURL (new URLRequest("http://www.google.com"),"_top");}