Pass a non-initiated Sprite into a function

Hello again!
I’ve got stuck in my current project, here is the code related to my problem:

playerMallet = new PlayerMallet(main_class);
addChild(playerMallet);
            
[COLOR=#ee82ee]enemyMallet [/COLOR]= new EnemyMallet([COLOR=#ff8c00]puck[/COLOR]);
addChild(enemyMallet);    


var [COLOR=#ff8c00]puck[/COLOR]:Puck = new Puck(playerMallet, [COLOR=#ee82ee]enemyMallet[/COLOR], this);
addChild(puck);

As you can see, the enemyMallet is trying to pass the [COLOR=#ff8c00]**puck **[/COLOR]instance as a parameter, but this gives me this error obviously:

[COLOR=#ff0000]Error #1009: Cannot access a property or method of a null object reference.[/COLOR]

This is becuase puck isn’t yet initiated yet.

It doesn’t matter which of these 3 instances I initiate first, one of them will always fail because all 3 can’t be initiated at once (or can they… ?)

~Tompa