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

Error: 100600 Update failed, updates have been disabled by your system policy

ReferenceError: Window does not have a constructor : 325