Hi guys,
How can I get the name out of the passed variable to the function?
for example:
drawArea(auto); //auto is a MovieClip();
private function drawArea(m:MovieClip):void {
m.graphics.beginFill(0xFF0000, 0.1);
m.graphics.drawRect(0, 0, stage.stageWidth / 3, stage.stageHeight);
m.graphics.endFill();
addChild(m);
[COLOR=#FF0000]// how to get the tracer to output: "auto"[/COLOR]
m.buttonMode = true;
m.addEventListener(MouseEvent.CLICK, clicked);
}