6 Replies Latest reply on May 6, 2009 3:58 AM by Muzak

    Problem with centerPopup

    TodLoch Level 1

      Hi,

       

      I've created TitleWindow component (Popup window), with I've called from another custom components. Unfortunately, the component from which I call PopUpManager.createPopUp() is small and placed in corner, so centerPopUp function centers my TitleWindow relative to  this small component, and I would like to center it relativeto the main application window. So I move the PopUpManager.createPopUp() call into separate function and placed this function to script block in main mxml file. Now my TitleWindow is centered relative to main Aplication, but....

       

      Inside my custom components I call this function using mx.core.Application.application.MyFunction(); I know, that it isn't a good way. How to call function declared in other component?

       

      Best regards,