Xml Flex:如何防止用户与弹出窗口后面的区域进行交互?

Xml Flex:如何防止用户与弹出窗口后面的区域进行交互?,xml,flash,apache-flex,mobile,popup,Xml,Flash,Apache Flex,Mobile,Popup,我想防止用户单击弹出窗口后面的按钮。我该怎么做 这是我目前的代码: <?xml version="1.0" encoding="utf-8"?> <s:SkinnablePopUpContainer xmlns:fx="http://ns.adobe.com/mxml/2009" backgroundAlpha="0" contentBackgroundAlpha="0" width="100%" height="100%" xmlns:s="library://ns.

我想防止用户单击弹出窗口后面的按钮。我该怎么做

这是我目前的代码:

<?xml version="1.0" encoding="utf-8"?>
<s:SkinnablePopUpContainer xmlns:fx="http://ns.adobe.com/mxml/2009" backgroundAlpha="0"     contentBackgroundAlpha="0" width="100%" height="100%" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:scripts="scripts.*">
<fx:Script>
    <![CDATA[
        protected function close_clickHandler(event:MouseEvent):void
        {
            this.close();
        }

    ]]>
</fx:Script>
<fx:Declarations>
    <!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>
<s:Panel title="Optional Notes for Report" backgroundAlpha=".6" backgroundColor="#120242" width="100%" height="100%">
    <s:layout>
        <s:VerticalLayout horizontalAlign="center" verticalAlign="top"/>
    </s:layout>
    <s:HGroup height="100" width="100%">
    <s:TextArea id="notesTextArea" width="100%" height="100%" fontSize="14" styleName="labelWhite2" opaqueBackground="#200772" />
    </s:HGroup>
    <s:HGroup horizontalAlign="center">
        <s:Image click="close_clickHandler(event)" fillMode="scale" scaleMode="letterbox" width="30%" 
                 smooth="false" smoothingQuality="high" source="@Embed('/assets/images/ok_button.png')"/>
    </s:HGroup>
</s:Panel>
</s:SkinnablePopUpContainer>

创建弹出窗口时,请确保它是模态的:


它是

的和方法上的属性。您可以在调用
open()
方法时设置模态属性

var popup:MyPopUp = new MyPopUp();
popup.open(this,true);  

请您解释一下,使用这些方法将如何防止用户与它后面的区域进行交互?我有点困惑。在创建和显示弹出窗口时,将modal属性设置为true。也许您应该提供代码来显示如何显示弹出窗口。