Hey,
Just learning flash action script 3
all i want to do is add a link to a URL
i have converted my graphic into a button named myButton
here is my code:
var link:URLRequest = new URLRequest ("
http://www.bikes.com.au/g/37231/interstate-delivery-charges.html");
myButton.addEventListener(MouseEvent.CLICK, linktourl);
function linktourl(event:MouseEvent):void {
navigateToURL(link);
}
____________
and i get error 1061: call to possibly undefined method
addEventListener through a reference with a static type class
if anybody could help that would be fantastic