I'm simply trying to open a new window in a CS extension but when testing it inside Premiere as well as Illustrator it gives me the error
Error #3200: Cannot perform operation on closed window.
When I test it as a standalone desktop app, it works fine.
I tried it with an mxml Window component, and also with code, like:
var newWindow:Window = new Window()
newWindow.title = "New Window";
newWindow.width = 200;
newWindow.height = 200;
I'm using a WindowedApplication.
Flash Builder 4.5 (not using Extension Builder)
thanks Harb, I'm looking CSXSInterface now. But I don't see anything in the api that points at openening a new window. Do you mean
that I should build another extension and load it using requestOpenExtension or should i communicate with some script uing evalScript?
So what I mean is just open a new AIR window on top of my air cs extension. And display an mxml component in that new window, filled with data that is stored in my extension.
An example, some code or any further directions would be appreciated,
Sorry. I answered from memory. I remembered a little wrong. You basically had it, but you need to set the type.
Here's how you do it:
win:MyCustomWindowType = new MyCustomWindowType;
win.showStatusBar = false;
win.type = CSXSWindowType.MODAL_DIALOG;
You probably want to create a component based on Window.
Also, You should be using CSXSWindowedApplication. It could be that it's required for this...
Europe, Middle East and Africa