摘要:
常常会用到带有3种状态CheckBox的树形组件,比如在权限管理中,或者是地区选择中等等,如下图:不多说费话了,直接进入主题,看看如何实现。其实在Flex中,只用自己实现一个TreeItemRenderer就可以了,代码如下:packagecom.robin{importflash.events.Event;importflash.geom.Rectangle;importmx.controls.CheckBox;importmx.controls.treeClasses.TreeItemRenderer;importmx.controls.treeClasses.TreeListData;i 阅读全文
摘要:
CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->1varflexXML:XML=23<RIA>45<FlashPlayer>67<Flash>FlashCS3</Flash>89<Flex>Flex3</Flex>1011</FlashPlayer>1213<Ajax>1415<GoogleAjax>GoogleAjax1.0& 阅读全文
摘要:
<?xmlversion="1.0"encoding="utf-8"?> <mx:Applicationxmlns:mx="http://www.adobe.com/2006/mxml"layout="absolute"creationComplete="init()"> <mx:Script> <!--[CDATA[ importmx.collections.XMLListCollection; importmx.collections.ArrayCo 阅读全文
摘要:
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"> <mx:Script> <![CDATA[ public function showInput():void { var myInt:int = parseInt(input.text); var myFloat:Number = parseFl 阅读全文
摘要:
首先重写TreeItemRenderer123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113package net.noday.demo { import flash.events.Even 阅读全文