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

📄 applicationcontrolbarview.mxml

📁 Flex2StyleExplorer form Adobe
💻 MXML
字号:

<mx:HBox width="100%" height="100%" xmlns:mx="http://www.adobe.com/2006/mxml" name="Application Control Bar"
	xmlns:head="layout.*"  xmlns:components="components.*" >
	<!-- 
	//********************//
	//   STYLE CONTROLS   //
	//********************//
	-->
	
	<mx:VBox height="100%" width="370" styleName="glassPods"  >
		
		<head:GlassHeaders headerTitle="STYLE CONTROLS"/>
		<mx:Canvas width="100%" height="100%" horizontalScrollPolicy="off" verticalScrollBarStyleName="fseVerticalScrollBar">
	
		<mx:VBox x="10" width="340">			
			<mx:Form paddingLeft="41" width="100%" >
				
				<components:appControlBarBorderStylePicker id="myborderStyleapplicationControlBar" styleValue="default"
					dataChange="setStringValue('borderStyle', event.target.styleValue, 'applicationControlBar') " />
				
			</mx:Form>
			
			<mx:Box styleName="conditionalBox" width="100%" visible="{myborderStyleapplicationControlBar.styleValue != 'none'}"
				height="{myborderStyleapplicationControlBar.styleValue == 'default'?(80):myborderStyleapplicationControlBar.styleValue == 'solid'?(55):0}" >			
					
				<mx:Form styleName="conditionalForm" width="100%" paddingLeft="14">
		
					<components:textSliders 
						sliderLabel="Border Thickness" min="0" max="20" value="1" id="myborderThicknessapplicationControlBar" padRight="0"
						visible="{myborderStyleapplicationControlBar.styleValue == 'solid'}" height="{myborderStyleapplicationControlBar.styleValue == 'solid'?(22):0}"
						dataChange="setValue('borderThickness', event.target.value, 'number', 'applicationControlBar')"	/>	
				
					<components:colorPicker dataProvider="{swatches}" visible="{myborderStyleapplicationControlBar.styleValue == 'solid'}" height="{myborderStyleapplicationControlBar.styleValue == 'solid'?(22):0}" 
						pickerLabel="Border Color" selectedColor="0xB7BABC" id="myborderColorapplicationControlBar"
						dataChange="setValue('borderColor', event.target.selectedColor, 'color', 'applicationControlBar')"  />
				
					<components:doubleTextSliders padRight="0"
						sliderLabel="Highlight Alphas" min="0" max="1" styleValue="[.3, 0]" id="myhighlightAlphasapplicationControlBar" snapInt=".01" 
						visible="{myborderStyleapplicationControlBar.styleValue == 'default'}" height="{myborderStyleapplicationControlBar.styleValue == 'default'?(22):0}"
						dataChange="setArrayValue('highlightAlphas', event.target.styleValue, 'number', 'applicationControlBar')" />	
			
					<components:doubleTextSliders padRight="0"
						sliderLabel="Fill Alphas" min="0" max="1" styleValue="[0, 0]" id="myfillAlphasapplicationControlBar" snapInt=".01" 
						visible="{myborderStyleapplicationControlBar.styleValue == 'default'}" height="{myborderStyleapplicationControlBar.styleValue == 'default'?(22):0}"
						dataChange="setArrayValue('fillAlphas', event.target.styleValue, 'number', 'applicationControlBar')" />	
			
					<components:doubleColorPicker dataProvider="{swatches}" pickerLabel="Fill Colors" styleValue="[0xFFFFFF, 0xFFFFFF]" id="myfillColorsapplicationControlBar"
						visible="{myborderStyleapplicationControlBar.styleValue == 'default'}" height="{myborderStyleapplicationControlBar.styleValue == 'default'?(22):0}"
						dataChange="setArrayValue('fillColors', event.target.styleValue, 'color', 'applicationControlBar')" />
					
				</mx:Form>
			
			</mx:Box>
				
			<mx:Form paddingLeft="9" width="100%">								<components:colorPicker dataProvider="{swatches}" 
					pickerLabel="Background Color" selectedColor="0xFFFFFF" id="mybackgroundColorapplicationControlBar"
					dataChange="setValue('backgroundColor', event.target.selectedColor, 'color', 'applicationControlBar')"  />
				
				<components:textSliders 
					sliderLabel="Background Alpha" min="0" max="1" value="1" id="mybackgroundAlphaapplicationControlBar" snapInt=".01"
					dataChange="setValue('backgroundAlpha', event.target.value, 'number', 'applicationControlBar')"	/>	
				
				<components:textSliders 
					sliderLabel="Corner Radius" min="0" max="20" value="5" id="mycornerRadiusapplicationControlBar"
					dataChange="setValue('cornerRadius', event.target.value, 'number', 'applicationControlBar')"	/>	
				
				<components:trueFalsePicker pickerLabel="Drop Shadow" stateLabel="Enabled" id="mydropShadowEnabledapplicationControlBar"
					styleValue="true" dataChange="setBooleanValue('dropShadowEnabled', event.target.styleValue, 'applicationControlBar')" />
				
			</mx:Form>
				
			<mx:Box styleName="conditionalBox" width="100%" visible="{mydropShadowEnabledapplicationControlBar.styleValue == true}" >			
			
				<mx:Form styleName="conditionalForm" width="100%" >
			
					<components:textSliders 
						sliderLabel="Shadow Distance" min="0" max="20" value="5" id="myshadowDistanceapplicationControlBar" padRight="0"
						dataChange="setValue('shadowDistance', event.target.value, 'number', 'applicationControlBar')"	/>	
				
					<components:shadowDirectionPicker id="myshadowDirectionapplicationControlBar" 
						dataChange="setStringValue('shadowDirection', event.target.styleValue, 'applicationControlBar') " />
							
					<components:colorPicker dataProvider="{swatches}" 
						pickerLabel="Drop Shadow Color" selectedColor="0x000000" id="mydropShadowColorapplicationControlBar"
						dataChange="setValue('dropShadowColor', event.target.selectedColor, 'color', 'applicationControlBar')"  />
					
				</mx:Form>
			
			</mx:Box>
			
			<mx:Box height="20" />
		
			<mx:Spacer height="100%" />
			
		
		
		</mx:VBox>
		</mx:Canvas>
		<mx:Box width="100%" paddingRight="5" paddingBottom="5" horizontalAlign="right">
			<mx:LinkButton label="Restore Defaults" 
				click="restoreItemDefaults('applicationControlBar')" styleName="undoLink" />
		</mx:Box>
	</mx:VBox>
		
	<!-- 
	//********************//
	//   SANDBOX          //
	//********************//
	-->
	<mx:Canvas height="100%" width="100%" styleName="glassPods" >
		<head:GlassHeaders headerTitle="SANDBOX"/>
		<mx:ApplicationControlBar id="myapplicationControlBar"
			left="10" top="30" right="10"  height="35"/>
</mx:Canvas>
	
	<!-- 
	//********************//
	//   CSS VIEW         //
	//********************//
	-->
	<mx:Canvas height="100%" width="250" styleName="glassPods" >
		<head:GlassHeaders headerTitle="CSS"/>
		<mx:TextArea text="{myCSS}" left="10" right="10" top="30" bottom="10" styleName="cssTextArea" verticalScrollBarStyleName="fseVerticalScrollBar" />
	</mx:Canvas>
	<mx:Script source="../as/applicationControlBar.as" />
	


</mx:HBox>




⌨️ 快捷键说明

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