Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

game not working says it cannot find goGame1 but cant find whats wrong with the code ..help please.

New Here ,
Oct 08, 2013 Oct 08, 2013

Screen shot 2013-10-08 at 10.21.58 PM.pngScreen shot 2013-10-08 at 10.21.22 PM.png

TOPICS
ActionScript
2.0K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 08, 2013 Oct 08, 2013

click file>publish settings>swf>tick permit debugging.  retest.

copy and past the complete error message and highlight the line of code mentioned in the error message.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 08, 2013 Oct 08, 2013

TypeError: Error #1123: Filter operator not supported on type builtin.as$0.MethodClosure.

          at midterm2013_fla::MainTimeline/frame85()[midterm2013_fla.MainTimeline::frame85:27]

          at flash.display::MovieClip/gotoAndStop()

          at midterm2013_fla::MainTimeline/goGame0()[midterm2013_fla.MainTimeline::frame84:7]

when i click button to the right

TypeError: Error #1009: Cannot access a property or method of a null object reference.

          at midterm2013_fla::MainTimeline/frame105()[midterm2013_fla.MainTimeline::frame105:4]

          at flash.display::MovieClip/gotoAndStop()

          at midterm2013_fla::MainTimeline/goGame1()[midterm2013_fla.MainTimeline::frame84:13]

when i click left

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 09, 2013 Oct 09, 2013

that's 1/2 of what's needed to help you.

again, copy and past the complete error message and highlight the line of code mentioned in the error message.  ie, frame85, line 27 and frame105, line 4.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 09, 2013 Oct 09, 2013

the new error message reads :

TypeError: Error #1009: Cannot access a property or method of a null object reference.

  at midterm2013_fla::MainTimeline/frame84()[midterm2013_fla.MainTimeline::frame84:17]

  at flash.display::MovieClip/gotoAndStop()

  at midterm2013_fla::MainTimeline/goGames()[midterm2013_fla.MainTimeline::frame31:23]

TypeError: Error #1009: Cannot access a property or method of a null object reference.

  at midterm2013_fla::MainTimeline/frame84()[midterm2013_fla.MainTimeline::frame84:17]

  at flash.display::MovieClip/gotoAndStop()

  at midterm2013_fla::MainTimeline/goGames()[midterm2013_fla.MainTimeline::frame31:23]

TypeError: Error #1009: Cannot access a property or method of a null object reference.

  at midterm2013_fla::MainTimeline/frame105()[midterm2013_fla.MainTimeline::frame105:4]

  at flash.display::MovieClip/gotoAndStop()

  at midterm2013_fla::MainTimeline/goGame1()[midterm2013_fla.MainTimeline::frame84:13]

Since I dont know what scene they are referring to, this is from the main timeline :

Screen shot 2013-10-09 at 8.08.04 PM.png

this is from the scene that isnt working :

Screen shot 2013-10-09 at 8.07.47 PM.png

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 10, 2013 Oct 10, 2013

frame 84 is the total frame number.  if you 10 frames in your first scene, 20 in your second, 30 in your third and 40 in your 4th scene, frame 24 in your 4th scene is frame 84.

with that in mind, what are the first 17 lines of of frame 24.  and again, copy and post is better than using a screenshot.  use your keyboard shortcuts to copy and past.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 10, 2013 Oct 10, 2013

1.game0Butt.addEventListener(MouseEvent.CLICK, goGame0); 2.game1Butt.addEventListener(MouseEvent.CLICK, goGame1); 3.homeButt.addEventListener(MouseEvent.MOUSE_UP, goHome); 4. 5.function goGame0(event:MouseEvent):void { 6. 7. gotoAndStop("game0"); 8. 9.} 10. 11.function goGame1(event:MouseEvent):void { 12. 13. gotoAndStop("game1"); 14.}

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 10, 2013 Oct 10, 2013
LATEST

1.  that's not easily legible. format your code.  if you copy and paste formatting is usually preserved by this forum.  you don't need to add line numbers.  just bold line 17 if you include more than 17 lines of code.

2.  if you have code in more than one layer the line numbers start are totaled in the order that your layers load (which, by default, is top-to-bottom, i think).

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines