Try using parentDocument instead of parent to go up the MXML hierarchy.
Or try "dotting down" from the Application instance:
Application.application.foo.bar.a.pubfunction().
Gordon Smith
Adobe Flex SDK Team
________________________________
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of andrewedwards39
Sent: Monday, July 14, 2008 7:55 PM
To: [email protected]
Subject: [flexcoders] Accessing public function from a different mxml
Hello all,
I have a public function in an mxml document (lets call it a.mxml, and
pubfunction ) and I want to access it from another MXML.
this is what I am trying (based on my old as2 knowledge :)
this.parent.parent.a.pubfunction();
where the mxml calling 'a' is two levels below 'a's parent.
this is not working, so I was wondering if anyone had any tips?
cheers
andrew