xml - Flex: How do you prevent the user from interacting with the area behind a pop-up? -


i want prevent user clicking buttons behind pop-up. how this?

this code far:

<?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 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> 

when create popup, make sure modal:

it property on both createpopup() , addpopup() methods of popupmanager


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -