PDA

View Full Version : 2 output errors on basic code i have used non-stop


jcdevelopment
05-18-2010, 05:09 PM
function gotoTextEbby(event:MouseEvent):void
{
var ebbyURL:URLRequest = new URLRequest("http://text.ebby.com");
navigateToURL(ebbyURL,'_blank');
}

link_button.addEventListener(MouseEvent.CLICK, gotoTextEbby);
link_button.buttonMode = true;

I have used this code over and over just switching it with different projects. Now i get this:

1120: Access of undefined property ||link_button.addEventListener(MouseEvent.CLICK, gotoTextEbby);

1120: Access of undefined property || link_button.buttonMode = true;

abduraooft
05-18-2010, 05:11 PM
Please post your complete code or a link.

jcdevelopment
05-18-2010, 05:32 PM
that was the code, but i figured out i didn't give it an instance. It was just a graphic. Thanks though.