Im making a flash website for an assignment
Theres buttons leading to different pages of the website and on one tab I labeled "game" im trying to do just that.
I messed around with the initial buttons code to make one that would allow me to make a multiple path flash game.
stop();
playgame_btn.addEventListener(MouseEvent.CLICK, playShowContent);
function playShowContent (evt:MouseEvent) {
gotoAndStop("10");
}
ignore_btn.addEventListener(MouseEvent.CLICK, ignoreShowContent);
function ignoreShowContent (evt:MouseEvent) {
gotoAndStop("20");
}
starting on a frame 1 keyframe a button instanced as playgame takes you to frame 10. I figured it'd work for all the paths so I proceeded to making a ignore option for the first path but then I get this in the output and the ignore button won't work.
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at micrositecolour_fla::Main3_mc_10/frame1()
at flash.display::MovieClip/gotoAndStop()
at micrositecolour_fla::MainTimeline/gamesShowContent()
I instanced the button properly and a frame 20 exists so im kinda stumped, been working away at it but can't get it to work. Help?
http://matys.ca/index.html
I posted it on my website if you want to see it