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

Popular posts from this blog

Adobe Reader DC install error 150410

Adobe Acrobat Reader DC Updater error: 130200 in Win 7 64bit

「ルートオブジェクトがないか、無効です」