Custom Flash/Lectora Development

Here is the actionscript I tried, but I kept getting errors when I published the Flash movie.nextButton.addEventListener(MouseEvent.CLICK,goNext);function goNext(event:MouseEvent):void{      getURL(javascript:trivNextPage ();}