flex4,flex skin

<?xml version="1.0" encoding="utf-8"?>
<s:Skin xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx">
<!-- host component
HostComponent元数据标签,表明正在创建一个皮肤。Application说明是为整个应用容器创建的皮肤
-->
<fx:Metadata>
[HostComponent("spark.components.Application")]
</fx:Metadata>
<!-- states
组件的状态,一般是disabled和normal
其它组件,如按钮控件,还有up、down、over状态
-->
<s:states>
<s:State name="inactiveWithControlBar" />
<s:State name="inactive" />
<s:State name="disabled" />
<s:State name="normal" />
</s:states>
<!-- Rect
代表Application标签的背景,同时定义了一个矩形的形状
horizontalCenter属性是引导Flash Playerd应用程序的中心显示这个背景图像的一个约束条件;
也就是在距离应用水平不平中心0像素的位置显示
height="100%"保证背景的高度总是和应用窗口的高度一致
fill他stroke属性用来设置这个矩形的填充颜色和边界线条颜色
radiusX="10"使Rect为圆角
-->
<s:Rect horizontalCenter="0"
width="400" height="100%" radiusX="10">
<s:fill>
<s:SolidColor color="#FFFBCF"/>
</s:fill>
<s:stroke>
<s:SolidColorStroke color="#AAAAAA"/>
</s:stroke>
</s:Rect>
<!-- Group
Group容器声明了主应用的子内容,它竖立地显示在从顶部算起20个像素的位置,
并保持在浏览器中水平居中
-->
<s:Group id="contentGroup"
top="20" horizontalCenter="0">
<s:layout>
<s:VerticalLayout/>
</s:layout>
</s:Group>
<!-- SkinParts
name=closeButton, type=spark.components.Button, required=false
name=moveArea, type=flash.display.InteractiveObject, required=false
name=titleDisplay, type=spark.components.supportClasses.TextBase, required=false
name=controlBarGroup, type=spark.components.Group, required=false
name=contentGroup, type=spark.components.Group, required=false
-->
</s:Skin>
Tags:  flexsim flexapi flexnet 福特flex flex4

延伸阅读

最新评论

发表评论