teammgr.mxml

来自「QS我也没用过」· MXML 代码 · 共 78 行

MXML
78
字号
<?xml version="1.0" encoding="utf-8"?>
<Application xmlns="http://www.adobe.com/2006/mxml" verticalGap="0" xmlns:qs="qs.controls.*" horizontalAlign="left" paddingLeft="0" paddingTop="0" paddingBottom="0" paddingRight="0" layout="vertical" 
	backgroundColor="#565656"  initialize="initApp()" 
viewSourceURL="TeamMgrViewSource/index.html" xmlns:f="flash.filters.*" >	
	
	<Script>
		<![CDATA[


			private function initApp():void
			{
			}
			
			private function makeName(item:*):String
			{
				return item.@lastName + ", " + item.@firstName;
			}
			
		]]>
		
	</Script>
	<XML id="playerList" source="data/players.xml" />
	
	<Style>
		
		.insetBox {
			paddingBottom: 30;
			paddingLeft: 30;
			paddingRight: 30;
			paddingTop: 30;	
		}
		
		Text {
			color: #FFFFFF;
		}
		
		VRule, HRule {
			strokeWidth: 1;
			strokeColor: #FFFFFF;	
		}
	</Style>


		<Text width="100%" text="Screaming FireBalls Dodgeball Game Planner" fontSize="30" color="#FFFFAA" fontWeight="bold" />
		<HRule width="100%" />
		<HBox width="100%" height="100%" horizontalGap="0">
			
			<VBox height="100%" width="250"  horizontalAlign="right" styleName="insetBox">
				<Text condenseWhite="true" width="100%">
					<htmlText><![CDATA[
					<P>This page demonstrates using The DragTile component and the DragManager to drag data items between a list
					and a DragTile component. Drag player names from the list on the left into the rosters on the right.
					Notice how different components can display the same data with different forms. You can also drag within a roster
					to rearrange the order, and between rosters as well.</P><P/>
					]]></htmlText>
				</Text>
				<Spacer height="30" />
				<Label fontSize="24" text="Team Roster:" color="#FFFFAA" />
				<List color="#000000" width="100%" height="100%" dataProvider="{playerList.player}" labelFunction="makeName" dragEnabled="true"/> 
							
			</VBox>
			
			<VRule height="100%" />
			
			<VBox backgroundColor="#343434" width="100%" horizontalGap="20" height="100%" styleName="insetBox" clipContent="true" >
				
				<VBox width="100%" horizontalGap="0" height="100%" borderColor="#FFFFFF" >
				
					<Label fontSize="24" color="#FFFFAA" fontWeight="bold" text="First String:" />
					<qs:DragTile id="firstString" width="100%" height="100%" itemRenderer="Player" />
					<Label fontSize="24" color="#FFFFAA" fontWeight="bold" text="Second String:" />
					<qs:DragTile id="secondString" width="100%" height="100%" itemRenderer="Player" />
				</VBox>
			</VBox>
		</HBox>
										
</Application>

⌨️ 快捷键说明

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