hi,
how go i get the position of my extension panel relative to the screen?
I'm using a CSXSWindowedApplication for a Premiere extension and thought
that
stage.nativeWindow.x, stage.nativeWindow.y
or
nativeWindow.x, nativeWindow.y
should do it, but I always get back
0, 1050
1050 being they resolutuon of my screen,
thanks!
Jeff.
The function you're looking for is nativeWindow.globalToScreen(), see: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/fla sh/display/NativeWindow.html#globalToScreen()
Again, this function is dependent on the application's implementation, so like what you've already seen with x/y position, its support will vary between applications.
Thanks, I should have mentioned that I had tried that too. Same result when using these:
nativeWindow.globalToScreen(new Point(x,y)) );
nativeWindow.globalToScreen(new Point(mouseX,mouseY)) );
stage.nativeWindow.globalToScreen(new Point(tabNavigator.x,tabNavigator.y)) );
Again, in Illustrator the above code works fine, in Premiere it always returns (0, screen y resolution).
Any other ideas are very welcome, positioning a window relative to another one should be a pretty basic part of the api.
North America
Europe, Middle East and Africa
Asia Pacific