Hello, Dave Lowe here.

I've just updated my Flash Player from version 9,0,0,296 to
version 9,0,16,0 and PopUps appear to have stopped working
(no PopUp is displayed - see code at the end of this post).

This code works under 9,0,0,296.

Am I doing something wrong or is this a bug in 9,0,16,0?

Cheers, Dave.

_____________________________________________


PopUpTest.mxml
==============
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";>

<mx:Script>
        <![CDATA[
                
                import mx.managers.PopUpManager;
                import mx.containers.TitleWindow;


       private function showPopUp():void {
            var popUpWindow:TitleWindow = TitleWindow
(PopUpManager.createPopUp(this, ThePopUp, true));
            popUpWindow.title="PopUp Test";
        }
        
                
        ]]>
</mx:Script>

<mx:Button
        label="Show PopUp"
        click="showPopUp()"
/>
</mx:Application>

_____________________________________________

ThePopUp.mxml
=============

<?xml version="1.0" encoding="utf-8"?>
<mx:TitleWindow
        xmlns:mx="http://www.adobe.com/2006/mxml";
        creationComplete="doInit()"
        horizontalAlign="center"
        backgroundColor="blue"
        height="150"
        width="400">
        
    <mx:Script>
        <![CDATA[
            import mx.managers.PopUpManager;
            
            private function doInit():void {
                // Center the TitleWindow container over the control 
that created it.
                PopUpManager.centerPopUp(this);
            }
            
            private function removePopUp():void {
                // Remove pop up.
                PopUpManager.removePopUp(this);
            }
        ]]>
    </mx:Script>
    

        <mx:Label
                 text="PopUp Test"
                 textAlign="center"
                 color="white"
                 fontSize="20"
        />
         
        <mx:Spacer height="100%"/>
        
    <mx:Button
        label="Continue"
        click="removePopUp()"
    /> 

</mx:TitleWindow>






------------------------ Yahoo! Groups Sponsor --------------------~--> 
Check out the new improvements in Yahoo! Groups email.
http://us.click.yahoo.com/6pRQfA/fOaOAA/yQLSAA/nhFolB/TM
--------------------------------------------------------------------~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to