8 Replies Latest reply on Apr 30, 2010 9:50 AM by JPatlovany

    Access module mxml from component

    JPatlovany

      I am trying to modularize my application, so I moved some of my windows (NavigatorContent) mxml files into a new directory, and created a new module mxml file.  I have my main application loading the new module with a button click.  However, I have some functions in my module mxml file that I would like to call from my windows.  I tried to use "parentDocument" but that is still calling the functions that are in my main application mxml file.

       

      parentApplication

       

      module (has viewstack that contains navigatorContent xmxl files)

       

      navigatorContent (can be accessed from module mxml, but I can't figure out how to access functions in the module mxml from here)