topical media & game development
lib-flex-style-explorer-views-vDividedBoxView.mx
lib-flex-style-explorer-views-vDividedBoxView.mx
(swf
)
[ flash
]
flex
<?xml version="1.0" encoding="utf-8"?>
<mx:HBox width="100%" height="100%" xmlns:mx="http://www.adobe.com/2006/mxml" name="H Divided Box"
xmlns:head="*" xmlns:components="*" >
<!--
//********************//
// STYLE CONTROLS //
//********************//
-->
<mx:VBox height="100%" width="380" styleName="glassPods" >
<head:lib_flex_style_explorer_layout_GlassHeaders headerTitle="STYLE CONTROLS"/>
<mx:Canvas width="100%" height="100%" horizontalScrollPolicy="off" verticalScrollBarStyleName="fseVerticalScrollBar">
<mx:VBox x="10" width="350">
<mx:Form width="100%" >
<components:lib_flex_style_explorer_components_textSliders
sliderLabel="Divider Affordance" min="1" max="30" value="6" id="mydividerAffordancevDividedBox"
dataChange="setValue('dividerAffordance', event.target.value, 'number', 'vDividedBox')" />
<components:lib_flex_style_explorer_components_textSliders
sliderLabel="Divider Alpha" min="0" max="1" value=".75" id="mydividerAlphavDividedBox" snapInt=".01"
dataChange="setValue('dividerAlpha', event.target.value, 'number', 'vDividedBox')" />
<components:lib_flex_style_explorer_components_textSliders
sliderLabel="Divider Thickness" min="1" max="30" value="3" id="mydividerThicknessvDividedBox"
dataChange="setValue('dividerThickness', event.target.value, 'number', 'vDividedBox')" />
<components:lib_flex_style_explorer_components_colorPicker dataProvider="{swatches}"
pickerLabel="Divider Color" selectedColor="0x6f7777" id="mydividerColorhRule"
dataChange="setValue('dividerColor', event.target.selectedColor, 'color', 'vDividedBox')" />
</mx:Form>
<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('vDividedBox')" styleName="undoLink" />
</mx:Box>
</mx:VBox>
<!--
//********************//
// SANDBOX //
//********************//
-->
<mx:Canvas height="100%" width="100%" styleName="glassPods" >
<head:lib_flex_style_explorer_layout_GlassHeaders headerTitle="SANDBOX" />
<mx:VDividedBox id="myvDividedBox" left="10" top="30" right="10" height="200">
<mx:Box width="100%" height="50%" styleName="cssTextArea" />
<mx:Box width="100%" height="50%" styleName="cssTextArea" />
</mx:VDividedBox>
</mx:Canvas>
<!--
//********************//
// CSS VIEW //
//********************//
-->
<mx:Canvas height="100%" width="250" styleName="glassPods" horizontalScrollBarStyleName="fseVerticalScrollBar" >
<head:lib_flex_style_explorer_layout_GlassHeaders headerTitle="CSS"/>
<mx:TextArea text="{myCSS}" left="10" right="10" top="30" bottom="10" styleName="cssTextArea" />
</mx:Canvas>
<mx:Script source="lib-flex-style-explorer-as-vDividedBox.ax" />
</mx:HBox>
(C) Æliens
18/6/2009
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.