位置:- 正文

Flex 4 的十大变化(flex:4)

编辑:rootadmin
作者 Jon Rose 译者 张龙 发布于 2009年7月26日 下午10时31分 1. 集成Adobe Catalyst Flex 4的一个主要特性就是提供了对Adobe Cataly...

推荐整理分享Flex 4 的十大变化(flex:4),希望有所帮助,仅作参考,欢迎阅读内容。

文章相关热门搜索词:flex+,flex:4,flex guide,flex guide,flex:4,flex4me,flex4k,flex4m,内容如对您有帮助,希望把文章链接给更多的朋友!

<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/halo"><s:Button label="My Flex 4 Button" /><mx:Button label="My Flex 3 Button" /><!-- Given the states A,B,C --> <m:states> <m:State name="A"/> <m:State name="B"/> <m:State name="C"/> </m:states>

<!-- This button will appear in only states A and B --> <Button label="Click Me" includeIn="A, B"/>

<!-- This button will appear in states A and B --> <Button label="Button C" excludeFrom="C"/><?xml version="1.0" encoding="utf-8"?> <s:SparkSkin xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" alpha.disabled="0.5">

<fx:Metadata> <![CDATA[ /** * @copy spark.skins.default.ApplicationSkin#hostComponent */ [HostComponent("spark.components.Panel")] ]]> </fx:Metadata>

<fx:Script> /* Define the skin elements that should not be colorized. For panel, border and title backround are skinned, but the content area and title text are not. */ static private const exclusions:Array = ["background", "titleField", "contentGroup"];

Flex 4 的十大变化(flex:4)

/** * @copy spark.skins.SparkSkin#colorizeExclusions */ override public function get colorizeExclusions():Array {return exclusions;}

/* Define the content fill items that should be colored by the "contentBackgroundColor" style. */ static private const contentFill:Array = ["bgFill"];

/** * @inheritDoc */ override public function get contentItems():Array {return contentFill}; </fx:Script>

<s:states> <s:State name="normal" /> <s:State name="disabled" /> </s:states>

. . . . .

<s:Rect left="1" right="1" top="31" height="1"> <s:fill> <s:SolidColor /> </s:fill> </s:Rect>

<!-- layer 5: text --> <!-- Defines the appearance of the PanelSkin class's title bar. --> <s:SimpleText id="titleField" lineBreak="explicit" left="10" right="4" top="2" height="30" verticalAlign="middle" fontWeight="bold"> </s:SimpleText>

<s:Group id="contentGroup" left="1" right="1" top="32" bottom="1"> </s:Group>

</s:SparkSkin><s:Group width="400" height="400"> <s:layout> <s:HorizontalLayout paddingLeft="5" paddingTop="5" /> </s:layout>

<s:Button label="Button 1" /> <s:Button label="Button 2" /> </s:Group>

本文链接地址:https://www.jiuchutong.com/zhishi/304604.html 转载请保留说明!
下一篇链接:https://www.jiuchutong.com/zhishi/304605.html
免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

鄂ICP备2023003026号

友情链接: 武汉网站建设 电脑维修 湖南楚通运网络