Possible, but there is no property or style you can set to make it
happen.
 
You'll have to change your app to not use Alert and instead have a state
that displays a TitleWindow that looks like alert over the app and slip
a "shield' underneath it to block interaction.  You can steal some of
the code from Alert and PopUpManager if you want.
 
I predict it will take you at least four different queries to FlexCoders
to get it done.
 
-Alex

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Alejandro Narancio
Sent: Monday, April 02, 2007 11:51 AM
To: [email protected]
Subject: [flexcoders] Child window



Hi guys,

I want to know if it is possible to have child windows in flex?

I will try to explain my problem, I have a simple flex app (only a
button with an alert message), this is the code:

<?xml version=" 1.0"?>
<!-- Simple example to demonstrate the Alert control. -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml
<http://www.adobe.com/2006/mxml> ">

    <mx:Script> 
        <![CDATA[
            import mx.controls.Alert;
        ]]>
    </mx:Script>

    <mx:Panel title="Alert Control Example" width="75%"
horizontalAlign="center" paddingTop="10"> 
      <mx:Button label="Click Me" click="Alert.show('Hello World!',
'Message');"/>
    </mx:Panel>

</mx:Application>


Now I want to load the SWF generated from the above MXML, so I have this
code: 

<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml
<http://www.adobe.com/2006/mxml> " xmlns:explorer="*" 
    width="100%" height="100%" pageTitle="Test" initialize="load();"> 
    
    <mx:Script>
            <![CDATA[
            
        public function load():void {
            myLoader.source = "SimpleAlert.swf";
        }
            
            ]]> 
    </mx:Script>
    
    
    <mx:HDividedBox width="100%" height="100%">
        <mx:Panel title="Test Panel">
            <mx:SWFLoader id="myLoader" width="100%" height="100%" /> 
        </mx:Panel>
    </mx:HDividedBox>
    
</mx:Application>


My problem is that the SimpleAlert.swf it is loaded inside the Panel...
but for example when the user press the button the alert disable the
actions in all the screen, it is posible to load the SWF inside a child
window? because when the user press the button, I don't want to disable
the actions in all the application I only want to disable the actions in
the child window (in this case the Panel), anybody know if this is
possible? 

Thanks in advance,
Alex


 

Reply via email to