2 Replies Latest reply on Nov 18, 2008 4:40 AM by Newsgroup_User

    how can i access parent object ref. from a class

      I have a main application document in flex3 apart from a dialog mxml file and other mxml files. I have imported a class in main application and created an object of it. Now from another function of that class I am trying to create popup window using popup manager. win = PopUpManager.createPopUp(this, Dialog, true) as Dialog; this here refer to class object itself and its throwing error in next statment..PopUpManager.centerPopUp(win); error is "TypeError: Error #1009: Cannot access a property or method of a null object reference" . How can i access parent application object from this class i. .main application reference?

      Any help is appreciated. Thanks in advance.