⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 checktree.mxml

📁 flex控件,三个状太的树状菜单,有源码
💻 MXML
字号:
<?xml version="1.0" encoding="iso-8859-1"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" creationComplete="init();" >

<mx:Script>
<![CDATA[

	import mx.collections.*;
	
	[Bindable]
	public var folderList:XMLList =
		<>
		<folder state="unchecked" label="Marketing Collateral" isBranch="true" >
	      <folder state="unchecked" isBranch="true" label="Media, PR, and Communications" >
		      <folder state="unchecked" isBranch="false" label="Article Reprint Disclaimers" />
		      <folder state="unchecked" isBranch="false" label="Articles Reprints" />
		      <folder state="unchecked" isBranch="false" label="Interviews and Transcripts" />
		      <folder state="unchecked" isBranch="false" label="Press Kits" />
		      <folder state="unchecked" isBranch="false" label="Press Releases" />
		      <folder state="unchecked" isBranch="false" label="Quick Hits" />
		      <folder state="unchecked" isBranch="false" label="Rep Talking Points" />
		      <folder state="unchecked" isBranch="false" label="Special Updates" />
		      <folder state="unchecked" isBranch="false" label="White Papers" />
	      </folder>
	      <folder  state="unchecked" isBranch="true" label="Forms and Applications" >
	          <folder state="unchecked" isBranch="false" label="Applications" />
	          <folder state="unchecked" isBranch="false" label="Forms" />
	      </folder>
		</folder>		
		</>;
	
	[Bindable]
	public var folderCollection:XMLListCollection;
	
	private function init() : void
	{
		folderCollection = new XMLListCollection(folderList);
		checkTree.dataProvider = folderCollection;
	}

]]>
</mx:Script>
	<mx:Tree 
			id="checkTree"
			itemRenderer="CheckTreeRenderer"
			labelField="@label"
 			width="100%" height="100%" >
 	</mx:Tree>
</mx:Application>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -