New Posts  All Forums:Forum Nav:

Flash game

post #1 of 4
Thread Starter 
Hello, i'm making my first flash game but Ive run into some problems. Is there anyone here that can help?

The upload function dind't work here today so I add download link instead:¨

http://www.2shared.com/file/gZfjkJFY/theGame.html


Everytime I reach the next level I get this error:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at Game_fla::MainTimeline/movecircle()

I also want the timer to stop counting when I die or finnish.

I've tried
Code:
 if (platforms.currentFrame == platforms.totalFrames -1)
{
timer.stop();
}
which didn't work.


Sorry, should this be in the application forum?
Edited by odjerer - 4/30/11 at 4:32pm
post #2 of 4
Thread Starter 
Is there noone with any idea about how to solve this?
post #3 of 4
I've never done Flash programming, but it looks like the object that you're trying to call a method on (I'm guessing the object is MainTimeline and the method is moveCircle()?) is not being initialized when the new level begins.
Viking
(13 items)
 
  
CPUMotherboardGraphicsRAM
Intel Core i5 2500K @ 4.8 GHz 1.45V P8Z68-V GEN3 [2x] EVGA GeForce GTX 570 SLI [2x] Kingston HyperX 4GB 1600MHz 
Hard DriveHard DriveCoolingCooling
Crucial M4 128GB [2x] WD 320GB XSPC Single Bay Reservoir Swiftech MCP655 
CoolingCoolingOSPower
XSPC Raystorm XSPC EX240 Windows 7 Pro 64-bit Corsair HX850 
Case
Corsair Obsidian 650D 
  hide details  
Reply
Viking
(13 items)
 
  
CPUMotherboardGraphicsRAM
Intel Core i5 2500K @ 4.8 GHz 1.45V P8Z68-V GEN3 [2x] EVGA GeForce GTX 570 SLI [2x] Kingston HyperX 4GB 1600MHz 
Hard DriveHard DriveCoolingCooling
Crucial M4 128GB [2x] WD 320GB XSPC Single Bay Reservoir Swiftech MCP655 
CoolingCoolingOSPower
XSPC Raystorm XSPC EX240 Windows 7 Pro 64-bit Corsair HX850 
Case
Corsair Obsidian 650D 
  hide details  
Reply
post #4 of 4
Thread Starter 
moveCircle is the function and maintimeline is just the name of the main timeline which it always is. THe main timeline may consist of childs (I beleive the name is) which contains several frames. But It might be hard to understand if you have never used flash.

The function moveCircle is on the main timeline so it shouldn't have been a problem as far as I can understand, the circle moves without no problem, but I still get the error message so something must be wrong. I am afraid that may mess up my something later on in the development
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Coding and Programming