I hava a problem using popup manager with title window. I get
the following error:
TypeError: Error #1009: Cannot access a property or method of
a null object reference.
I am trying to create a popup which asks for credentials and
then uses them in the main application window.
The code is attached below...
Glancing at the code it looks like there is a varible scope
problem. Your code defines the pop window in the method
displayPopUp ... var pop:LoginForm =
Since it is defined within the displayPopUp method with a
variable name of pop, the variable is not available to anything
outside of the method which means that the submitData method does
not know about your pop variable.
If you define your pop variable as an instance of the window
all methods will have access to the variable.