T24
01-04-2009, 04:10 PM
I'm having a problem with a puzzle game that I'm working on. Everything seems to be working fine, until level 2 of the game. Once you're on level 2 the timer starts and everything seems fine - until you click a puzzle piece to pick it up and then drop it (in other words, on level 2, when you click a piece I receive the following error).
TypeError: Error #2007: Parameter hitTestObject must be non-null.
at flash.display::DisplayObject/_hitTest()
at flash.display::DisplayObject/hitTestObject()
at HitTest$/complexIntersectionRectangle()
at HitTest$/complexHitTestObject()
at puzzleGame_fla::MainTimeline/shapeHitTest()
at puzzleGame_fla::MainTimeline/stopDragage()
However, the game still functions properly, and, if you ignore the error, you could actually finish level 2 as if the error didn't even occur. I tried to debug the movie but I didn't get much out of it. It seems the problem is with the script in the hit test.
Download the files and check it out (I used Flash CS4 to create the game - A.S. 3.0). The game is not complete but you can still play it. Play the game and once you get to level 2, click on a piece and you will get the error. Maybe you could figure it out or offer some suggestions.
Thanks in advance!
Download the flash file (puzzleGame.fla), and a.s. file which contains the script for the hit text/ collision (HitTest.as). They are both in .zip I couldn't upload the flash file here because it was too large but you can download it from the link I gave you.
http://www.mediafire.com/?tdylntcjtnn << puzzleGame.zip
TypeError: Error #2007: Parameter hitTestObject must be non-null.
at flash.display::DisplayObject/_hitTest()
at flash.display::DisplayObject/hitTestObject()
at HitTest$/complexIntersectionRectangle()
at HitTest$/complexHitTestObject()
at puzzleGame_fla::MainTimeline/shapeHitTest()
at puzzleGame_fla::MainTimeline/stopDragage()
However, the game still functions properly, and, if you ignore the error, you could actually finish level 2 as if the error didn't even occur. I tried to debug the movie but I didn't get much out of it. It seems the problem is with the script in the hit test.
Download the files and check it out (I used Flash CS4 to create the game - A.S. 3.0). The game is not complete but you can still play it. Play the game and once you get to level 2, click on a piece and you will get the error. Maybe you could figure it out or offer some suggestions.
Thanks in advance!
Download the flash file (puzzleGame.fla), and a.s. file which contains the script for the hit text/ collision (HitTest.as). They are both in .zip I couldn't upload the flash file here because it was too large but you can download it from the link I gave you.
http://www.mediafire.com/?tdylntcjtnn << puzzleGame.zip