Alright, so I'm creating objects dynamically, i.e.
ActionScript Code:
for(var i:int=0; i<5; i++) {
var table:Table = new Table(Math.random()*stage.stageWidth,Math.random()*stage.stageHeight,Math.random()*100);
addChild(table);
table.addEventListener(MouseEvent.CLICK, onClick);
}
Now, the Table class has a method called getMemento. How would I go ahead accessing that method? e.target.getMemento() doesn't work

And I can't come up with any solution...
ActionScript Code:
private function onClick(e:MouseEvent):void {
_nextMementos = new Array();
_previousMementos.push(e.target.getMemento());
(e.target as MovieClip).setXPosition(Math.random() * stage.stageWidth);
(e.target as MovieClip).setYPosition(Math.random() * stage.stageWidth);
}