Error #2109 - driving me insane
hi
i am quite new to AC3 and am having a bit of trouble with my buttons. when testing my movie i get this error code:
the gallery button was clicked!
ArgumentError: Error #2109: Frame label gallery not found in scene Scene 2.
at flash.display::MovieClip/gotoAndStop()
at new_fla::MainTimeline/clickSection()
so, i can tell that my code is working to some extent - only it isn't moving to the frame it is meant to. I should also mention that this is in Scene 2 of my flash document. all my frames are labeled correctly and are in conjunction with the code. (about, gallery, links etc...)
my code is as follows :
stop();
about.addEventListener(MouseEvent.CLICK,clickSection);
gallery.addEventListener(MouseEvent.CLICK,clickSection);
links.addEventListener(MouseEvent.CLICK,clickSection);
function clickSection(evtObj:MouseEvent) {
trace ("the "+evtObj.target.name+" button was clicked!")
gotoAndStop(evtObj.target.name);
}
if anyone could help me here i would be greatful ^__^ I'm going to end up kicking myself if the solution is staring me right in the face x__x