user2870985
user2870985

Reputation: 11

1061: Call to a possibly undefined method addEventListner through a reference with static type flash.display:SimpleButton

Would be really glad if some one can take me out of this error :(

dgfdHome.addEventListner(MouseEvent.CLICK, chome);
function chome(event:MouseEvent):void
{
gotoAndStop(10);
}

Upvotes: 0

Views: 623

Answers (1)

Ivan Chernykh
Ivan Chernykh

Reputation: 42166

Try addEventListener instead of addEventListner ;)

Upvotes: 4

Related Questions