0

I've got an application that allows a panel to popup to allow the user to edit some properties.

How do I set the panel owner so that it is on top of all the other components on the page without actually disabling them like you do with an alert box?

Babyangle86
  • 220
  • 5
  • 21

1 Answers1

1

Use the PopUpManager to display something on top of everything else. I used a function like this to create the Popup before:

protected function createPopUp(className:Class):void{
  var win : IFlexDisplayObject = PopUpManager.createPopUp(Application.application as DisplayObject, className, false) as IFlexDisplayObject;
  PopUpManager.centerPopUp(win);
}

You can see it in action with the Flextras Calendar API Explorer. Click any button on the top bar.

JeffryHouser
  • 39,401
  • 4
  • 38
  • 59
  • Thanks! Couldnt actually find the code in th API source, but the demo told me it was what I wanted, and trial and error got me the solution. :-) – Babyangle86 Jun 05 '10 at 11:37
  • 1
    Glad it helped! For future readers, the code in the demo is in the com.flextras.apiExplorer.Features.mxml file. – JeffryHouser Jun 05 '10 at 12:57