I am adding child to a component. The child is another xml (vbox) and it's being added to an existing vbox in the main application mxml.
From the child, I need to access a public variable from the main application file but it's throwing a null pointer error.
Can someone please help?
If you defined the public property "foo" in the main application mxml file, you can access it anywhere else as: