I'm trying and it doesn't seem to like it. I'm guessing it's not possible?

:

Actionscript Code:
bonus.addEventListener(Event.ADDED_TO_STAGE,addBonus(hitArray["xPos"],hitArray["yPos"])