# Book coding doesn't work

**URL:** <https://forum.kirupa.com/t/book-coding-doesnt-work/246802>\
**Category:** Uncategorized\
**Created:** [December 14, 2007, 5:52pm UTC](https://forum.kirupa.com/t/book-coding-doesnt-work/246802 "2007-12-14T17:52:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SteelCity](https://avatars.discourse-cdn.com/v4/letter/s/3bc359/32.png) [@SteelCity](https://forum.kirupa.com/u/SteelCity)\
**Post date:** [December 14, 2007, 5:52pm UTC](https://forum.kirupa.com/t/book-coding-doesnt-work/246802/1 "2007-12-14T17:52:19Z")

</div>

The coding comes straight from the book (minus my targeted url,and button instance name) How come I keep getting error messages whenever I use coding from the manuals. see example below… Thanks guys

var myUrl:URLRequest = new URLRequest ("…/images/questionpage.swf");  
function clickButton(myevent:MouseEvent):void{  
navigateToUrl(myUrl);  
}  
lio\_btn.addEventListener(MouseEvent.CLICK, clickButton)

errors:  
MouseEvent from the function line can’t be loaded  
URLRequest from var line can’t be loaded

note:  
whenever I have a  
(myevent:\_\_\_\_\_\_) whatever is in the blank doesn’t load
