Why wont this work?

Soldato
Joined
27 Sep 2004
Posts
13,720
Location
.
Code:
forestbtn.addEventListener(MouseEvent.CLICK, forestbtn);
function forestbtn(event:MouseEvent):void{
MovieClip(root).gotoAndStop(11);
}

The button name is forestbtn and the button instance name is forestbtn - Why the hell does it keep churning out errors? AS3 is causing such misery.

edit: It appears in my rage I've posted in the wrong section :o
 
Back
Top Bottom