Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

flex tree ×Ô¶¯ÏÔʾºáÏò¹ö¶¯Ìõ

mxml
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:cmp="com.render.*"
    height="100%" width="100%" paddingTop="0" paddingBottom="0" paddingLeft="0" paddingRight="0">
    <cmp:AutoSizeTree
            id="checkTree"
            itemRenderer="com.render.CheckTreeRenderer"
            change="updataDataGrid()"
            labelField="@label"
             width="100%" height="100%" 
             horizontalScrollPolicy="auto" >
     </cmp:AutoSizeTree>
</mx:Application>
actionscript
package com.render
{
    import flash.events.Event;
   
    import mx.controls.Alert;
    import mx.controls.Tree;
    import mx.core.ScrollPolicy;
    import mx.core.mx_internal;
    public class AutoSizeTree extends Tree
    {
        public function AutoSizeTree()
        {
            super();
            horizontalScrollPolicy = ScrollPolicy.AUTO;
        }
    
        override public function get maxHorizontalScrollPosition():Number
        {
             if (isNaN(mx_internal::_maxHorizontalScrollPo


Ïà¹ØÎĵµ£º

FlexÍÏק CanvasÈÝÆ÷ÀïÍ϶¯Box


2009-02-18
ËõÂÔÏÔʾ
FlexÍÏק-CanvasÈÝÆ÷ÀïÍ϶¯Box
ÎÄÕ·ÖÀà:WebÇ°¶Ë¹Ø¼ü×Ö: flex, flexÍÏק, canvas, box
<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Script>
<![CDATA[
import mx.core. ......

FlexÍÏק ListÄÚ²¿ÍÏק

FlexÍÏק-ListÄÚ²¿ÍÏק
¹Ø¼ü×Ö: flex, flexÍÏק, list
<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="creationHandler();">
<mx:Script>
<![CDATA[
import mx.utils.ObjectUtil;
i ......

Flex ÖеÄStates(״̬)

Flex ÖеÄStates(״̬)
¹Ø¼ü×Ö: flex, states
States ÊÇÒ»Ì×ÓÃÓÚ´´½¨×´Ì¬×é¼þµÄÇ¿´ó¹¤¾ß£¬Ò²¾ÍÊÇ˵×é¼þ¿ÉÒÔÓжà¸öÊÓͼ¡£
ʹÓÃStates À´Çл»ÊÓͼ¿ÉÒÔ½ÚÔ¼×ÊÔ´
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:states> ......

flex ºÍjavascript»¥Ïàµ÷ÓÃ

flex ºÍjavascript»¥Ïàµ÷Óá£
Ò»¡¢flex µ÷ÓÃjavascript
  Ö»ÐèʹÓþ²Ì¬µÄExternalInterface.call¾Í¿ÉÒÔÁË¡£
  call ·½·¨ÖÁÉÙÒªÇóÒ»¸ö²ÎÊý£¬¾ÍËùµ÷ÓöÊýµÄÃû³Æ¡£
  Ò²¿ÉÒÔ´«µÝ²ÎÊý¡£
  È磺
    ExternalInterface.call("alert","hello");
   "hello"¾ÍÊÇ×÷Ϊalertµ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ