|
Hi, You could use the
following approach from code inside of your panel. The code is not fully tested. Harry import
mx.core.Application; import
flash.display.DisplayObjectContainer; import
mx.core.UIComponent; private var normalParent:DisplayObjectContainer
= null; private var
normalChildIndex:int; private function
makeModal():void { if(
parent && !normalParent ) { normalParent
= parent; normalChildIndex
= parent.getChildIndex(this); parent.removeChild(this); for(
var i:int = 0; Application.application.numChildren; i++) { var obj:UIComponent = Application.application.getChildAt(i)
as UIComponent; if( obj ) obj.enabled = false; } //
Set position of the panel and remember old position Application.application.addChild(this); } } private function makeNormal():void
{ if(
normalParent ) { if(
parent ) parent.removeChild(this); for(
var i:int = 0; Application.application.numChildren; i++) { var obj:UIComponent = Application.application.getChildAt(i)
as UIComponent; if( obj ) obj.enabled = true; } normalParent.addChildAt(this, normalChildIndex); // Set old position of the panel normalParent = null; normalChildIndex = 0; } } Von:
[email protected] [mailto:[EMAIL PROTECTED] Im Auftrag von fzitters Hi, |

