может я чтото не так делаю?

Код AS3:
if (!this.contains(c)) {
c = new obj(this);
addChild(c);
}
TypeError: Error #2007: Parameter child must be non-null.
at flash.display:

isplayObjectContainer/contains()
Добавлено через 4 минуты
вроде разобрался, спасибо
надо было так:

Код AS3:
c = new obj(this);
if (!this.contains(c)) {
addChild(c);
}