1061 Call to a possibly undefined method addEventListener through a reference with static type Class
import flash.events.mouseevent;
import flash.net.urlrequest;
import flash.net.navigatetourl;
var getcontactpage:urlrequest = new urlrequest ("http://www.mycontacturl.html")
contact.addeventlistener(mouseevent.click,contactclick);
function contactclick(event:mouseevent): void {
navigatetourl (getcontactpage);
}
any appreciated
thank you
the message makes sound contact name of class, not instance name of object. make sure not naming object class name.
More discussions in ActionScript 3
adobe
Comments
Post a Comment