Broken Flash Logo
Click an error type to choose an error.

mikeduguid

ø

Sentientv2

ø

joegodfrey

ø

sinsonido

ø

Aron18

ø

Ryan Stone

ø

John Nelson

ø

Alan

ø

Nojiveturkeyhe...

ø

aleejen

ø

Kellyf

ø

dangurtner

ø

kbowen

ø

agarcia

ø

ryan

ø

· · ·

1009

Runtime Error:Cannot access a property or method of a null object reference.

Adobe’s Take:
An object that evaluates to null can have no properties. This error can occur in some unexpected (though valid) situations. For example, consider the following code, which creates a Sprite object. Because this Sprite object is never added to the display list (through the addChild() method of a DisplayObjectContainer object), its stage property is set to null. Thus, the example generates this error because Sprite object's stage property cannot have any properties:

import flash.display.Sprite;
var sprite1:Sprite = new Sprite();
var q:String = sprite1.stage.quality;

Comment - September 12 2008 - 5:15 pm
avatar

Nathan Stone

rating: ø

est: 8/30/08


You're a Towel

Almost every time, this error means there is something in your code which does not match what is on your stage. For example, calling an object that has no instance name.
 
Login/Register to make a post
· · ·