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:
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.
What is going wrong?
Please help. Its urgent.
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.