15 Replies Latest reply on Dec 3, 2009 8:53 AM by Guddie

    Access variables from custom component

    Guddie Level 1

      In my application, I have a custom component which extends ButtonBar. I have another custom component which extends TitleWindow. I instantiate (using 'new') the TitleWindow component from within the ButtonBar component.

       

      How can I access variables and functions stored with the ButtonBar component from the TitleWindow component which keeping my code as generic (uncoupled) as possible? Can I do parent.varName or something simple like that from within the TitleWindow component, and parent will reference the ButtonBar?