1 Reply Latest reply on Jan 31, 2014 12:54 AM by poortip87

    Panel fails to initialize on ID CS6 on Windows

    poortip87 Level 1

      Hi All,

       

      I am developing a Flex extension for InDesign CS5 - CC using Flash Builder 4.6, Extension Builder 2.1. The UI is simple, just contains a button. On the application complete, I just initialize an object of a class. My problem is that sometimes, the button on the panel just doesn't load. For eg., if I close the ID application without closing the panel, and then re-open the application, normally, the panel should load fine with its components. But here, the button is not visible. I have to close the panel, and then re-open it to get the button to load. There is no specific pattern.

       

      I added function calls to all the events below:

      - preinitialize

      - initialize

      - creationComplete

      - applicationComplete

       

      But, I do not get any callbacks to these functions.

       

      On further testing, I found that if the panel is moved (eg. dragging the panel using the mouse), the panel loads instantly. Is there a bug in InDesign CS6, beacuse the extension loads just fine in other versions? The one in Mac OS loads fine.

       

      Below is a screenshot of the mxml file.

       

      shot.jpg

       

      What is going wrong?

       

      Please help. Its urgent.