you can use this keyword
The actionscript is not in a flex display object. it is a command class.
so, use this will give you a compile error
1 person found this helpful
if you are openeing PopUp on itemClick of Menu Item then in the eventHandler of itemClick event you can get the currentTarget.
trace(e.target)//it will be the currentTarget
or you can make DisplayObject(Application.application) as parent of PopUp
Thanks, that's helpful.
I also found something can do similiar job. for anyone that interested on this, here is the code:
Application.application is static and you access to root application.