You need to use CSXSInterface to open windows from within extensions. You cannot do it directly.
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...