<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>中文Flex例子 &#187; Button</title>
	<atom:link href="http://blog.minidx.com/category/flex/button-flex/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.minidx.com</link>
	<description>中文Adobe Flex例子,Flex实例教程,RIA资源,全文检索技术,算法和数据结构</description>
	<lastBuildDate>Thu, 31 Mar 2011 03:22:33 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Flex Gumbo中如何利用＜Style/＞自定义Button和TextInput的例子</title>
		<link>http://blog.minidx.com/2009/08/04/2807.html</link>
		<comments>http://blog.minidx.com/2009/08/04/2807.html#comments</comments>
		<pubDate>Tue, 04 Aug 2009 14:34:25 +0000</pubDate>
		<dc:creator>Minidxer</dc:creator>
				<category><![CDATA[Button]]></category>
		<category><![CDATA[Gumbo]]></category>
		<category><![CDATA[TextInput]]></category>

		<guid isPermaLink="false">http://blog.minidx.com/?p=2807</guid>
		<description><![CDATA[接下来的例子演示了Flex Gumbo中如何利用＜Style/＞自定义Button和TextInput。编译本例需要5873 (4.0.0.5873) 或者更新的才可以。 
让我们先来看一下Demo（可以点击这里察看源代码）：









下面是完整代码(或点击这里察看)：
下面是main.mxml：
&#60;?xml version=&#34;1.0&#34; encoding=&#34;utf-8&#34;?&#62;
&#60;s:Application&#160;name=&#34;FxGumbo_test&#34;
&#160; &#160; &#160; &#160; xmlns:fx=&#34;http://ns.adobe.com/mxml/2009&#34;
&#160; &#160; &#160; &#160; xmlns:s=&#34;library://ns.adobe.com/flex/spark&#34;
&#160; &#160; &#160; &#160; xmlns:mx=&#34;library://ns.adobe.com/flex/halo&#34;&#62;
&#160; &#160; &#60;s:layout&#62;
&#160; &#160; &#160; &#160; &#60;s:BasicLayout&#160;/&#62;
&#160; &#160; &#60;/s:layout&#62;
&#160;
&#160; &#160; &#60;fx:Style&#62;
&#160; &#160; &#160; &#160; @namespace s &#34;library://ns.adobe.com/flex/spark&#34;;
&#160; &#160; &#160; &#160; @namespace mx &#34;library://ns.adobe.com/flex/halo&#34;;
&#160;
&#160; &#160; &#160; &#160; global {
&#160; &#160; &#160; &#160; &#160; &#160; color: red;
&#160; &#160; &#160; [...]]]></description>
		<wfw:commentRss>http://blog.minidx.com/2009/08/04/2807.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flex Gumbo中如何通过autoRepeat属性创建一个自动重复的Soark按钮的例子</title>
		<link>http://blog.minidx.com/2009/06/30/2670.html</link>
		<comments>http://blog.minidx.com/2009/06/30/2670.html#comments</comments>
		<pubDate>Tue, 30 Jun 2009 13:26:02 +0000</pubDate>
		<dc:creator>Minidxer</dc:creator>
				<category><![CDATA[Button]]></category>
		<category><![CDATA[Gumbo]]></category>
		<category><![CDATA[autoRepeat]]></category>
		<category><![CDATA[Button (Spark)]]></category>
		<category><![CDATA[buttonDown]]></category>
		<category><![CDATA[click]]></category>

		<guid isPermaLink="false">http://blog.minidx.com/?p=2670</guid>
		<description><![CDATA[接下来的例子演示了Flex Gumbo中如何通过autoRepeat属性，创建一个自动重复的Soark按钮。








下面是代码：
Download: main.mxml&#60;?xml version=&#34;1.0&#34; encoding=&#34;utf-8&#34;?&#62;
&#60;s:Application&#160;name=&#34;Spark_Button_autoRepeat_test&#34;
&#160; &#160; &#160; &#160; xmlns:fx=&#34;http://ns.adobe.com/mxml/2009&#34;
&#160; &#160; &#160; &#160; xmlns:s=&#34;library://ns.adobe.com/flex/spark&#34;
&#160; &#160; &#160; &#160; xmlns:mx=&#34;library://ns.adobe.com/flex/halo&#34;&#62;
&#160;
&#160; &#160; &#60;fx:Script&#62;
&#160; &#160; &#160; &#160; &#60;![CDATA[
&#160; &#160; &#160; &#160; &#160; &#160; import mx.events.FlexEvent;
&#160;
&#160; &#160; &#160; &#160; &#160; &#160; private var clr:Boolean = false;
&#160;
&#160; &#160; &#160; &#160; &#160; &#160; private function btn_buttonDown(evt:FlexEvent):void {
&#160; &#160; &#160; &#160; &#160; &#160; &#160; [...]]]></description>
		<wfw:commentRss>http://blog.minidx.com/2009/06/30/2670.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>如何利用Flex Gumbo SDK创建一个简单的Flex应用的例子</title>
		<link>http://blog.minidx.com/2009/05/01/2397.html</link>
		<comments>http://blog.minidx.com/2009/05/01/2397.html#comments</comments>
		<pubDate>Fri, 01 May 2009 11:00:47 +0000</pubDate>
		<dc:creator>Minidxer</dc:creator>
				<category><![CDATA[Button]]></category>
		<category><![CDATA[Gumbo]]></category>
		<category><![CDATA[FxApplication]]></category>
		<category><![CDATA[FxButton]]></category>

		<guid isPermaLink="false">http://blog.minidx.com/?p=2397</guid>
		<description><![CDATA[接下来的例子演示了如何利用Flex Gumbo SDK创建一个简单的Flex应用。※在升级SDK之后，可能会出现“升级到４出现“找不到类型，或者它不是编译时常数: Matrix3D”这样的编译错误，那是因为有些新功能只有10,0,0,525这个版本以上的支持，而现在很多用户是用的9.0.124.0。可以在项目属性中修改
让我们先来看一下Demo（可以右键View Source或点击这里察看源代码）：









下面是完整代码(或点击这里察看)：
Download: main.mxml&#60;?xml version=&#34;1.0&#34; encoding=&#34;utf-8&#34;?&#62;
&#60;FxApplication&#160;name=&#34;FXApplication_test&#34;
&#160; &#160; &#160; &#160; xmlns=&#34;http://ns.adobe.com/mxml/2009&#34;&#62;
&#160; &#160; &#60;layout&#62;
&#160; &#160; &#160; &#160; &#60;BasicLayout&#160;/&#62;
&#160; &#160; &#60;/layout&#62;
&#160;
&#160; &#160; &#60;HGroup&#160;id=&#34;hGroup&#34; left=&#34;10&#34; top=&#34;10&#34;&#62;
&#160; &#160; &#160; &#160; &#60;FxButton&#160;id=&#34;fxButton&#34;
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; label=&#34;I'm a Gumbo Button, FxButton&#34;&#160;/&#62;
&#160; &#160; &#160; &#160; &#60;Button&#160;id=&#34;mxButton&#34;
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; label=&#34;I'm a Halo Button, [...]]]></description>
		<wfw:commentRss>http://blog.minidx.com/2009/05/01/2397.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Flex中如何通过icon样式从SWF中指定一个Button的例子</title>
		<link>http://blog.minidx.com/2009/04/25/2389.html</link>
		<comments>http://blog.minidx.com/2009/04/25/2389.html#comments</comments>
		<pubDate>Sat, 25 Apr 2009 13:38:41 +0000</pubDate>
		<dc:creator>Minidxer</dc:creator>
				<category><![CDATA[Button]]></category>
		<category><![CDATA[Embed]]></category>
		<category><![CDATA[icon]]></category>

		<guid isPermaLink="false">http://blog.minidx.com/?p=2389</guid>
		<description><![CDATA[接下来的例子演示了Flex中如何通过icon样式从SWF中指定一个Button。
让我们先来看一下Demo（可以右键View Source或点击这里察看源代码）：









下面是完整代码(或点击这里察看)：
Download: main.mxml&#60;?xml version=&#34;1.0&#34; encoding=&#34;utf-8&#34;?&#62;
&#60;mx:Application&#160;xmlns:mx=&#34;http://www.adobe.com/2006/mxml&#34;
&#160; &#160; &#160; &#160; layout=&#34;horizontal&#34;
&#160; &#160; &#160; &#160; verticalAlign=&#34;middle&#34;
&#160; &#160; &#160; &#160; backgroundColor=&#34;white&#34;&#62;
&#160;
&#160; &#160; &#60;mx:Button&#160;label=&#34;Bullet Add&#34;
&#160; &#160; &#160; &#160; &#160; &#160; icon=&#34;@Embed(source='icons.swf', symbol='bullet_add')&#34;&#160;/&#62;
&#160; &#160; &#60;mx:Button&#160;label=&#34;Bullet Delete&#34;
&#160; &#160; &#160; &#160; &#160; &#160; icon=&#34;@Embed(source='icons.swf', symbol='bullet_delete')&#34;&#160;/&#62;
&#160; &#160; &#60;mx:Button&#160;label=&#34;Bullet Star&#34;
&#160; &#160; &#160; &#160; &#160; &#160; icon=&#34;@Embed(source='icons.swf', symbol='bullet_star')&#34;&#160;/&#62;
&#160;
&#60;/mx:Application&#62;
代码：Peter deHaan 翻译/整理/编译：中文Flex例子

你可能还对下列文章感兴趣:Flex中如何利用Style Sheet和&#60;mx:style&#62;标签嵌入图片/图标的例子Flex中给按钮设置icon图标的例子Flex中如何通过disabledIcon样式和enabled属性在Button在改变有效/无效状态时改变图标的例子Flex中通过按钮类的textAlign样式和labelPlacement属性控制按钮(Button)标签位置的例子Flex中如何在Panel容器中增加图标(icons)的例子]]></description>
		<wfw:commentRss>http://blog.minidx.com/2009/04/25/2389.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flex中如何通过paddingLeft, paddingRight, paddingTop, paddingBottom和horizontalGap样式调整Button的标签和图标的各填充距离的例子</title>
		<link>http://blog.minidx.com/2009/01/25/2013.html</link>
		<comments>http://blog.minidx.com/2009/01/25/2013.html#comments</comments>
		<pubDate>Sun, 25 Jan 2009 03:42:04 +0000</pubDate>
		<dc:creator>Minidxer</dc:creator>
				<category><![CDATA[Button]]></category>
		<category><![CDATA[horizontalGap]]></category>
		<category><![CDATA[paddingBottom]]></category>
		<category><![CDATA[paddingLeft]]></category>
		<category><![CDATA[paddingRight]]></category>
		<category><![CDATA[paddingTop]]></category>

		<guid isPermaLink="false">http://blog.minidx.com/?p=2013</guid>
		<description><![CDATA[接下来的例子演示了Flex中如何通过paddingLeft, paddingRight, paddingTop, paddingBottom和horizontalGap样式，调整Button的标签和图标的各填充距离。
让我们先来看一下Demo（可以右键View Source或点击这里察看源代码）：









下面是完整代码(或点击这里察看)：
Download: main.mxml&#60;?xml version=&#34;1.0&#34; encoding=&#34;utf-8&#34;?&#62;
&#60;mx:Application&#160;xmlns:mx=&#34;http://www.adobe.com/2006/mxml&#34;
&#160; &#160; &#160; &#160; layout=&#34;vertical&#34;
&#160; &#160; &#160; &#160; verticalAlign=&#34;middle&#34;
&#160; &#160; &#160; &#160; backgroundColor=&#34;white&#34;
&#160; &#160; &#160; &#160; creationComplete=&#34;init();&#34;&#62;
&#160;
&#160; &#160; &#60;mx:Style&#62;
&#160; &#160; &#160; &#160; HSlider {
&#160; &#160; &#160; &#160; &#160; &#160; labelOffset: 0;
&#160; &#160; &#160; &#160; &#160; &#160; dataTipPlacement: right;
&#160; &#160; &#160; &#160; }
&#160;
&#160; &#160; &#160; &#160; .iconButton {
&#160; &#160; [...]]]></description>
		<wfw:commentRss>http://blog.minidx.com/2009/01/25/2013.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced)
Database Caching 2/30 queries in 0.771 seconds using disk
Object Caching 410/803 objects using disk

Served from: blog.minidx.com @ 2012-02-10 01:16:33 -->
