Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 12-10-2009, 04:32 PM   #1
miketv101
Registered User
 
Join Date: Dec 2009
Posts: 3
Default [AS3] 1009 error flash path game

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
miketv101 is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:19 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.