You can access any component in the flex application on the basis of hierarchy of that component.
Here parentApplication refers to the main appplication.
You can use this script anywhere in the application.
I hope this can help you if u r looking for it.
Thank u so much that helped a lot for me......