Controlling depth of Spark TitleWindows
Hi,
I'm working on an application where multiple titlewindows (Spark) are created. I'm using something like this in commands to create each popup:
var window:PicturesWindow = new PicturesWindow();
PopUpManager.addPopUp( window, contextView, false );
window.width = 400;
window.height = 200;
PopUpManager.centerPopUp( window );
I want to add the functionality to bring to front the
titlewindow that gains focus.
I tried to keep track of the depth in a model. and do something lie
this:
window.depth = model.getNextWindowDepth();
each time a use clicks on a window, but didn't work. I think it's because the parent of the windows is "contextView".
Any idas? thanks in advance.
Comments are currently closed for this discussion. You can start a new one.
2 Posted by Michal Wroblewski on 10 Sep, 2011 06:21 PM
Try using PopUpManager.bringToFront method on InteractiveObject.focusIn event or click event as you already did.
3 Posted by oscar on 10 Sep, 2011 07:02 PM
Totally right. thanks a lot.
oscar closed this discussion on 10 Sep, 2011 07:02 PM.