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

after effects warning: unable to create drawing surface

Maximum number of authorizations reached!