This content has been marked as final. Show 3 replies
Flex provides the following properties that you can use to access parent documents:
Application.application The top-level Application object, regardless of where in the document tree your object executes.
parentDocument The parent document of the current document. You can use parentDocument.parentDocument to walk up the tree of multiple documents.
parentApplication The Application object in which the current object exists. Flex applications can load applications into applications, therefore, you can access the immediate parent application by using this property. You can use parentApplication.parentApplication to walk up the tree of multiple applications.
So, for example I can use:
Alert.show( message + " currentState: " + parentDocument.currentState );
to view currentState name? Well, it is not working, as long as external .as file concerned.
In your case you might need to use Application.application.