Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/actionscript-3/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Actionscript 3 在FLEX 3.0中创建弹出窗口_Actionscript 3_Apache Flex_Actionscript_Flex3 - Fatal编程技术网

Actionscript 3 在FLEX 3.0中创建弹出窗口

Actionscript 3 在FLEX 3.0中创建弹出窗口,actionscript-3,apache-flex,actionscript,flex3,Actionscript 3,Apache Flex,Actionscript,Flex3,我已经创建了一个弹出窗口,它是自定义组件扩展画布,我希望画布的外观类似于图中所示。有没有办法创建一个类似的弹出窗口 在这里,我给你的样本代码,我已经做到现在 <?xml version="1.0" encoding="utf-8"?> <mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" width="550" height="350" backgroundAlpha="0"> <mx:Script>

我已经创建了一个弹出窗口,它是自定义组件扩展画布,我希望画布的外观类似于图中所示。有没有办法创建一个类似的弹出窗口

在这里,我给你的样本代码,我已经做到现在

<?xml version="1.0" encoding="utf-8"?>
<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" width="550" height="350" backgroundAlpha="0">
<mx:Script>
    <![CDATA[
        import mx.managers.PopUpManager;

        public function btnImage_click():void
        {
            PopUpManager.removePopUp(this);
        }

    ]]>
</mx:Script>
<mx:Image source="Images/close.png" top="4" left="500" useHandCursor="true" buttonMode="true" click="{btnImage_click();}" />
<mx:Fade id="fadeIn" duration="700" alphaFrom="0.0" alphaTo="1.0"/>
<mx:VBox height="100%" width="100%" horizontalAlign="center" verticalAlign="middle">
    <mx:Canvas height="85%" width="90%" backgroundColor="#ffffff" backgroundAlpha="1" >
        <mx:VBox height="100%" width="100%">
            <mx:HBox height="70%" width="100%" horizontalAlign="center" verticalAlign="middle">
                <mx:Image id="btnPrevious" source="Images/previous.png" 
                    click="{vsSubImages.selectedIndex--}" enabled="{vsSubImages.selectedIndex!=0}"/>
                <mx:ViewStack height="100%" width="90%" creationPolicy="all" id="vsSubImages">
                    <mx:VBox height="100%" width="100%" horizontalAlign="center" verticalAlign="middle" showEffect="{fadeIn}">
                        <mx:Image id="img1" maintainAspectRatio="true" height="100%" width="100%" horizontalAlign="center" verticalAlign="middle" />    
                    </mx:VBox>                  
                    <mx:VBox height="100%" width="100%" horizontalAlign="center" verticalAlign="middle" showEffect="{fadeIn}">
                        <mx:Image id="img2" maintainAspectRatio="true" height="100%" width="100%" horizontalAlign="center" verticalAlign="middle" />    
                    </mx:VBox>                  
                    <mx:VBox height="100%" width="100%" horizontalAlign="center" verticalAlign="middle" showEffect="{fadeIn}">
                        <mx:Image id="img3" maintainAspectRatio="true" height="100%" width="100%" horizontalAlign="center" verticalAlign="middle" />    
                    </mx:VBox>                  
                </mx:ViewStack>
                <mx:Image id="btnNext" source="Images/next.png" 
                    click="{vsSubImages.selectedIndex++}" enabled="{vsSubImages.selectedIndex!=2}" />
            </mx:HBox>
            <mx:Box height="30%" width="100%" horizontalAlign="right" verticalAlign="top">
                <mx:Form height="100%" width="100%">
                    <mx:FormItem label="Project Name : " >
                        <mx:Label id="lblName" />
                    </mx:FormItem>
                    <mx:FormItem label="Description : " >
                        <mx:Label id="lblDescription" />
                    </mx:FormItem>
                    <mx:FormItem label="Technology Name : " >
                        <mx:Label id="lblTechnology" />
                    </mx:FormItem>
                </mx:Form>
            </mx:Box>
        </mx:VBox>
    </mx:Canvas>
</mx:VBox>
</mx:Canvas>

主要的想法是在画布上显示关闭按钮,现在我在画布后面看到了。 请帮帮我。

标记放在最后一个
标记之前的代码底部。因为canvas的行为类似于last,它位于z索引的最顶端