功能测试

flex as mxml 之间引用关系

发布-liushuchao | 查看- | 发表时间-2009-7-30

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:panels2="demo.flexinaction.samples.*" layout="absolute" initialize="doInit();">
<mx:Script>
   <![CDATA[
   import demo.flexinaction.samples.*;
    private function doInit():void{
    var panelC:CustomPanelAS=new CustomPanelAS();
    panelC.title="hello";
        hbox.addChild(panelC);
        var panelD:CustomPanelMXML=new CustomPanelMXML();
        panelD.title="zhuwenqi";
        hbox.addChild(panelD);
       panelA.buttonID.label="sssssssssss";
     
    }
   
   ]]>
</mx:Script>
<mx:VBox id="hbox" width="407" height="414">
    <panels2:CustomPanelAS id="panelB" title="CustomPanelrenderedbyActionScript"/>
<panels2:CustomPanelMXML id="panelA" title="CustomPanelrenderedbyActionScript"/>
</mx:VBox>
</mx:Application>

或许你还对下面的文章感兴趣

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

培训推荐 北京flex as3培训
最新文章
123
456
最近评论
访客留言
赞助商链接FLEX基础 |FLEX培训|Entries RSSCopyright flex培训 www.flexjs.cn

京公网安备110114000966号 京ICP备11015828号-1 | DESIGN BY Seanloo.cn