易截截图软件、单文件、免安装、纯绿色、仅160KB

flex tree默认展开第一个节点

<?xml version="1.0" encoding="utf-8"?>
<mx:Application fontSize="12" xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="init()">
 <mx:Script>
  <![CDATA[
   public var treeXml: XML = <nodes name="所有">
          <node name="test01" code ="01" >
           <node name="test0101" code ="0101" />
           <node name="test0102" code ="0102" />
           <node name="test0103" code ="0103" />
          </node> 
          <node name="test02" code ="02" />
          <node name="test03" code ="03" />
          <node name="test04" code ="04" >
           <node name="test0401" code ="0401" />
           <node name="test0402" code ="0402" />
           <node name="test0403" code ="0403" />
          </node>          
          <node name="test05" code ="05" />
          </nodes>;
   private function init():void
   {
    tree.dataProvider = treeXml;
//默认展开第一个节点
    tree.openItems = treeXml;
   }
   
  ]]


相关文档:

flex时序图示例

<?xml version="1.0" encoding="utf-8"?>
<!-- Simple example to demonstrate the DateTimeAxis class. -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Script>

import mx.collections.ArrayCollection;
......

flex xml和arraycollection相互转换

1、arraycollection转化为xml,代码如下:
    
    //动态生成树形结构
public static function flatArrayToXML(arr:Object,rootname:String=null,nodename:String=null, outputString:Boolean=false):Object{
if (arr is Array){

......

FLEX实践—动态切换应用皮肤

     在同一个Application中动态切换主题,这里采用的是动态引用不同的CSS文件。
      具体步骤如下:
     1)创建CSS文件
      skyTheme.css
      /* CSS file */
.backgroudSkin
{
&nbs ......

flex trace无法使用


解决使用Flex  无法使用trace的问题
出现了使用Debug功能出现了无法使用trace的问题
这个问题说明你的Flash Player 10 不是调试版本
提供一下Adobe Flas Player 10调试版本的地址....
希望能对大家有帮助
http://download.macromedia.com/pub/flashplayer/updaters/10/flashplayer_10_ax_debug.exe
......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号