Что то не выходит, вот как я делаю:

Код AS3:
package
{
public class Main extends MovieClip
{
public function Main()
{
createGoblin();
}
private function createGoblin(x:Number = 0, y:Number = 0):Gob //Класс Врага
{
var newGoblin:Gob = new Gob();
newGoblin.x = x;
newGoblin.y = y;
enemys.push(newGoblin);
return newGoblin;
}
}
}
Выводит:
TypeError: Error #1009: Не удается вызвать свойство или метод со ссылкой на объект "null".
at Gob()
at Main/createGoblin()
at Main()
И куда addChild(createGoblin); пхнуть?