<?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; CLOSE</title>
	<atom:link href="http://blog.minidx.com/tag/close/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中如何通过监听open和close事件监测PopUpButton下拉菜单打开/关闭状态的例子</title>
		<link>http://blog.minidx.com/2009/04/08/2356.html</link>
		<comments>http://blog.minidx.com/2009/04/08/2356.html#comments</comments>
		<pubDate>Wed, 08 Apr 2009 00:21:10 +0000</pubDate>
		<dc:creator>Minidxer</dc:creator>
				<category><![CDATA[PopUpButton]]></category>
		<category><![CDATA[CLOSE]]></category>
		<category><![CDATA[open.]]></category>

		<guid isPermaLink="false">http://blog.minidx.com/?p=2356</guid>
		<description><![CDATA[接下来的例子演示了Flex中如何通过监听open和close事件，监测PopUpButton下拉菜单打开/关闭状态。
让我们先来看一下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:Style&#62;
&#160; &#160; &#160; &#160; PopUpButton {
&#160; &#160; &#160; &#160; &#160; &#160; popUpStyleName: myCustomPopUpStyleName;
&#160; &#160; &#160; &#160; }
&#160;
&#160; &#160; &#160; &#160; .myCustomPopUpStyleName {
&#160; &#160; &#160; &#160; &#160;&#160; fontWeight: normal;
&#160; &#160; &#160; &#160; &#160;&#160; textAlign: left;
&#160; &#160; &#160; &#160; [...]]]></description>
		<wfw:commentRss>http://blog.minidx.com/2009/04/08/2356.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flex中如何检测Alert控件是否closed的例子</title>
		<link>http://blog.minidx.com/2008/05/02/815.html</link>
		<comments>http://blog.minidx.com/2008/05/02/815.html#comments</comments>
		<pubDate>Fri, 02 May 2008 15:05:33 +0000</pubDate>
		<dc:creator>Minidxer</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[Alert]]></category>
		<category><![CDATA[CLOSE]]></category>
		<category><![CDATA[closeHandler]]></category>

		<guid isPermaLink="false">http://blog.minidx.com/2008/05/02/815.html</guid>
		<description><![CDATA[接下来的例子演示了Flex中如何通过监听close事件，在静态Alert.show()事件中指定closeHandler的参数，来实现检测Alert控件（对话框）是否关闭。
让我们先来看一下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:Script&#62;
&#160; &#160; &#160; &#160; &#60;![CDATA[
&#160; &#160; &#160; &#160; &#160; &#160; import mx.events.CloseEvent;
&#160; &#160; &#160; &#160; &#160; &#160; import mx.controls.Alert;
&#160;
&#160; &#160; &#160; &#160; &#160; &#160; private var alert:Alert;
&#160;
&#160; &#160; &#160; &#160; &#160; &#160; private [...]]]></description>
		<wfw:commentRss>http://blog.minidx.com/2008/05/02/815.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flex中如何判断DateField控件状态为opened还是closed的例子</title>
		<link>http://blog.minidx.com/2008/05/01/811.html</link>
		<comments>http://blog.minidx.com/2008/05/01/811.html#comments</comments>
		<pubDate>Thu, 01 May 2008 11:49:25 +0000</pubDate>
		<dc:creator>Minidxer</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[CLOSE]]></category>
		<category><![CDATA[DateField]]></category>
		<category><![CDATA[DropdownEvent]]></category>
		<category><![CDATA[itemRenderer]]></category>
		<category><![CDATA[open.]]></category>

		<guid isPermaLink="false">http://blog.minidx.com/2008/05/01/811.html</guid>
		<description><![CDATA[接下来的例子演示了Flex中如何通过监听open和close事件，来判断DateField控件状态为opened还是closed。
让我们先来看一下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.events.DropdownEvent;
&#160;
&#160; &#160; &#160; &#160; &#160; &#160; private function dateField_openClose(evt:DropdownEvent):void {
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; arrColl.addItem(evt);
&#160; &#160; &#160; &#160; &#160; &#160; }
&#160; &#160; &#160; [...]]]></description>
		<wfw:commentRss>http://blog.minidx.com/2008/05/01/811.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flex中利用PopUpManager类创建自定义MXML组件并且在pop-up框中显示类名称的例子</title>
		<link>http://blog.minidx.com/2008/03/21/617.html</link>
		<comments>http://blog.minidx.com/2008/03/21/617.html#comments</comments>
		<pubDate>Fri, 21 Mar 2008 15:47:58 +0000</pubDate>
		<dc:creator>Minidxer</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[centerPopUp]]></category>
		<category><![CDATA[CLOSE]]></category>
		<category><![CDATA[createPopUp]]></category>
		<category><![CDATA[MXML]]></category>
		<category><![CDATA[PopUpManager]]></category>
		<category><![CDATA[showCloseButton]]></category>
		<category><![CDATA[TitleWindow]]></category>

		<guid isPermaLink="false">http://blog.minidx.com/2008/03/21/617.html</guid>
		<description><![CDATA[在前面的Flex中利用PopUpManager类创建自定义pop-up窗口的例子中，我们了解了Flex中如何利用PopUpManager类创建pop-up窗口。
接下来的例子中我们来了解一下如何创建一个MXML组件，传递类的名称给静态（static）的PopUpManager.createPopUp()事件并且显示在pop-up对话框中。
下面是完整代码：








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&#160;mx.managers.PopUpManager;
&#160;
&#160; &#160; &#160; &#160; &#160; &#160; private&#160;function launchMoreInfo():void {
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; var&#160;win:Dialog = PopUpManager.createPopUp(this, Dialog, true) as Dialog;
&#160; &#160; &#160; &#160; &#160; &#160; [...]]]></description>
		<wfw:commentRss>http://blog.minidx.com/2008/03/21/617.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flex中检测对话框（Alert dialog）中哪一个按钮被用户按下的例子</title>
		<link>http://blog.minidx.com/2008/03/16/598.html</link>
		<comments>http://blog.minidx.com/2008/03/16/598.html#comments</comments>
		<pubDate>Sun, 16 Mar 2008 11:46:50 +0000</pubDate>
		<dc:creator>Minidxer</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[Alert]]></category>
		<category><![CDATA[Alert.show]]></category>
		<category><![CDATA[CLOSE]]></category>
		<category><![CDATA[CloseEvent]]></category>
		<category><![CDATA[dialog]]></category>
		<category><![CDATA[对话框]]></category>

		<guid isPermaLink="false">http://blog.minidx.com/2008/03/16/598.html</guid>
		<description><![CDATA[在前面的Flex中用Alert.show()来显示对话框(Alert)的例子中演示了如何创建一个最基本的对话框（Alert dialog），现在我们来看一下如何检测用户按下了对话框中的哪一个按钮（Yes or No）。
另外，这个例子并不是什么复杂的或者让人惊叹的效果，它演示了你可以如何在Flex应用中，创建一些基本的逻辑来提交（commit）或者拒绝（reject）用户的反馈动作（feedback）。
下面是具体的源代码：








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; &#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.CloseEvent;&#160; 
&#160;
&#160; &#160; &#160; &#160; &#160; &#160; private&#160;var alert:Alert;&#160; 
&#160;
&#160; &#160; &#160; &#160; &#160; &#160; private&#160;function showAlert():void {
&#160; [...]]]></description>
		<wfw:commentRss>http://blog.minidx.com/2008/03/16/598.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/32 queries in 0.523 seconds using disk
Object Caching 434/849 objects using disk

Served from: blog.minidx.com @ 2012-02-09 11:00:57 -->
