<?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; StyleManager</title>
	<atom:link href="http://blog.minidx.com/tag/stylemanager/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中如何利用StyleManager.loadStyleDeclarations()动态载入CSS SWF到Flex应用的例子</title>
		<link>http://blog.minidx.com/2009/01/02/1867.html</link>
		<comments>http://blog.minidx.com/2009/01/02/1867.html#comments</comments>
		<pubDate>Fri, 02 Jan 2009 13:19:54 +0000</pubDate>
		<dc:creator>Minidxer</dc:creator>
				<category><![CDATA[Other]]></category>
		<category><![CDATA[loadStyleDeclarations()]]></category>
		<category><![CDATA[StyleManager]]></category>

		<guid isPermaLink="false">http://blog.minidx.com/?p=1867</guid>
		<description><![CDATA[接下来的例子演示了Flex中如何利用StyleManager.loadStyleDeclarations()，动态载入CSS SWF到Flex应用。
让我们先来看一下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;&#62;
&#160;
&#160; &#160; &#60;mx:Script&#62;
&#160; &#160; &#160; &#160; &#60;![CDATA[
&#160; &#160; &#160; &#160; &#160; &#160; import mx.styles.StyleManager;
&#160;
&#160; &#160; &#160; &#160; &#160; &#160; private function loadStyles(styleURL:String):void {
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; StyleManager.loadStyleDeclarations(styleURL);
&#160; &#160; &#160; &#160; &#160; &#160; }
&#160; &#160; &#160; &#160; ]]&#62;
&#160; &#160; [...]]]></description>
		<wfw:commentRss>http://blog.minidx.com/2009/01/02/1867.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Flex中如何通过lineStroke样式改变LineChart图表线条颜色的例子</title>
		<link>http://blog.minidx.com/2008/11/23/1644.html</link>
		<comments>http://blog.minidx.com/2008/11/23/1644.html#comments</comments>
		<pubDate>Sun, 23 Nov 2008 12:19:15 +0000</pubDate>
		<dc:creator>Minidxer</dc:creator>
				<category><![CDATA[Chart]]></category>
		<category><![CDATA[getColorName()]]></category>
		<category><![CDATA[LineSeries]]></category>
		<category><![CDATA[lineStroke]]></category>
		<category><![CDATA[stroke]]></category>
		<category><![CDATA[StyleManager]]></category>

		<guid isPermaLink="false">http://blog.minidx.com/?p=1644</guid>
		<description><![CDATA[接下来的例子演示了Flex中如何通过lineStroke样式，改变LineChart图表线条颜色。
让我们先来看一下Demo（可以右键View Source或点击这里察看源代码）：









下面是完整代码(或点击这里察看)：
Download: main.mxml&#60;?xml version=&#34;1.0&#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.styles.StyleManager;
&#160; &#160; &#160; &#160; ]]&#62;
&#160; &#160; &#60;/mx:Script&#62;
&#160;
&#160; &#160; &#60;mx:XMLListCollection&#160;id=&#34;dp&#34;&#62;
&#160; &#160; &#160; &#160; &#60;mx:source&#62;
&#160; &#160; &#160; &#160; &#160; &#160; &#60;mx:XMLList&#62;
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#60;quote&#160;date=&#34;8/27/2007&#34; [...]]]></description>
		<wfw:commentRss>http://blog.minidx.com/2008/11/23/1644.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Flex中如何利用StyleManager.getStyleDeclaration()和setStyle()函数动态设置.errorTip样式的例子</title>
		<link>http://blog.minidx.com/2008/09/27/1437.html</link>
		<comments>http://blog.minidx.com/2008/09/27/1437.html#comments</comments>
		<pubDate>Sat, 27 Sep 2008 11:24:33 +0000</pubDate>
		<dc:creator>Minidxer</dc:creator>
				<category><![CDATA[Other]]></category>
		<category><![CDATA[borderColor]]></category>
		<category><![CDATA[errorColor]]></category>
		<category><![CDATA[errorTip]]></category>
		<category><![CDATA[getStyleDeclaration]]></category>
		<category><![CDATA[StyleManager]]></category>

		<guid isPermaLink="false">http://blog.minidx.com/?p=1437</guid>
		<description><![CDATA[在前面Flex中通过设置borderColor样式和.errorTip CSS分离器改变错误信息提示背景颜色(background color)的例子中，我们了解了如何通过设置borderColor样式和.errorTip CSS分离器改变错误信息提示背景颜色(background color)。接下来的例子演示了Flex中如何利用StyleManager.getStyleDeclaration()和setStyle()函数，动态设置.errorTip样式。
让我们先来看一下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;errorTip_borderColor_test_2&#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.events.FlexEvent;
&#160;
&#160; &#160; &#160; &#160; &#160; &#160; private function comboBox_valueCommit(evt:FlexEvent):void {
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; if [...]]]></description>
		<wfw:commentRss>http://blog.minidx.com/2008/09/27/1437.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flex中如何利用StyleManager.isColorName函数检查颜色名字是否合法的例子</title>
		<link>http://blog.minidx.com/2008/09/17/1401.html</link>
		<comments>http://blog.minidx.com/2008/09/17/1401.html#comments</comments>
		<pubDate>Tue, 16 Sep 2008 23:50:49 +0000</pubDate>
		<dc:creator>Minidxer</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[isColorName()]]></category>
		<category><![CDATA[registerColorName()]]></category>
		<category><![CDATA[StringUtil]]></category>
		<category><![CDATA[StyleManager]]></category>
		<category><![CDATA[trim]]></category>

		<guid isPermaLink="false">http://blog.minidx.com/?p=1401</guid>
		<description><![CDATA[接下来的例子演示了Flex中如何利用StyleManager.isColorName函数检查颜色名字是否合法。
让我们先来看一下Demo（可以右键View Source或点击这里察看源代码）：









下面是完整代码(或点击这里察看)：
Download: main.mxml&#60;?xml version=&#34;1.0&#34; encoding=&#34;utf-8&#34;?&#62;
&#60;!-- http://blog.flexexamples.com/2007/09/13/checking-whether-a-color-name-is-a-valid-color-in-flex-using-the-stylemanager-class/ --&#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.styles.StyleManager;
&#160; &#160; &#160; &#160; &#160; &#160; import mx.utils.StringUtil;
&#160;
&#160; &#160; &#160; &#160; &#160; &#160; private function button_click(evt:MouseEvent):void {
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; [...]]]></description>
		<wfw:commentRss>http://blog.minidx.com/2008/09/17/1401.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flex中创建一个简单的样式浏览器的例子</title>
		<link>http://blog.minidx.com/2008/09/14/1394.html</link>
		<comments>http://blog.minidx.com/2008/09/14/1394.html#comments</comments>
		<pubDate>Sun, 14 Sep 2008 01:19:39 +0000</pubDate>
		<dc:creator>Minidxer</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[CSSStyleDeclaration]]></category>
		<category><![CDATA[defaultFactory()]]></category>
		<category><![CDATA[getStyleDeclaration]]></category>
		<category><![CDATA[selectors]]></category>
		<category><![CDATA[StyleManager]]></category>

		<guid isPermaLink="false">http://blog.minidx.com/2008/09/14/1394.html</guid>
		<description><![CDATA[在前面的Flex中通过调用StyleManager类的静态属性selectors显示当前selectors列表的例子中 ，我们了解了Flex中如何通过调用StyleManager类的静态属性，selectors显示当前selectors列表。接下来的例子演示了我们如何在Flex中创建一个简单的样式浏览器。
让我们先来看一下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;
&#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.styles.StyleManager;
&#160; &#160; &#160; &#160; &#160; &#160; import mx.controls.ComboBox;
&#160;
&#160; &#160; &#160; &#160; &#160; &#160; private function init():void {
&#160; &#160; &#160; &#160; &#160; [...]]]></description>
		<wfw:commentRss>http://blog.minidx.com/2008/09/14/1394.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/29 queries in 0.322 seconds using disk
Object Caching 424/819 objects using disk

Served from: blog.minidx.com @ 2012-02-09 22:49:55 -->
