Can something help me get this to work without using name properties?
Can it even be done?
PHP Code:
var bottomRight:Sprite = new Sprite();
bottomRight.graphics.beginFill(0x00FF00, 0.2);
bottomRight.graphics.drawRect(775, 615, 25, 25);
bottomRight.graphics.endFill();
this.addChild(bottomRight);
this.addEventListener(MouseEvent.MOUSE_OVER, toolTip);
function toolTip(event:MouseEvent):void{
// I Want something like this to work : )
if(event.target.varName == 'bottomRight'){
trace('WORKING');
}
}