I am developing a Flex extension for InDesign CS5 above. 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 tried finding out the problem by setting up alerts in the pre-initialize, initialize, creation complete and app complete events. But these events are not triggered.
I am in a fix. It doesn't feel right that the user should close the panel and re-open it, to get the extension to work.
Anything I can do to fix it?
Just noticed on repetitive testing that the problem seems to occur in ID CS6 on Windows 7, 8.. Any input?
I found a workaround for my problem. I just turned the visibility of my panel on and off and it worked.. Note that this inserted a crash for ID CC..
If anyone finds a more appropriate solution for this please let me know.