<?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; 按钮</title>
	<atom:link href="http://blog.minidx.com/tag/%e6%8c%89%e9%92%ae/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中如何通过labelPlacement属性设置RadioButton控件按钮标签位置的例子</title>
		<link>http://blog.minidx.com/2008/08/19/1280.html</link>
		<comments>http://blog.minidx.com/2008/08/19/1280.html#comments</comments>
		<pubDate>Tue, 19 Aug 2008 12:06:15 +0000</pubDate>
		<dc:creator>Minidxer</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[labelPlacement]]></category>
		<category><![CDATA[RadioButton]]></category>
		<category><![CDATA[按钮]]></category>

		<guid isPermaLink="false">http://blog.minidx.com/2008/08/19/1280.html</guid>
		<description><![CDATA[接下来的例子演示了Flex中如何通过labelPlacement属性，设置RadioButton控件按钮标签位置。
让我们先来看一下Demo（可以右键View Source或点击这里察看源代码）：









下面是完整代码(或点击这里察看)：
Download: main.mxml&#60;?xml version=&#34;1.0&#34; encoding=&#34;utf-8&#34;?&#62;
&#60;mx:Application&#160;name=&#34;RadioButton_labelPlacement_test&#34;
&#160; &#160; &#160; &#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;&#62;
&#160;
&#160; &#160; &#60;mx:Script&#62;
&#160; &#160; &#160; &#160; &#60;![CDATA[
&#160; &#160; &#160; &#160; &#160; &#160; import mx.controls.ButtonLabelPlacement;
&#160;
&#160; &#160; &#160; &#160; &#160; &#160; private const arr:Array = [ButtonLabelPlacement.LEFT,
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; [...]]]></description>
		<wfw:commentRss>http://blog.minidx.com/2008/08/19/1280.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flex中自定义Alert控件按钮(Button)样式的例子</title>
		<link>http://blog.minidx.com/2008/07/20/1097.html</link>
		<comments>http://blog.minidx.com/2008/07/20/1097.html#comments</comments>
		<pubDate>Sat, 19 Jul 2008 17:05:59 +0000</pubDate>
		<dc:creator>Minidxer</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[Alert]]></category>
		<category><![CDATA[buttonStyleName]]></category>
		<category><![CDATA[cornerRadius]]></category>
		<category><![CDATA[按钮]]></category>
		<category><![CDATA[边角圆滑]]></category>

		<guid isPermaLink="false">http://blog.minidx.com/2008/07/20/1097.html</guid>
		<description><![CDATA[接下来的例子演示了Flex中如何自定义Alert控件按钮(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; layout=&#34;vertical&#34; verticalAlign=&#34;middle&#34; backgroundColor=&#34;white&#34;&#62;
&#160;
&#160; &#160; &#60;mx:Style&#62;
&#160; &#160; &#160; &#160; .roundedAlertButtons {
&#160; &#160; &#160; &#160; &#160; &#160; cornerRadius: 10;
&#160; &#160; &#160; &#160; &#160; &#160; font-weight: bold;
&#160; &#160; &#160; &#160; &#160; &#160; color: black;
&#160; &#160; &#160; &#160; }
&#160; &#160; &#60;/mx:Style&#62;
&#160;
&#160; &#160; &#60;mx:Script&#62;
&#160; &#160; &#160; &#160; &#60;![CDATA[
&#160; &#160; &#160; &#160; &#160; &#160; import mx.controls.Alert;
&#160;
&#160; [...]]]></description>
		<wfw:commentRss>http://blog.minidx.com/2008/07/20/1097.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flex中通过调用autoRepeat属性和buttonDown事件创建一个自动重复用户按下时动作按钮(Button)的例子</title>
		<link>http://blog.minidx.com/2008/07/19/1096.html</link>
		<comments>http://blog.minidx.com/2008/07/19/1096.html#comments</comments>
		<pubDate>Sat, 19 Jul 2008 08:39:58 +0000</pubDate>
		<dc:creator>Minidxer</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[autoRepeat]]></category>
		<category><![CDATA[Button]]></category>
		<category><![CDATA[buttonDown]]></category>
		<category><![CDATA[repeatDelay]]></category>
		<category><![CDATA[repeatInterval]]></category>
		<category><![CDATA[按钮]]></category>

		<guid isPermaLink="false">http://blog.minidx.com/2008/07/19/1096.html</guid>
		<description><![CDATA[接下来的例子演示了Flex中通过调用autoRepeat属性和buttonDown事件，创建一个自动重复用户按下时动作按钮(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;&#62;
&#160;
&#160; &#160; &#60;mx:Script&#62;
&#160; &#160; &#160; &#160; &#60;![CDATA[
&#160; &#160; &#160; &#160; &#160; &#160; import mx.core.UIComponent;
&#160;
&#160; &#160; &#160; &#160; &#160; &#160; private function moveLeft(target:UIComponent):void {
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; var t1:int = target.x - 10;
&#160; &#160; &#160; &#160; [...]]]></description>
		<wfw:commentRss>http://blog.minidx.com/2008/07/19/1096.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flex中如何通过cornerRadius属性控制按钮(Button)控件边角圆滑程度的例子</title>
		<link>http://blog.minidx.com/2008/07/19/1094.html</link>
		<comments>http://blog.minidx.com/2008/07/19/1094.html#comments</comments>
		<pubDate>Sat, 19 Jul 2008 08:13:56 +0000</pubDate>
		<dc:creator>Minidxer</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[Button]]></category>
		<category><![CDATA[cornerRadius]]></category>
		<category><![CDATA[按钮]]></category>

		<guid isPermaLink="false">http://blog.minidx.com/2008/07/19/1094.html</guid>
		<description><![CDATA[在前面介绍过Panel容器边角圆滑控制，NumericStepper控件边角圆滑控制，类似的，接下来的例子演示了Flex中如何通过cornerRadius属性,控制按钮(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; layout=&#34;vertical&#34; verticalAlign=&#34;middle&#34; backgroundColor=&#34;white&#34;&#62;
&#160;
&#160; &#160; &#60;mx:Button&#160;id=&#34;button&#34; height=&#34;40&#34;
&#160; &#160; &#160; &#160; &#160; &#160; cornerRadius=&#34;{slider.value}&#34;
&#160; &#160; &#160; &#160; &#160; &#160; label=&#34;Button.cornerRadius&#34;&#160;/&#62;
&#160;
&#160; &#160; &#60;mx:HSlider&#160;id=&#34;slider&#34;
&#160; &#160; &#160; &#160; &#160; &#160; width=&#34;{button.width}&#34;
&#160; &#160; &#160; &#160; &#160; &#160; minimum=&#34;0&#34;&#160;maximum=&#34;{button.height/2}&#34;
&#160; &#160; &#160; &#160; &#160; &#160; snapInterval=&#34;1&#34;&#160;tickInterval=&#34;1&#34;
&#160; &#160; &#160; &#160; &#160; &#160; liveDragging=&#34;true&#34;
&#160; &#160; &#160; &#160; &#160; &#160; dataTipPrecision=&#34;0&#34;&#160;/&#62;
&#160;
&#60;/mx:Application&#62;
代码：Peter [...]]]></description>
		<wfw:commentRss>http://blog.minidx.com/2008/07/19/1094.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flex中利用labelPlacementChanged事件检测按钮(Buttoon)中标签(Label)位置是否改变的例子</title>
		<link>http://blog.minidx.com/2008/06/27/1002.html</link>
		<comments>http://blog.minidx.com/2008/06/27/1002.html#comments</comments>
		<pubDate>Fri, 27 Jun 2008 15:11:35 +0000</pubDate>
		<dc:creator>Minidxer</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[Button]]></category>
		<category><![CDATA[labelPlacement]]></category>
		<category><![CDATA[labelPlacementChanged]]></category>
		<category><![CDATA[按钮]]></category>
		<category><![CDATA[标签]]></category>

		<guid isPermaLink="false">http://blog.minidx.com/2008/06/27/1002.html</guid>
		<description><![CDATA[在前面的Flex中利用labelPlacement属性在按钮控件(Button)中设置一个图标(icon)在按钮中的位置的例子中，我们了解了如何利用labelPlacement属性在按钮控件中设置标签的位置，接下来的例子则演示了Flex中利用labelPlacementChanged事件，检测按钮(Buttoon)中标签(Label)位置是否改变。
让我们先来看一下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; initialize=&#34;init();&#34;&#160;viewSourceURL=&#34;srcview/index.html&#34;&#62;
&#160;
&#160; &#160; &#60;mx:Script&#62;
&#160; &#160; &#160; &#160; &#60;![CDATA[
&#160; &#160; &#160; &#160; &#160; &#160; import&#160;mx.controls.Alert;
&#160; &#160; &#160; &#160; &#160; &#160; import&#160;mx.events.ListEvent;
&#160;
&#160; &#160; &#160; &#160; &#160; &#160; [Bindable]
&#160; &#160; &#160; &#160; &#160; &#160; [Embed(&#34;assets/flex_logo.jpg&#34;)]
&#160; &#160; &#160; &#160; &#160; [...]]]></description>
		<wfw:commentRss>http://blog.minidx.com/2008/06/27/1002.html/feed</wfw:commentRss>
		<slash:comments>1</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/29 queries in 0.042 seconds using disk
Object Caching 429/818 objects using disk

Served from: blog.minidx.com @ 2012-02-10 01:01:16 -->
