<?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; errorString</title>
	<atom:link href="http://blog.minidx.com/tag/errorstring/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中检测CheckBox是否被选中并允许用户继续与否的例子</title>
		<link>http://blog.minidx.com/2008/09/19/1405.html</link>
		<comments>http://blog.minidx.com/2008/09/19/1405.html#comments</comments>
		<pubDate>Fri, 19 Sep 2008 13:52:47 +0000</pubDate>
		<dc:creator>Minidxer</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[Button]]></category>
		<category><![CDATA[CheckBox]]></category>
		<category><![CDATA[errorString]]></category>
		<category><![CDATA[selected]]></category>

		<guid isPermaLink="false">http://blog.minidx.com/?p=1405</guid>
		<description><![CDATA[接下来的例子演示了Flex中如何检测CheckBox是否被选中并允许用户继续与否。
让我们先来看一下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.controls.Alert;
&#160;
&#160; &#160; &#160; &#160; &#160; &#160; private function isChecked():void {
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; if (!checkBox.selected) {
&#160; &#160; &#160; &#160; &#160; &#160; &#160; [...]]]></description>
		<wfw:commentRss>http://blog.minidx.com/2008/09/19/1405.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flex中通过errorColor样式和errorString属性自定义TextInput控件发生错误时颜色的例子</title>
		<link>http://blog.minidx.com/2008/08/19/1278.html</link>
		<comments>http://blog.minidx.com/2008/08/19/1278.html#comments</comments>
		<pubDate>Mon, 18 Aug 2008 16:19:23 +0000</pubDate>
		<dc:creator>Minidxer</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[errorColor]]></category>
		<category><![CDATA[errorString]]></category>
		<category><![CDATA[TextInput]]></category>

		<guid isPermaLink="false">http://blog.minidx.com/2008/08/19/1278.html</guid>
		<description><![CDATA[接下来的例子演示了Flex中如何通过errorColor样式和errorString属性，自定义TextInput控件发生错误时颜色。
让我们先来看一下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:ApplicationControlBar&#160;dock=&#34;true&#34;&#62;
&#160; &#160; &#160; &#160; &#60;mx:Label&#160;text=&#34;errorColor:&#34; /&#62;
&#160; &#160; &#160; &#160; &#60;mx:ColorPicker&#160;id=&#34;colorPicker&#34; /&#62;
&#160; &#160; &#60;/mx:ApplicationControlBar&#62;
&#160;
&#160; &#160; &#60;mx:Form&#62;
&#160; &#160; &#160; &#160; &#60;mx:FormItem&#160;label=&#34;text:&#34; required=&#34;true&#34;&#62;
&#160; &#160; &#160; &#160; &#160; &#160; &#60;mx:TextInput&#160;id=&#34;textInput&#34;
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; errorColor=&#34;{colorPicker.selectedColor}&#34;
&#160; &#160; [...]]]></description>
		<wfw:commentRss>http://blog.minidx.com/2008/08/19/1278.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flex中通过设置borderColor样式和.errorTip CSS分离器改变错误信息提示背景颜色(background color)的例子</title>
		<link>http://blog.minidx.com/2008/05/23/867.html</link>
		<comments>http://blog.minidx.com/2008/05/23/867.html#comments</comments>
		<pubDate>Fri, 23 May 2008 12:57:14 +0000</pubDate>
		<dc:creator>Minidxer</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[borderColor]]></category>
		<category><![CDATA[errorColor]]></category>
		<category><![CDATA[errorString]]></category>
		<category><![CDATA[errorTip]]></category>
		<category><![CDATA[背景颜色]]></category>

		<guid isPermaLink="false">http://blog.minidx.com/2008/05/23/867.html</guid>
		<description><![CDATA[在前面的Flex中如何通过errorString属性在CheckBox控件上设置一个错误信息显示字符串的例子中，我们了解了如何在Flex的CheckBox中设置一个Tip来显示提示/错误信息。接下来的例子中，演示了如何通过设置borderColor样式和.errorTip CSS分离器改变错误信息提示背景颜色(background color)。
让我们先来看一下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; @font-face {
&#160; &#160; &#160; &#160; &#160; &#160; src: local(&#34;Base 02&#34;);
&#160; &#160; &#160; &#160; &#160; &#160; fontFamily: Base02Embedded;
&#160; &#160; &#160; &#160; }
&#160;
&#160; &#160; &#160; &#160; .errorTip {
&#160; &#160; &#160; &#160; &#160; &#160; [...]]]></description>
		<wfw:commentRss>http://blog.minidx.com/2008/05/23/867.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Flex中如何通过errorString属性在CheckBox控件上设置一个错误信息显示字符串的例子</title>
		<link>http://blog.minidx.com/2008/05/22/866.html</link>
		<comments>http://blog.minidx.com/2008/05/22/866.html#comments</comments>
		<pubDate>Thu, 22 May 2008 12:09:50 +0000</pubDate>
		<dc:creator>Minidxer</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[CheckBox]]></category>
		<category><![CDATA[errorString]]></category>
		<category><![CDATA[字符串]]></category>

		<guid isPermaLink="false">http://blog.minidx.com/2008/05/22/866.html</guid>
		<description><![CDATA[注册邮箱或者论坛用户以及下载类似于JDK之类的开发包的时候，都会有一个协议确认画面，需要打勾了才可以下一步。下面的例子就演示了这一过程：打勾之前下一步无效，鼠标移动到CheckBox的时候会显示一条信息。该信息利用了Flex中CheckBox控件的errorString属性。
让我们先来看一下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; private function checkBox_change(evt:Event):void {
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; if (checkBox.selected) {
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; checkBox.errorString = &#34;&#34;;
&#160; &#160; [...]]]></description>
		<wfw:commentRss>http://blog.minidx.com/2008/05/22/866.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Flex的Image控件中如何在读取图片文件错误时显示一个tool tip的例子</title>
		<link>http://blog.minidx.com/2008/05/04/824.html</link>
		<comments>http://blog.minidx.com/2008/05/04/824.html#comments</comments>
		<pubDate>Sun, 04 May 2008 10:25:03 +0000</pubDate>
		<dc:creator>Minidxer</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[errorString]]></category>
		<category><![CDATA[Image]]></category>
		<category><![CDATA[ioError.ToolTip]]></category>

		<guid isPermaLink="false">http://blog.minidx.com/2008/05/04/824.html</guid>
		<description><![CDATA[
接下来的例子演示了Flex的Image控件，在无法读取图片文件时，显示一个出错字符串信息。
让我们先来看一下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:Image&#160;id=&#34;img&#34;
&#160; &#160; &#160; &#160; &#160; &#160; source=&#34;http://blog.minidx.com/images/404.gif&#34;
&#160; &#160; &#160; &#160; &#160; &#160; width=&#34;160&#34;
&#160; &#160; &#160; &#160; &#160; &#160; height=&#34;120&#34;
&#160; &#160; &#160; &#160; &#160; &#160; ioError=&#34;img.errorString = event.text;&#34;&#160;/&#62;
&#160;
&#60;/mx:Application&#62;
代码：Peter deHaan 翻译/整理/编译：minidxer
你可能还对下列文章感兴趣:Flex中如何利用doubleClickEnabled属性与navigateToURL()函数在双击Image控件时打开一个浏览器的例子Flex中如何通过brokenImageSkin样式给Image设置一个自定义破损图片Skin的例子Flex中如何利用useHandCursor和buttonMode属性在鼠标移到图片上显示手型光标的例子Flex中如何通过httpStatus事件检测Image控件载入图片是否成功的例子Flex中如何利用PopUpManager类创建一个弹出Image控件的例子]]></description>
		<wfw:commentRss>http://blog.minidx.com/2008/05/04/824.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/28 queries in 0.407 seconds using disk
Object Caching 424/811 objects using disk

Served from: blog.minidx.com @ 2012-02-09 20:54:36 -->
