# About to take a hammer to computer

**URL:** <https://forum.kirupa.com/t/about-to-take-a-hammer-to-computer/246801>\
**Category:** flash\
**Created:** [December 14, 2007, 5:48pm UTC](https://forum.kirupa.com/t/about-to-take-a-hammer-to-computer/246801 "2007-12-14T17:48:44Z")\
**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:48pm UTC](https://forum.kirupa.com/t/about-to-take-a-hammer-to-computer/246801/1 "2007-12-14T17:48:44Z")

</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
