I am trying to use the following code
And it works great if the buttons are in the same frame however I need the buttons to be in different frames and that's where it breaks with the error:Code:function eventResponse1(evt:MouseEvent):void { gotoAndStop("one");} btn_one.addEventListener(MouseEvent.MOUSE_UP,eventResponse1); function eventResponse2(evt:MouseEvent):void { gotoAndStop("two");} btn_two.addEventListener(MouseEvent.MOUSE_UP,eventResponse2); function eventResponse3(evt:MouseEvent):void { gotoAndStop("three");} btn_three.addEventListener(MouseEvent.MOUSE_UP,eventResponse3);
TypeError: Error #1010: A term is undefined and has no properties.
I can get this to work in AS2 applying the actionscript to the button itself but using AS3 with an external script file or the script on the main timeline I get the error mentioned above.
Any ideas why this is happening? If more details is needed I can provide it.
Thanks.






Bookmarks