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
should do it, but I always get back
1050 being they resolutuon of my screen,
okay, this seems to be a bug (in the Premiere SDK?),
as the exact same extension hosted by Illutrator shows the correct position when using
What I'm trying to do is position a new window (type tooltip) relative to certain items in my main panel,
therefore I wanted to know the x and y position of that panel. Is there any other way to do this?
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.