// you’re reading...

ActionScript 3.0

Flex access to other components

This is just a note to self:

You can access other components and their properties from within a component in code using

parentDocument, parentApplication, or Application.application to reach up and
myCheckoutAccordion.myAddressForm.firstNameTextInput.text to dot down. From the Flex Docs I’ll throw an example together later- like after work.

Discussion

3 comments for “Flex access to other components”

  1. right gnome will bet circle without any questions , when gnome is game it will create TV

    Posted by Kenneth Ford | March 23, 2006, 3:35 am
  2. You might like to add that you have to

    import mx.core.Application;

    Posted by John | July 24, 2008, 5:59 am
  3. Thanks. I think I’ve gotten lazy with my automatic imports in Flexbuilder.

    Posted by diamondtearz | July 27, 2008, 11:09 am

Post a comment