• Flex 在 ViewStack中使用 Repeater实现动态加载系统的不同模块


    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
    layout
    ="absolute" backgroundGradientColors="[#ffffff, #ffffff]"
    width
    ="709" height="488">
            
    <mx:ToggleButtonBar x="10" y="10" width="433" height="31" dataProvider="viewstack1">
            
    </mx:ToggleButtonBar>
            
    <mx:ArrayCollection id="Pages">
                    
    <mx:Object Label="Action1" Data="1.swf"/>
                    
    <mx:Object Label="Action2" Data="2.swf"/>
                    
    <mx:Object Label="Action3" Data="3.swf"/>
                    
    <mx:Object Label="Action4" Data="4.swf"/>
            
    </mx:ArrayCollection>

            
    <mx:ViewStack x="10" y="49" id="viewstack1" width="433" height="232">
                    
    <mx:Repeater id="rp" dataProvider="{Pages}">
                            
    <mx:VBox label="{rp.currentItem.Label}" width="100%" height="100%" >
                                    
    <mx:SWFLoader source="{rp.currentItem.Data}" x="0" y="0" width="404" height="159" autoLoad="true"/>
                            
    </mx:VBox>
                    
    </mx:Repeater>
            
    </mx:ViewStack>
    </mx:Application> 
  • 相关阅读:
    数据库的字符集和校对集
    登录和退出Mysql
    启动mysql服务器
    Numpy
    如何用navicat导入数据?
    MySQL不能连接本地数据库10061
    使用navicat连接Mysql8.0出现2059错误
    leetcode笔记11 First Unique Character in a String
    leetcode笔记10 Intersection of Two Arrays(求交集)
    leetcode笔记9 Move Zeroes
  • 原文地址:https://www.cnblogs.com/mobile/p/475731.html
Copyright © 2020-2023  润新知