<?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>VHUGES &#187; Flex</title>
	<atom:link href="http://www.vhuges.com/tag/flex/feed" rel="self" type="application/rss+xml" />
	<link>http://www.vhuges.com</link>
	<description>We Are Hugo &#38; Jessie&#039;s Family</description>
	<lastBuildDate>Tue, 01 Jun 2010 07:10:39 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>获取 Flash Builder 4 Beta 序列号</title>
		<link>http://www.vhuges.com/get-flash-builder-4-beta-serial-number.html</link>
		<comments>http://www.vhuges.com/get-flash-builder-4-beta-serial-number.html#comments</comments>
		<pubDate>Fri, 17 Jul 2009 02:38:39 +0000</pubDate>
		<dc:creator>Hugo</dc:creator>
				<category><![CDATA[敲键动鼠]]></category>
		<category><![CDATA[Adobe]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://www.mjess.com/?p=942</guid>
		<description><![CDATA[[caption id="attachment_946" align="alignnone" width="300" caption="Adobe Flash Builder 4 Beta Extension Request"][/caption]

https://freeriatools.adobe.com/flashbuilder4beta/
在以上网址用Flex Builder 3的序列号申请即可。


注意：使用的Flex Builder 3 序列号必须是能用的（比如你现在正在使用的序列号），胡乱编的可没法获取哦～]]></description>
			<content:encoded><![CDATA[<div id="attachment_946" class="wp-caption alignnone" style="width: 310px"><a href="wp-content/uploads/2009/07/AdobeFlashBuilder4BetaExtensionRequest.png" target="_blank"><img class="size-medium wp-image-946  " title="Adobe Flash Builder 4 Beta Extension Request" src="wp-content/uploads/2009/07/AdobeFlashBuilder4BetaExtensionRequest-300x235.png" alt="Adobe Flash Builder 4 Beta Extension Request" width="300" height="235" /></a><p class="wp-caption-text">Adobe Flash Builder 4 Beta Extension Request</p></div>
<p><a href="https://freeriatools.adobe.com/flashbuilder4beta/">https://freeriatools.adobe.com/flashbuilder4beta/</a><br />
在以上网址用Flex Builder 3的序列号申请即可。</p>
<div class="mceTemp">
<p><span id="more-942"></span>注意：使用的Flex Builder 3 序列号必须是能用的（比如你现在正在使用的序列号），胡乱编的可没法获取哦～</div>
]]></content:encoded>
			<wfw:commentRss>http://www.vhuges.com/get-flash-builder-4-beta-serial-number.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flex 3 Full Screen Mode</title>
		<link>http://www.vhuges.com/flex-3-full-screen-mode.html</link>
		<comments>http://www.vhuges.com/flex-3-full-screen-mode.html#comments</comments>
		<pubDate>Mon, 15 Jun 2009 08:24:00 +0000</pubDate>
		<dc:creator>Hugo</dc:creator>
				<category><![CDATA[敲键动鼠]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://vhuges.com?p=12</guid>
		<description><![CDATA[如果你想让Flex应用全屏的话，可以这样做。

首先，当然是AS

&#60;mx:Script&#62;

<span class="readmore"><a href="http://www.vhuges.com/flex-3-full-screen-mode.html" title="Flex 3 Full Screen Mode">阅读全文——共5324字</a></span>]]></description>
			<content:encoded><![CDATA[<p>如果你想让Flex应用全屏的话，可以这样做。</p>
<p>首先，当然是AS</p>
<blockquote><p>&lt;mx:Script&gt;<br />
&lt;![CDATA[</p>
<p>private var fullScreenListenerFlag:Boolean = true;</p>
<p>private function onFullScreen(e:FullScreenEvent):void<br />
{<br />
if (e.fullScreen)<br />
fullScreenLabel.label = "Exit Full Screen Mode";<br />
else<br />
fullScreenLabel.label = "Full Screen Mode";<br />
}</p>
<p>private function fullScreen():void<br />
{<br />
if (stage &amp;&amp; fullScreenListenerFlag)<br />
{<br />
stage.addEventListener(FullScreenEvent.FULL_SCREEN, onFullScreen);<br />
fullScreenListenerFlag = false;<br />
}</p>
<p>if (stage.displayState == StageDisplayState.FULL_SCREEN)<br />
stage.displayState = StageDisplayState.NORMAL;<br />
else<br />
stage.displayState = StageDisplayState.FULL_SCREEN;<br />
}<br />
]]&gt;<br />
&lt;/mx:Script&gt;</p></blockquote>
<p><span id="more-12"></span>然后，修改html-template/index.template.html</p>
<blockquote><p>&lt;!&#8211; saved from url=(0014)about:internet &#8211;&gt;<br />
&lt;html lang=&#8221;en&#8221;&gt;</p>
<p>&lt;!&#8211;<br />
Smart developers always View Source.</p>
<p>This application was built using Adobe Flex, an open source framework<br />
for building rich Internet applications that get delivered via the<br />
Flash Player or to desktops via Adobe AIR.</p>
<p>Learn more about Flex at http://flex.org<br />
// &#8211;&gt;</p>
<p>&lt;head&gt;<br />
&lt;meta http-equiv=&#8221;Content-Type&#8221; content=&#8221;text/html; charset=utf-8&#8243; /&gt;</p>
<p>&lt;!&#8211;  BEGIN Browser History required section &#8211;&gt;<br />
&lt;link rel=&#8221;stylesheet&#8221; type=&#8221;text/css&#8221; href=&#8221;history/history.css&#8221; /&gt;<br />
&lt;!&#8211;  END Browser History required section &#8211;&gt;</p>
<p>&lt;title&gt;${title}&lt;/title&gt;<br />
&lt;script src=&#8221;AC_OETags.js&#8221; language=&#8221;javascript&#8221;&gt;&lt;/script&gt;</p>
<p>&lt;!&#8211;  BEGIN Browser History required section &#8211;&gt;<br />
&lt;script src=&#8221;history/history.js&#8221; language=&#8221;javascript&#8221;&gt;&lt;/script&gt;<br />
&lt;!&#8211;  END Browser History required section &#8211;&gt;</p>
<p>&lt;style&gt;<br />
body { margin: 0px; overflow:hidden }<br />
&lt;/style&gt;<br />
&lt;script language=&#8221;JavaScript&#8221; type=&#8221;text/javascript&#8221;&gt;<br />
&lt;!&#8211;<br />
// &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
// Globals<br />
// Major version of Flash required<br />
var requiredMajorVersion = ${version_major};<br />
// Minor version of Flash required<br />
var requiredMinorVersion = ${version_minor};<br />
// Minor version of Flash required<br />
var requiredRevision = ${version_revision};<br />
// &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
// &#8211;&gt;<br />
&lt;/script&gt;<br />
&lt;/head&gt;</p>
<p>&lt;body scroll=&#8221;no&#8221;&gt;<br />
&lt;script language=&#8221;JavaScript&#8221; type=&#8221;text/javascript&#8221;&gt;<br />
&lt;!&#8211;<br />
// Version check for the Flash Player that has the ability to start Player Product Install (6.0r65)<br />
var hasProductInstall = DetectFlashVer(6, 0, 65);</p>
<p>// Version check based upon the values defined in globals<br />
var hasRequestedVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);</p>
<p>if ( hasProductInstall &amp;&amp; !hasRequestedVersion ) {<br />
// DO NOT MODIFY THE FOLLOWING FOUR LINES<br />
// Location visited after installation is complete if installation is required<br />
var MMPlayerType = (isIE == true) ? &#8220;ActiveX&#8221; : &#8220;PlugIn&#8221;;<br />
var MMredirectURL = window.location;<br />
document.title = document.title.slice(0, 47) + &#8221; &#8211; Flash Player Installation&#8221;;<br />
var MMdoctitle = document.title;</p>
<p>AC_FL_RunContent(<br />
&#8220;src&#8221;, &#8220;playerProductInstall&#8221;,<br />
&#8220;FlashVars&#8221;, &#8220;MMredirectURL=&#8221;+MMredirectURL+&#8217;&amp;MMplayerType=&#8217;+MMPlayerType+&#8217;&amp;MMdoctitle=&#8217;+MMdoctitle+&#8221;",<br />
&#8220;width&#8221;, &#8220;${width}&#8221;,<br />
&#8220;height&#8221;, &#8220;${height}&#8221;,<br />
&#8220;align&#8221;, &#8220;middle&#8221;,<br />
&#8220;id&#8221;, &#8220;${application}&#8221;,<br />
&#8220;quality&#8221;, &#8220;high&#8221;,<br />
&#8220;bgcolor&#8221;, &#8220;${bgcolor}&#8221;,<br />
&#8220;name&#8221;, &#8220;${application}&#8221;,<br />
&#8220;allowScriptAccess&#8221;,&#8221;sameDomain&#8221;,<br />
&#8220;allowFullScreen&#8221;,&#8221;true&#8221;,//增加的行<br />
&#8220;type&#8221;, &#8220;application/x-shockwave-flash&#8221;,<br />
&#8220;pluginspage&#8221;, &#8220;http://www.adobe.com/go/getflashplayer&#8221;<br />
);<br />
} else if (hasRequestedVersion) {<br />
// if we&#8217;ve detected an acceptable version<br />
// embed the Flash Content SWF when all tests are passed<br />
AC_FL_RunContent(<br />
&#8220;src&#8221;, &#8220;${swf}&#8221;,<br />
&#8220;width&#8221;, &#8220;${width}&#8221;,<br />
&#8220;height&#8221;, &#8220;${height}&#8221;,<br />
&#8220;align&#8221;, &#8220;middle&#8221;,<br />
&#8220;id&#8221;, &#8220;${application}&#8221;,<br />
&#8220;quality&#8221;, &#8220;high&#8221;,<br />
&#8220;bgcolor&#8221;, &#8220;${bgcolor}&#8221;,<br />
&#8220;name&#8221;, &#8220;${application}&#8221;,<br />
&#8220;allowScriptAccess&#8221;,&#8221;sameDomain&#8221;,<br />
&#8220;allowFullScreen&#8221;,&#8221;true&#8221;,//增加的行<br />
&#8220;type&#8221;, &#8220;application/x-shockwave-flash&#8221;,<br />
&#8220;pluginspage&#8221;, &#8220;http://www.adobe.com/go/getflashplayer&#8221;<br />
);<br />
} else {  // flash is too old or we can&#8217;t detect the plugin<br />
var alternateContent = &#8216;Alternate HTML content should be placed here. &#8216;<br />
+ &#8216;This content requires the Adobe Flash Player. &#8216;<br />
+ &#8216;&lt;a href=http://www.adobe.com/go/getflash/&gt;Get Flash&lt;/a&gt;&#8217;;<br />
document.write(alternateContent);  // insert non-flash content<br />
}<br />
// &#8211;&gt;<br />
&lt;/script&gt;<br />
&lt;noscript&gt;<br />
&lt;object classid=&#8221;clsid:D27CDB6E-AE6D-11cf-96B8-444553540000&#8243;<br />
id=&#8221;${application}&#8221; width=&#8221;${width}&#8221; height=&#8221;${height}&#8221;<br />
codebase=&#8221;http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab&#8221;&gt;<br />
&lt;param name=&#8221;movie&#8221; value=&#8221;${swf}.swf&#8221; /&gt;<br />
&lt;param name=&#8221;quality&#8221; value=&#8221;high&#8221; /&gt;<br />
&lt;param name=&#8221;bgcolor&#8221; value=&#8221;${bgcolor}&#8221; /&gt;<br />
&lt;param name=&#8221;allowScriptAccess&#8221; value=&#8221;sameDomain&#8221; /&gt;<br />
&lt;param name=&#8221;allowFullScreen&#8221; value=&#8221;true&#8221; /&gt;<br />
&lt;embed src=&#8221;${swf}.swf&#8221; quality=&#8221;high&#8221; bgcolor=&#8221;${bgcolor}&#8221;<br />
width=&#8221;${width}&#8221; height=&#8221;${height}&#8221; name=&#8221;${application}&#8221; align=&#8221;middle&#8221;<br />
play=&#8221;true&#8221;<br />
loop=&#8221;false&#8221;<br />
quality=&#8221;high&#8221;<br />
allowScriptAccess=&#8221;sameDomain&#8221;<br />
allowFullScreen=&#8221;true&#8221;<br />
type=&#8221;application/x-shockwave-flash&#8221;<br />
pluginspage=&#8221;http://www.adobe.com/go/getflashplayer&#8221;&gt;<br />
&lt;/embed&gt;<br />
&lt;/object&gt;<br />
&lt;/noscript&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</p></blockquote>
<p><img style="margin:0px 2px -4px 0px" src="images/download.gif" alt="下载文件" /> <a href="attachments/month_0906/i2009615162232.rar" target="_blank">点击下载修改好的index.template.html</a></p>
<p>最后么，在组件上加上全屏控制就OK了。完整mxml代码：</p>
<blockquote><p>&lt;?xml version=&#8221;1.0&#8243; encoding=&#8221;utf-8&#8243;?&gt;<br />
&lt;mx:Application xmlns:mx=&#8221;http://www.adobe.com/2006/mxml&#8221; layout=&#8221;absolute&#8221;&gt;</p>
<p>&lt;mx:Script&gt;<br />
&lt;![CDATA[</p>
<p>private var fullScreenListenerFlag:Boolean = true;</p>
<p>private function onFullScreen(e:FullScreenEvent):void<br />
{<br />
if (e.fullScreen)<br />
fullScreenLabel.label = "Exit Full Screen Mode";<br />
else<br />
fullScreenLabel.label = "Full Screen Mode";<br />
}</p>
<p>private function fullScreen():void<br />
{<br />
if (stage &amp;&amp; fullScreenListenerFlag)<br />
{<br />
stage.addEventListener(FullScreenEvent.FULL_SCREEN, onFullScreen);<br />
fullScreenListenerFlag = false;<br />
}</p>
<p>if (stage.displayState == StageDisplayState.FULL_SCREEN)<br />
stage.displayState = StageDisplayState.NORMAL;<br />
else<br />
stage.displayState = StageDisplayState.FULL_SCREEN;<br />
}<br />
]]&gt;<br />
&lt;/mx:Script&gt;</p>
<p>&lt;mx:Canvas width=&#8221;100%&#8221; height=&#8221;100%&#8221;&gt;</p>
<p>&lt;mx:Button id=&#8221;fullScreenLabel&#8221; label=&#8221;Full Screen Mode&#8221;<br />
click=&#8221;fullScreen()&#8221; horizontalCenter=&#8221;0&#8243; verticalCenter=&#8221;0&#8243;/&gt;</p>
<p>&lt;/mx:Canvas&gt;</p>
<p>&lt;/mx:Application&gt;</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.vhuges.com/flex-3-full-screen-mode.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>在Flex中使用嵌入字体</title>
		<link>http://www.vhuges.com/the-use-of-embedded-fonts-in-flex.html</link>
		<comments>http://www.vhuges.com/the-use-of-embedded-fonts-in-flex.html#comments</comments>
		<pubDate>Fri, 05 Jun 2009 07:07:00 +0000</pubDate>
		<dc:creator>Hugo</dc:creator>
				<category><![CDATA[敲键动鼠]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://vhuges.com?p=14</guid>
		<description><![CDATA[在处理文本时，为了美观，有时会给文本选择一些特殊的字体，使得文本不那么单调，这就会引发一个问题：由于每个用户的系统有差异，当对方机器上没有安装你指定的字体时，Flash Player会自动选择一个合适的字体，无法保证文字的外观在控制之中，很可能会走样。如何避免出现这样的情况？解决方法有两种：使用设备字体和使用嵌入字体。设备字体的特性是用户机器上的所有字体都最大可能地模拟其外观，保持文本的样式不会出现较大变化；嵌入字体是指将字体文件编译进SWF文件中或者运行时加载到SWF文件中，供SWF文件使用。这样不管用户是否安装了该字体，都可以正常显示。使用嵌入字体的好处还有：文本具有抗锯齿，边缘更平滑，文本可以设置透明度，文本还可以旋转。当然也有缺点，首先便是增加了程序的文件大小，而且嵌入字体只支持TrueType（微软和Apple公司共同研制的字型标准）类型，当字体大小小于10时，文本会很难辨认。一般情况下，使用设备字体就足够了，Flash Player支持三种设备字体：_sans，_serif，_typewriter。所以在定义样式时，为保证效果，可以这样： Application{&#160;&#160;&#160;&#160;fontSize:12; &#160;&#160;&#160;&#160;fontFamily: Arial, &#34;_sans&#34;;}当用户的机器上没有Arial字体，Flash Player自动使用“_sans”设备字体。和系统字体的使用不同，设备字体必须用引号。有些情况要求必须使用嵌入字体，例如使用了动画效果中的部分效果如Fade（淡入淡出效果）、Rotate（旋转效果），Dissolve（溶解效果）。可以在样式在定义嵌入字体：&#60;mx:Style&#62;&#160;&#160;@font-face {&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; src:local(&#34;Arial&#34;);&#160;&#160;//嵌入本机字体&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; fontFamily: myFont;&#160;&#160;//字体的别名&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; fontStyle:&#160;&#160;normal;&#160;&#160; //默认normal，正常，可选值：italic &#124; oblique &#124; normal&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; fontWeight: normal;&#160;&#160; //默认normal，正常，可选值：bold &#124; heavy &#124; normal&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; flashType: true;&#160;&#160;&#160;&#160;//默认true，添加文本的额外信息，使得文本抗锯齿，平滑显示&#160;&#160; }&#160;&#160; Application{&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;fontSize:12;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;fontFamily:myFont;&#160;&#160;//指定字体，使用嵌入字体的别名&#160;&#160;} &#60;/mx:Style&#62;在嵌入一些双字节型的字体，比如中文字体，日文字体时，字体信息复杂，字体文件大，为了减小程序的文件大小，可以对嵌入字体的字符范围进行限制，这样，没有使用的字符信息不会被包含在文件中。例如上面使用了英文字体，只能使用英文范围内的字符，如果使用了中文，将无法显示。在font-face中使用unicodeRange来指定字符范围，例如：@font-face {&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;src:local(&#34;Arial&#34;);&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;fontFamily: myFont;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;flashType: true;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;unicodeRange:&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; U+0041-U+005A,&#160;&#160;/* 大写字母 [A..Z] */&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; U+0061-U+007A,&#160;&#160;/* 小写字母 a-z */&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; U+0030-U+0039,&#160;&#160;/* 数字 [0..9] */&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; U+002E-U+002E;&#160;&#160;/* 点 [.] */&#160;&#160;&#160;&#160; }必须使用字符的字符编码来定义字符范围，这里的字符编码采用Unicode（统一字符编码）标准。定义字符范围的另一种做法是在flex-config.xml中添加相关信息。用文本编辑器打开位于Flex Builder 2安装目录下的Flex SDK 2/frameworks/flex-config.xml文件，找到&#60;fonts&#62;标签。 &#60;fonts&#62;&#160;&#160;&#160;&#160;&#60;languages&#62;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#60;language-range&#62;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#60;lang&#62;englishRange&#60;/lang&#62;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#60;range&#62;U+0020-U+007E&#60;/range&#62;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#60;/language-range&#62;&#60;/fonts&#62;按照以上格式添加字体的字符范围，在&#60;lang&#62;标签中设定标签的名称。这样，在程序中可以直接使用该名称来定义字符范围。例如：@font-face {&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;src:local(&#34;Arial&#34;);&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;fontFamily: myFont;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;flashType: true;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;unicodeRange:” englishRange”&#160;&#160;//等同于U+0020-U+007E }在flex-config.xml的同目录下还有一个flash-unicode-table.xml文件，其中列出了绝大部分语言的Unicode的字符范围，供开发者参考，其中也有中文的资料：&#60;language-range&#62;&#160;&#160;&#60;lang&#62;Chinese (All)&#60;/lang&#62; &#60;range&#62;U+3000-U+303F,U+3105-U+312C,U+31A0-U+31BF,U+4E00-U+9FAF,U+FF01-U+FF60,U+F900-U+FAFF,U+201C-U+201D,U+2018-U+2019,U+2014,U+2026,U+FFE5,U+00B7&#60;/range&#62; &#60;/language-range&#62; 嵌入字体的另一种方式是把字体放在外部的swf中，然后加载swf文件。例如：@font-face {&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;src:url(&#34;./Arial.swf&#34;);&#160;&#160;//指定文件地址&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;fontFamily: “myFont”;&#160;&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160;&#160;}这里不能使用flashType属性，该属性的值由SWF文件决定，无法再更改。在使用该字体之前，必须保证SWF文件已经加载完毕。要在程序中使用该字体：@font-face {&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;src:url(&#34;./Arial.swf&#34;); &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;fontFamily: “myFont”;&#160;&#160;&#160;&#160;&#160;&#160; }.PlainText {&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;fontFamily: &#34;myFont &#34;;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;fontSize: 12;&#160;&#160;}&#160;&#160;.BoldText {&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;fontFamily: &#34;myFont &#34;;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;fontSize: 12;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;fontWeight: bold;}注意：在使用嵌入字体时，即使是同一字体，它的不同样式比如斜体和粗体要单独进行定义，互相独立，不能混在一起。使用脚本也可以嵌入字体：[Embed(mimeType=&#39;application/x-font&#39;, source=&#39;../assets/Arial.TTF&#39;, fontName=&#39;myArialFont&#39;)]private var myFont:Class; 定义样式：.PlainText {&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;fontFamily: myArialFont;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;fontSize: 12; }如果嵌入的字体很大，生成的程序文件也会很大，导致加载时要花较长时间，要避免这个问题，可以把字体文件打包成SWF文件，然后加载到程序中。下次再说这个问题吧

]]></description>
			<content:encoded><![CDATA[<p>在处理文本时，为了美观，有时会给文本选择一些特殊的字体，使得文本不那么单调，这就会引发一个问题：由于每个用户的系统有差异，当对方机器上没有安装你指定的字体时，Flash Player会自动选择一个合适的字体，无法保证文字的外观在控制之中，很可能会走样。如何避免出现这样的情况？<br/><br/>解决方法有两种：使用设备字体和使用嵌入字体。设备字体的特性是用户机器上的所有字体都最大可能地模拟其外观，保持文本的样式不会出现较大变化；嵌入字体是指将字体文件编译进SWF文件中或者运行时加载到SWF文件中，供SWF文件使用。这样不管用户是否安装了该字体，都可以正常显示。使用嵌入字体的好处还有：文本具有抗锯齿，边缘更平滑，文本可以设置透明度，文本还可以旋转。当然也有缺点，首先便是增加了程序的文件大小，而且嵌入字体只支持TrueType（微软和Apple公司共同研制的字型标准）类型，当字体大小小于10时，文本会很难辨认。<br/><br/>一般情况下，使用设备字体就足够了，Flash Player支持三种设备字体：_sans，_serif，_typewriter。所以在定义样式时，为保证效果，可以这样：<br/><br/> Application{<br/>&nbsp;&nbsp;&nbsp;&nbsp;fontSize:12; <br/>&nbsp;&nbsp;&nbsp;&nbsp;fontFamily: Arial, &#34;_sans&#34;;<br/>}<br/><br/>当用户的机器上没有Arial字体，Flash Player自动使用“_sans”设备字体。和系统字体的使用不同，设备字体必须用引号。<br/><br/>有些情况要求必须使用嵌入字体，例如使用了动画效果中的部分效果如Fade（淡入淡出效果）、Rotate（旋转效果），Dissolve（溶解效果）。可以在样式在定义嵌入字体：<br/><br/>&lt;mx:Style&gt;<br/>&nbsp;&nbsp;@font-face {<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; src:local(&#34;Arial&#34;);&nbsp;&nbsp;//嵌入本机字体<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fontFamily: myFont;&nbsp;&nbsp;//字体的别名<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fontStyle:&nbsp;&nbsp;normal;&nbsp;&nbsp; //默认normal，正常，可选值：italic | oblique | normal<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fontWeight: normal;&nbsp;&nbsp; //默认normal，正常，可选值：bold | heavy | normal<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; flashType: true;&nbsp;&nbsp;&nbsp;&nbsp;//默认true，添加文本的额外信息，使得文本抗锯齿，平滑显示<br/>&nbsp;&nbsp; }<br/>&nbsp;&nbsp; Application{<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fontSize:12;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fontFamily:myFont;&nbsp;&nbsp;//指定字体，使用嵌入字体的别名<br/>&nbsp;&nbsp;}<br/> &lt;/mx:Style&gt;<br/><br/>在嵌入一些双字节型的字体，比如中文字体，日文字体时，字体信息复杂，字体文件大，为了减小程序的文件大小，可以对嵌入字体的字符范围进行限制，这样，没有使用的字符信息不会被包含在文件中。例如上面使用了英文字体，只能使用英文范围内的字符，如果使用了中文，将无法显示。<br/>在font-face中使用unicodeRange来指定字符范围，例如：<br/>@font-face {<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;src:local(&#34;Arial&#34;);<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fontFamily: myFont;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;flashType: true;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;unicodeRange:<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; U+0041-U+005A,&nbsp;&nbsp;/* 大写字母 [A..Z] */<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; U+0061-U+007A,&nbsp;&nbsp;/* 小写字母 a-z */<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; U+0030-U+0039,&nbsp;&nbsp;/* 数字 [0..9] */<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; U+002E-U+002E;&nbsp;&nbsp;/* 点 [.] */<br/>&nbsp;&nbsp;&nbsp;&nbsp; }<br/>必须使用字符的字符编码来定义字符范围，这里的字符编码采用Unicode（统一字符编码）标准。<br/>定义字符范围的另一种做法是在flex-config.xml中添加相关信息。用文本编辑器打开位于Flex Builder 2安装目录下的Flex SDK 2/frameworks/flex-config.xml文件，找到&lt;fonts&gt;标签。<br/> &lt;fonts&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;languages&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;language-range&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;lang&gt;englishRange&lt;/lang&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;range&gt;U+0020-U+007E&lt;/range&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/language-range&gt;<br/>&lt;/fonts&gt;<br/><br/>按照以上格式添加字体的字符范围，在&lt;lang&gt;标签中设定标签的名称。这样，在程序中可以直接使用该名称来定义字符范围。例如：<br/>@font-face {<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;src:local(&#34;Arial&#34;);<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fontFamily: myFont;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;flashType: true;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;unicodeRange:” englishRange”&nbsp;&nbsp;//等同于U+0020-U+007E<br/> }<br/>在flex-config.xml的同目录下还有一个flash-unicode-table.xml文件，其中列出了绝大部分语言的Unicode的字符范围，供开发者参考，其中也有中文的资料：<br/>&lt;language-range&gt;<br/>&nbsp;&nbsp;&lt;lang&gt;Chinese (All)&lt;/lang&gt;<br/> &lt;range&gt;U+3000-U+303F,U+3105-U+312C,U+31A0-U+31BF,U+4E00-U+9FAF,U+FF01-U+FF60,U+F900-U+FAFF,U+201C-U+201D,U+2018-U+2019,U+2014,U+2026,U+FFE5,U+00B7&lt;/range&gt;<br/> &lt;/language-range&gt;<br/> <br/>嵌入字体的另一种方式是把字体放在外部的swf中，然后加载swf文件。例如：<br/>@font-face {<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;src:url(&#34;./Arial.swf&#34;);&nbsp;&nbsp;//指定文件地址<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fontFamily: “myFont”;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br/>&nbsp;&nbsp;&nbsp;&nbsp;}<br/>这里不能使用flashType属性，该属性的值由SWF文件决定，无法再更改。在使用该字体之前，必须保证SWF文件已经加载完毕。<br/><br/>要在程序中使用该字体：<br/>@font-face {<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;src:url(&#34;./Arial.swf&#34;); <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fontFamily: “myFont”;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br/>}<br/>.PlainText {<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fontFamily: &#34;myFont &#34;;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fontSize: 12;<br/>&nbsp;&nbsp;}<br/>&nbsp;&nbsp;.BoldText {<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fontFamily: &#34;myFont &#34;;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fontSize: 12;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fontWeight: bold;<br/>}<br/><br/>注意：在使用嵌入字体时，即使是同一字体，它的不同样式比如斜体和粗体要单独进行定义，互相独立，不能混在一起。<br/><br/>使用脚本也可以嵌入字体：<br/><br/>[Embed(mimeType=&#39;application/x-font&#39;, source=&#39;../assets/Arial.TTF&#39;, fontName=&#39;myArialFont&#39;)]<br/>private var myFont:Class; <br/><br/>定义样式：<br/><br/>.PlainText {<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fontFamily: myArialFont;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fontSize: 12;<br/> }<br/><br/>如果嵌入的字体很大，生成的程序文件也会很大，导致加载时要花较长时间，要避免这个问题，可以把字体文件打包成SWF文件，然后加载到程序中。下次再说这个问题吧</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vhuges.com/the-use-of-embedded-fonts-in-flex.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flex开发常用知识</title>
		<link>http://www.vhuges.com/common-knowledge-flex-developer.html</link>
		<comments>http://www.vhuges.com/common-knowledge-flex-developer.html#comments</comments>
		<pubDate>Mon, 25 May 2009 04:36:00 +0000</pubDate>
		<dc:creator>Hugo</dc:creator>
				<category><![CDATA[敲键动鼠]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://vhuges.com?p=17</guid>
		<description><![CDATA[【改变输出swf的尺度,背景颜色或帧频】在&#34;Navigator&#34;窗框里右键你的项目&#62;选中&#34;Properties&#34;&#62;选中&#34;ActionScript Compiler&#34;&#62;在&#34;Additional compiler arguments&#34;里输入你所需要的命令如想改变背景颜色,请输入: -default-background-color 0xffffff【鼠标坐标】mouseX mouseY【检查变量类型并返回布尔值】is【检查变量类型并返回类型】typeof【检查对象类型并返回该对象】as【是数字但不是有效数字问题】var quantity:Number = 15 &#8211; &#34;rabbits&#34;;trace(typeof quantity); //显示: &#34;number&#34; , 但它是NaN (not a number)trace(quantity is Number); //truetrace(quantity != NaN); //false//使用isNaN()函数检测:isNaN(quantity); //true//检测变量是否内含有效数字:!isNaN(quantity); //false【取消默认的严格编译模式】在&#34;Navigator&#34;窗框里右键你的项目&#62;选中&#34;Properties&#34;&#62;选中&#34;ActionScript Compiler&#34;&#62;取消&#34;Enabel compile-time type checking&#34;选项【基元数据类型和复杂数据类型好比&#34;值类型&#34;和&#34;引用类型&#34;】基元数据类型类似按值传递:var intOne:int = 1;var intTwo:int = 1;trace(intOne == intTwo); //true【复杂数据类型类似按引用传递】var arrayOne:Array = new Array(&#34;a&#34;, &#34;b&#34;);var arrayTwo:Array = arrayOne;trace(arrayOne == arrayTwo); //true//&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;var arrayOne:Array = new Array(&#34;a&#34;, &#34;b&#34;);var arrayTwo:Array = new Array(&#34;a&#34;, &#34;b&#34;);trace(arrayOne == arrayTwo); //false【优化逻辑AND(&#38;&#38;)和OR(&#124;&#124;)的小知识】对于逻辑And(&#38;&#38;):&#160;&#160;&#160;&#160; 除非条件表达式的前半部分为真,否则,ActionScript不会再去求算逻辑AND运算符的后半部.如果前半部为假,整个条件表达式一定为假,所以再去求算后半部就没效率了.对于逻辑OR(&#124;&#124;):&#160;&#160;&#160;&#160; 除非条件表达式前半部为假,否则,ActionScript不会再去求算逻辑OR运算符的后半部,如果前半部为真,整个条件表达式一定为真.总结:使用逻辑AND(&#38;&#38;)时,把结果最可能为false的表达式放到前面;使用逻辑OR(&#124;&#124;)时,把结果最可能为true的表达式放到前面.【Timer类注意事项】不要认为Timer可以极其准确;使用Timer时间间隔不要低于10毫秒.【private,protected,internal,public访问权限】private:只能在类本身内部访问,按惯例,命名私有成员时以下划线&#34;_&#34;开头;protected:可以由类本身或任何子类访问.但这是以实例为基础的.换言之,类实例可以访问自己的保护成员或者父类的保护成员,但不能访问相同类的其它实例的保护成员,按惯例,命名保护成员时以下划线&#34;_&#34;开头;internal:可以由类本身或者相同包内的任何类访问;public:可以在类内部访问,也可以由类实例访问,或者声明为static时,可以直接从类访问.【一个函数具有未知个数的参数,用arguments对象或&#34;&#8230;(rest)&#34;符号访问它的参数】注意:使用&#34;&#8230;(rest)&#34;参数会使 arguments 对象不可用;private funciton average():void{&#160;&#160;&#160;&#160; trace(arguments.length); //输出参数的个数&#160;&#160;&#160;&#160; // arguments的类型是:object,但可以像访问数组一样去访问它&#160;&#160;&#160;&#160; trace(arguments[1]); //输出第二个参数}private function average(&#8230;argu):void{&#160;&#160;&#160;&#160; trace(argu[1]); //输出第二个参数,argu参数名是自定义的.}【错误处理try,catch,finally】private function tryError():void{&#160;&#160;&#160;&#160; try {&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; trace(&#34;测试开始-try&#34;);&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; throwError();&#160;&#160;&#160;&#160; }catch(errObject:Error) {&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; trace(&#34;错误信息:&#34; + errObject.message);&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; trace(&#34;测试结束-catch&#34;);&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; return;&#160;&#160;&#160;&#160; }finally{&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; trace(&#34;虽然catch里已经有return方法,但位于return方法后面的finally里的代码依然会被执行.其实无论return方法是在try里,还是catch里,finally里的代码始终会被执行&#34;);&#160;&#160;&#160;&#160; }&#160;&#160;&#160;&#160; trace(&#34;前面已经有return了,此处是不会再执行的.除非没有抛出错误,以使catch里的代码没有被执行&#34;);}private function throwError():void{&#160;&#160;&#160;&#160; throw new Error(&#34;抛出错误&#34;);}【for&#8230;in与for each&#8230;in的区别】与for&#8230;in循环不同的是,for each&#8230;in循环中的迭代变量包含属性所保存的值,而不包含属性的名称(或主键,索引).【命名包路径的小技巧】&#160;&#160;&#160;&#160; 使用相应于拥有者和相关项目的包名称会比较好.按惯例来讲,包名称的开头应该是逆向的网址名称.例如,如果Example Corp(examplecorp.com)写了一些ActionScript3.0类,就会把所有类放在com.examplecorp包内(或者 com.examplecorp的子包内).如此一来,如果英国有另一家Example Corp(examplecorp.co.uk)也写了一些ActionScript3.0类,只要使用包uk.co.examplecorp,就可确保 唯一性.&#160;&#160;&#160;&#160; 当类属于特定应用程序的一部分时,就应该放在该应用程序特定的子包内.例如,Example Corp可能有个应用程序名叫WidgetStore.如果WidgetStore应用程序使用一个名为ApplicationManager的类,则此 类就应该放在com.examplecorp.widgetstore包内,或者位于该包的子包内.&#160;&#160;&#160;&#160; 按惯例来说,包名称的开头是小写字母.【隐式的取出方法(getter)和设定方法(setter)】public function get count():uint {&#160;&#160;&#160;&#160; return _count;}public function set count(value:uint):uint {&#160;&#160;&#160;&#160; if(value &#60; 100){&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; _count = value;&#160;&#160;&#160;&#160; }else {&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; throw Error();&#160;&#160;&#160;&#160; }}【确保类是绝不会有子类,使用final】final public class Example{}【super关键字的使用】super(); //父类的构造函数,只能在类实例构造函数内部使用super.propertyName; //调用父类的属性,属性需要声明为public或protectedsuper.methodName(); //调用父类的方法,方法需要声明为public或protected【建立常数,使用关键字const而不是var】static public const EXAMPLE:String = &#34;example&#34;;【检测播放器版本】flash.system.Capabilities.version对于8.5版以前的任何Flash Player版本,这种方法都不适用.【判断客户端系统】flash.system.Capabilities.os【检测播放器类型】flash.system.Capabilities.playerType可能的值有:&#34;StandAlone&#34;，用于独立的 Flash Player&#34;External&#34;，用于外部的 Flash Player 或处于测试模式下&#34;PlugIn&#34;，用于 Flash Player 浏览器插件&#34;ActiveX&#34;，用于 Microsoft Internet Explorer 使用的 Flash Player ActiveX 控件【检测系统语言】flash.system.Capabilities.language【判断用户是否启用了IME(输入法编辑器)】flash.system.IME.enabled【检测屏幕的分辨率】flash.system.Capabilities.screenResolutionXflash.system.Capabilities.screenResolutionY【把弹出窗口居中

]]></description>
			<content:encoded><![CDATA[<p>【改变输出swf的尺度,背景颜色或帧频】<br/>在&#34;Navigator&#34;窗框里右键你的项目&gt;选中&#34;Properties&#34;&gt;选中&#34;ActionScript Compiler&#34;&gt;在&#34;Additional compiler arguments&#34;里输入你所需要的命令<br/>如想改变背景颜色,请输入: -default-background-color 0xffffff<br/><br/>【鼠标坐标】<br/>mouseX mouseY<br/><br/>【检查变量类型并返回布尔值】<br/>is<br/><br/>【检查变量类型并返回类型】<br/>typeof<br/><br/>【检查对象类型并返回该对象】<br/>as<br/><br/>【是数字但不是有效数字问题】<br/>var quantity:Number = 15 &#8211; &#34;rabbits&#34;;<br/>trace(typeof quantity); //显示: &#34;number&#34; , 但它是NaN (not a number)<br/>trace(quantity is Number); //true<br/>trace(quantity != NaN); //false<br/>//使用isNaN()函数检测:<br/>isNaN(quantity); //true<br/>//检测变量是否内含有效数字:<br/>!isNaN(quantity); //false<br/><br/>【取消默认的严格编译模式】<br/>在&#34;Navigator&#34;窗框里右键你的项目&gt;选中&#34;Properties&#34;&gt;选中&#34;ActionScript Compiler&#34;&gt;取消&#34;Enabel compile-time type checking&#34;选项<br/><br/>【基元数据类型和复杂数据类型好比&#34;值类型&#34;和&#34;引用类型&#34;】<br/>基元数据类型类似按值传递:<br/>var intOne:int = 1;<br/>var intTwo:int = 1;<br/>trace(intOne == intTwo); //true<br/><br/>【复杂数据类型类似按引用传递】<br/>var arrayOne:Array = new Array(&#34;a&#34;, &#34;b&#34;);<br/>var arrayTwo:Array = arrayOne;<br/>trace(arrayOne == arrayTwo); //true<br/>//&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br/>var arrayOne:Array = new Array(&#34;a&#34;, &#34;b&#34;);<br/>var arrayTwo:Array = new Array(&#34;a&#34;, &#34;b&#34;);<br/>trace(arrayOne == arrayTwo); //false<br/><br/>【优化逻辑AND(&amp;&amp;)和OR(||)的小知识】<br/>对于逻辑And(&amp;&amp;):<br/>&nbsp;&nbsp;&nbsp;&nbsp; 除非条件表达式的前半部分为真,否则,ActionScript不会再去求算逻辑AND运算符的后半部.如果前半部为假,整个条件表达式一定为假,所以再去求算后半部就没效率了.<br/>对于逻辑OR(||):<br/>&nbsp;&nbsp;&nbsp;&nbsp; 除非条件表达式前半部为假,否则,ActionScript不会再去求算逻辑OR运算符的后半部,如果前半部为真,整个条件表达式一定为真.<br/>总结:使用逻辑AND(&amp;&amp;)时,把结果最可能为false的表达式放到前面;使用逻辑OR(||)时,把结果最可能为true的表达式放到前面.<br/><br/>【Timer类注意事项】<br/>不要认为Timer可以极其准确;使用Timer时间间隔不要低于10毫秒.<br/><br/>【private,protected,internal,public访问权限】<br/>private:只能在类本身内部访问,按惯例,命名私有成员时以下划线&#34;_&#34;开头;<br/>protected:可以由类本身或任何子类访问.但这是以实例为基础的.换言之,类实例可以访问自己的保护成员或者父类的保护成员,但不能访问相同类的其它实例的保护成员,按惯例,命名保护成员时以下划线&#34;_&#34;开头;<br/>internal:可以由类本身或者相同包内的任何类访问;<br/>public:可以在类内部访问,也可以由类实例访问,或者声明为static时,可以直接从类访问.<br/><br/>【一个函数具有未知个数的参数,用arguments对象或&#34;&#8230;(rest)&#34;符号访问它的参数】<br/>注意:使用&#34;&#8230;(rest)&#34;参数会使 arguments 对象不可用;<br/>private funciton average():void{<br/>&nbsp;&nbsp;&nbsp;&nbsp; trace(arguments.length); //输出参数的个数<br/>&nbsp;&nbsp;&nbsp;&nbsp; // arguments的类型是:object,但可以像访问数组一样去访问它<br/>&nbsp;&nbsp;&nbsp;&nbsp; trace(arguments[1]); //输出第二个参数<br/>}<br/>private function average(&#8230;argu):void{<br/>&nbsp;&nbsp;&nbsp;&nbsp; trace(argu[1]); //输出第二个参数,argu参数名是自定义的.<br/>}<br/><br/>【错误处理try,catch,finally】<br/>private function tryError():void{<br/>&nbsp;&nbsp;&nbsp;&nbsp; try {<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; trace(&#34;测试开始-try&#34;);<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; throwError();<br/>&nbsp;&nbsp;&nbsp;&nbsp; }catch(errObject:Error) {<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; trace(&#34;错误信息:&#34; + errObject.message);<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; trace(&#34;测试结束-catch&#34;);<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return;<br/>&nbsp;&nbsp;&nbsp;&nbsp; }finally{<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; trace(&#34;虽然catch里已经有return方法,但位于return方法后面的finally里的代码依然会被执行.其实无论return方法是在try里,还是catch里,finally里的代码始终会被执行&#34;);<br/>&nbsp;&nbsp;&nbsp;&nbsp; }<br/>&nbsp;&nbsp;&nbsp;&nbsp; trace(&#34;前面已经有return了,此处是不会再执行的.除非没有抛出错误,以使catch里的代码没有被执行&#34;);<br/>}<br/>private function throwError():void{<br/>&nbsp;&nbsp;&nbsp;&nbsp; throw new Error(&#34;抛出错误&#34;);<br/>}<br/><br/>【for&#8230;in与for each&#8230;in的区别】<br/>与for&#8230;in循环不同的是,for each&#8230;in循环中的迭代变量包含属性所保存的值,而不包含属性的名称(或主键,索引).<br/><br/>【命名包路径的小技巧】<br/>&nbsp;&nbsp;&nbsp;&nbsp; 使用相应于拥有者和相关项目的包名称会比较好.按惯例来讲,包名称的开头应该是逆向的网址名称.例如,如果Example Corp(examplecorp.com)写了一些ActionScript3.0类,就会把所有类放在com.examplecorp包内(或者 com.examplecorp的子包内).如此一来,如果英国有另一家Example Corp(examplecorp.co.uk)也写了一些ActionScript3.0类,只要使用包uk.co.examplecorp,就可确保 唯一性.<br/>&nbsp;&nbsp;&nbsp;&nbsp; 当类属于特定应用程序的一部分时,就应该放在该应用程序特定的子包内.例如,Example Corp可能有个应用程序名叫WidgetStore.如果WidgetStore应用程序使用一个名为ApplicationManager的类,则此 类就应该放在com.examplecorp.widgetstore包内,或者位于该包的子包内.<br/>&nbsp;&nbsp;&nbsp;&nbsp; 按惯例来说,包名称的开头是小写字母.<br/><br/>【隐式的取出方法(getter)和设定方法(setter)】<br/>public function get count():uint {<br/>&nbsp;&nbsp;&nbsp;&nbsp; return _count;<br/>}<br/>public function set count(value:uint):uint {<br/>&nbsp;&nbsp;&nbsp;&nbsp; if(value &lt; 100){<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; _count = value;<br/>&nbsp;&nbsp;&nbsp;&nbsp; }else {<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; throw Error();<br/>&nbsp;&nbsp;&nbsp;&nbsp; }<br/>}<br/><br/>【确保类是绝不会有子类,使用final】<br/>final public class Example{}<br/><br/>【super关键字的使用】<br/>super(); //父类的构造函数,只能在类实例构造函数内部使用<br/>super.propertyName; //调用父类的属性,属性需要声明为public或protected<br/>super.methodName(); //调用父类的方法,方法需要声明为public或protected<br/><br/>【建立常数,使用关键字const而不是var】<br/>static public const EXAMPLE:String = &#34;example&#34;;<br/><br/>【检测播放器版本】<br/>flash.system.Capabilities.version<br/>对于8.5版以前的任何Flash Player版本,这种方法都不适用.<br/><br/>【判断客户端系统】<br/>flash.system.Capabilities.os<br/><br/>【检测播放器类型】<br/>flash.system.Capabilities.playerType<br/>可能的值有:<br/>&#34;StandAlone&#34;，用于独立的 Flash Player<br/>&#34;External&#34;，用于外部的 Flash Player 或处于测试模式下<br/>&#34;PlugIn&#34;，用于 Flash Player 浏览器插件<br/>&#34;ActiveX&#34;，用于 Microsoft Internet Explorer 使用的 Flash Player ActiveX 控件<br/><br/>【检测系统语言】<br/>flash.system.Capabilities.language<br/><br/>【判断用户是否启用了IME(输入法编辑器)】<br/>flash.system.IME.enabled<br/><br/>【检测屏幕的分辨率】<br/>flash.system.Capabilities.screenResolutionX<br/>flash.system.Capabilities.screenResolutionY<br/><br/<br />
>【把弹出窗口居中</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vhuges.com/common-knowledge-flex-developer.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to change ViewStack from we custom components</title>
		<link>http://www.vhuges.com/how-to-change-viewstack-from-we-custom-components.html</link>
		<comments>http://www.vhuges.com/how-to-change-viewstack-from-we-custom-components.html#comments</comments>
		<pubDate>Sat, 09 May 2009 09:18:00 +0000</pubDate>
		<dc:creator>Hugo</dc:creator>
				<category><![CDATA[敲键动鼠]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://vhuges.com?p=19</guid>
		<description><![CDATA[ViewStack Code：==================……&#60;mx:ViewStack&#160;&#160;id=&#34;viewstack1&#34; width=&#34;100%&#34; height=&#34;100%&#34;&#62; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#60;custom:No1View id=&#34;No1View&#34;/&#62; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#60;custom:No2View id=&#34;No2View&#34;/&#62; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#60;custom:No3View id=&#34;No3View&#34;/&#62; &#60;/mx:ViewStack&#62; ……Custom Component Code：==================……&#60;mx:Canvas xmlns:mx=&#34;http://www.adobe.com/2006/mxml&#34;&#62;&#160;&#160;&#160;&#160;&#60;mx:Button label=&#34;Show Next ViewStack&#34; click=&#34;this.parentApplication.viewStack1.sel&#101;ctChild&#160;&#160;= this.parent.viewStack1.No1View;&#34;/&#62;&#160;&#160;&#160;&#160;&#60;!&#8211;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;o&#114; try this code:&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; parentApplication.viewStack1.sel&#101;ctedChild&#160;&#160;= parentApplication.No1View;&#160;&#160;&#160;&#160;&#8211;&#62;&#60;/mx:Canvas&#62;……

]]></description>
			<content:encoded><![CDATA[<p>ViewStack Code：<br/>==================<br/>……<br/>&lt;mx:ViewStack&nbsp;&nbsp;id=&#34;viewstack1&#34; width=&#34;100%&#34; height=&#34;100%&#34;&gt; <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;custom:No1View id=&#34;No1View&#34;/&gt; <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;custom:No2View id=&#34;No2View&#34;/&gt; <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;custom:No3View id=&#34;No3View&#34;/&gt; <br/>&lt;/mx:ViewStack&gt; <br/>……<br/><br/><br/>Custom Component Code：<br/>==================<br/>……<br/>&lt;mx:Canvas xmlns:mx=&#34;<a href="http://www.adobe.com/2006/mxml" target="_blank" rel="external">http://www.adobe.com/2006/mxml</a>&#34;&gt;<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;mx:Button label=&#34;Show Next ViewStack&#34; click=&#34;this.parentApplication.viewStack1.sel&#101;ctChild&nbsp;&nbsp;= <br/>this.parent.viewStack1.No1View;&#34;/&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;!&#8211;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;o&#114; try this code:<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; parentApplication.viewStack1.sel&#101;ctedChild&nbsp;&nbsp;= <br/>parentApplication.No1View;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&#8211;&gt;<br/><br/>&lt;/mx:Canvas&gt;<br/>……</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vhuges.com/how-to-change-viewstack-from-we-custom-components.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flex的界面导航</title>
		<link>http://www.vhuges.com/flex-interface-navigation.html</link>
		<comments>http://www.vhuges.com/flex-interface-navigation.html#comments</comments>
		<pubDate>Mon, 13 Apr 2009 04:36:00 +0000</pubDate>
		<dc:creator>Hugo</dc:creator>
				<category><![CDATA[敲键动鼠]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://vhuges.com?p=23</guid>
		<description><![CDATA[为什么需要专门的导航系统?Flex应用区别与以往的Web应用, 它具备典型的C/S特性:1.One-page application的架构, 没有多页面的情况.2.控件高度封装.3.本地运算能力高.由于Flex应用是运行在浏览器中, 它会有下面的限制:1.对浏览器历史的支持2.对Deep link的支持,以及URL参数的支持.3.对浏览器刷新后状态的保留.可以看出, 如果不设计, Flex下的导航变得很复杂.主要导航方案:ViewStack导航很多的容器控件, 如ButtonBar, TabNavigator, 都需要一个ViewStack的数据源.ViewStack有以下特征:1.延迟初始化控件. 只初始化当前显示的控件, 在导航的过程中才会初始化其他的控件(Lazy Load).2.只初始化一次. 一旦一个导航页完成了初始化, ViewStack不会再次创建.3.导航面积比较大, 或者内部控件结构复杂, 都会导致运行效率降低.4.支持HistoryManager, 允许浏览器的前进后退.5.支持特效.6.可以绑定到导航控件, 如ButtonBar, TabNavigator.State导航State导航有以下特征:1.延迟初始化控件.2.只初始化一次.3.效率比较高.4.不支持HistoryManager.5.支持特效.6.不能绑定导航控件.导航选择策略通常会混合使用. 单独使用任何一种都可能会使导航变得过于复杂. 必须根据项目的特点来进一步确定.较大面积, 范围的导航尽量使用State(如子系统之间的导航).如果几个导航界面之间有共同的部分(即, 整个界面只有一部分控件在变化),使用State较好.如果几个导航界面之间完全不同, 两者都可以使用.如果需要绑定到导航控件, 使用ViewStack. 这个时候使用State, 只能手写代码控制.最佳实践一个系统可以分成不同的子系统模块, 主mxml文件里使用任何一种作为主要导航.每个子系统模块内部的导航有自己完成, 可以使用任何一种.牵涉到跨子系统的导航需要在主程序, 或者是主框架的层次上解决.使用AnimateProperty做动画, 尽可能不使用标准的效果(Resize, Zoom, Blur…).附记关于如何实现自定义控件的浏览器历史功能, 请参看帮助文档.Flex 2不支持Deep link. Flex 3支持.

]]></description>
			<content:encoded><![CDATA[<p>为什么需要专门的导航系统?<br/>Flex应用区别与以往的Web应用, 它具备典型的C/S特性:<br/>1.One-page application的架构, 没有多页面的情况.<br/>2.控件高度封装.<br/>3.本地运算能力高.<br/><br/>由于Flex应用是运行在浏览器中, 它会有下面的限制:<br/>1.对浏览器历史的支持<br/>2.对Deep link的支持,以及URL参数的支持.<br/>3.对浏览器刷新后状态的保留.<br/><br/>可以看出, 如果不设计, Flex下的导航变得很复杂.<br/><br/>主要导航方案:<br/><br/>ViewStack导航<br/>很多的容器控件, 如ButtonBar, TabNavigator, 都需要一个ViewStack的数据源.<br/><br/>ViewStack有以下特征:<br/>1.延迟初始化控件. 只初始化当前显示的控件, 在导航的过程中才会初始化其他的控件(Lazy Load).<br/>2.只初始化一次. 一旦一个导航页完成了初始化, ViewStack不会再次创建.<br/>3.导航面积比较大, 或者内部控件结构复杂, 都会导致运行效率降低.<br/>4.支持HistoryManager, 允许浏览器的前进后退.<br/>5.支持特效.<br/>6.可以绑定到导航控件, 如ButtonBar, TabNavigator.<br/><br/>State导航<br/><br/>State导航有以下特征:<br/>1.延迟初始化控件.<br/>2.只初始化一次.<br/>3.效率比较高.<br/>4.不支持HistoryManager.<br/>5.支持特效.<br/>6.不能绑定导航控件.<br/><br/>导航选择策略<br/>通常会混合使用. 单独使用任何一种都可能会使导航变得过于复杂. 必须根据项目的特点来进一步确定.<br/>较大面积, 范围的导航尽量使用State(如子系统之间的导航).<br/><br/>如果几个导航界面之间有共同的部分(即, 整个界面只有一部分控件在变化),使用State较好.<br/><br/>如果几个导航界面之间完全不同, 两者都可以使用.<br/><br/>如果需要绑定到导航控件, 使用ViewStack. 这个时候使用State, 只能手写代码控制.<br/><br/>最佳实践<br/>一个系统可以分成不同的子系统模块, 主mxml文件里使用任何一种作为主要导航.<br/>每个子系统模块内部的导航有自己完成, 可以使用任何一种.<br/>牵涉到跨子系统的导航需要在主程序, 或者是主框架的层次上解决.<br/>使用AnimateProperty做动画, 尽可能不使用标准的效果(Resize, Zoom, Blur…).<br/><br/>附记<br/>关于如何实现自定义控件的浏览器历史功能, 请参看帮助文档.<br/>Flex 2不支持Deep link. Flex 3支持.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vhuges.com/flex-interface-navigation.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>在Flex应用里关闭浏览器</title>
		<link>http://www.vhuges.com/in-the-flex-application-where-you-close-your-browser.html</link>
		<comments>http://www.vhuges.com/in-the-flex-application-where-you-close-your-browser.html#comments</comments>
		<pubDate>Sat, 11 Apr 2009 14:47:00 +0000</pubDate>
		<dc:creator>Hugo</dc:creator>
				<category><![CDATA[敲键动鼠]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://vhuges.com?p=24</guid>
		<description><![CDATA[Flex开发的时候，会有关闭浏览器的需求~比如：点击退出按钮~遇到这样的需求时可以如下处理：&#60;?xml version=&#34;1.0&#34;?&#62;&#60;mx:Application xmlns:mx=&#39;http://www.adobe.com/2006/mxml&#39; &#62;&#60;mx:Script&#62;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;![CDATA[&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; private function closeIE():void{&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var request:URLRequest = new URLRequest(&#34;javascript:window.close()&#34;);&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; navigateToURL(request,&#34;_self&#34;);&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ]]&#62;&#60;/mx:Script&#62;&#60;mx:Panel title=&#34;My IE close App&#34;&#62;&#160;&#160;&#160;&#160;&#160;&#160;&#60;mx:Button textAlign=&#34;center&#34; label=&#34;Close current IE&#34; click=&#34;closeIE()&#34;/&#62;&#60;/mx:Panel&#62;在Actionscript 2及以前，要打开任何网址，只需调用全局函数getURL()即可。在Actionscript 3中，已经取消了getURL()这个全局函数，取而代之的是flash.net包中的函数navigateToURL()，API格式如下：public function navigateToURL(request:URLRequest,window:String=null):void如果你想在flex应用中关闭浏览器窗口，可以利用navigateToURL调用javascript来实现，网上搜索得到如下示例：引用&#60;?xml version=&#34;1.0&#34; encoding=&#34;utf-8&#34;?&#62;&#60;mx:Application xmlns:mx=&#34;http://www.adobe.com/2006/mxml&#34; layout=&#34;absolute&#34;&#62;&#60;mx:Script&#62;&#60;![CDATA[private function closeIE():void{var request:URLRequest = new URLRequest(&#34;javascript:window.close()&#34;);navigateToURL(request,&#34;_self&#34;);}]]&#62;&#60;/mx:Script&#62;&#60;mx:Button textAlign=&#34;center&#34; label=&#34;Close current IE&#34; click=&#34;closeIE()&#34;/&#62;&#60;/mx:Application&#62;测试一下，你会发现关闭窗口之前会弹出确认的信息提示。如果想关闭窗口且不弹出信息窗口，将上述代码稍加改动（改动request变量声明那一行，注意黑体部分）即可实现。引用var request:URLRequest = new URLRequest(&#34;javascript:window.opener=null;window.close()&#34;);实际上还可以更简单一些，如下：引用&#60;?xml version=&#34;1.0&#34; encoding=&#34;utf-8&#34;?&#62;&#60;mx:Application xmlns:mx=&#34;http://www.adobe.com/2006/mxml&#34; layout=&#34;absolute&#34;&#62;&#60;mx:Button textAlign=&#34;center&#34; label=&#34;Close current IE&#34; click=&#34;navigateToURL(new URLRequest(&#39;javascript:window.opener=null;window.close()&#39;),&#39;_self&#39;)&#34;/&#62;&#60;/mx:Application&#62;===================升级：可以加上Alert，确认是否关闭

<span class="readmore"><a href="http://www.vhuges.com/in-the-flex-application-where-you-close-your-browser.html" title="在Flex应用里关闭浏览器">阅读全文——共1985字</a></span>]]></description>
			<content:encoded><![CDATA[<p>Flex开发的时候，会有关闭浏览器的需求~比如：点击退出按钮~<br/>遇到这样的需求时可以如下处理：<br/><br/>&lt;?xml version=&#34;1.0&#34;?&gt;<br/>&lt;mx:Application xmlns:mx=&#39;<a href="http://www.adobe.com/2006/mxml" target="_blank" rel="external">http://www.adobe.com/2006/mxml</a>&#39; &gt;<br/>&lt;mx:Script&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;![CDATA[<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; private function closeIE():void{<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var request:URLRequest = new URLRequest(&#34;javascript:window.close()&#34;);<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; navigateToURL(request,&#34;_self&#34;);<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ]]&gt;<br/>&lt;/mx:Script&gt;<br/><br/>&lt;mx:Panel title=&#34;My IE close App&#34;&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;mx:Button textAlign=&#34;center&#34; label=&#34;Close current IE&#34; click=&#34;closeIE()&#34;/&gt;<br/>&lt;/mx:Panel&gt;<br/><br/><br/>在Actionscript 2及以前，要打开任何网址，只需调用全局函数getURL()即可。在Actionscript 3中，已经取消了getURL()这个全局函数，取而代之的是flash.net包中的函数navigateToURL()，API格式如下：<br/>public function navigateToURL(request:URLRequest,window:String=null):void<br/><br/>如果你想在flex应用中关闭浏览器窗口，可以利用navigateToURL调用javascript来实现，网上搜索得到如下示例：<br/><br/><br/>引用<br/>&lt;?xml version=&#34;1.0&#34; encoding=&#34;utf-8&#34;?&gt;<br/>&lt;mx:Application xmlns:mx=&#34;<a href="http://www.adobe.com/2006/mxml" target="_blank" rel="external">http://www.adobe.com/2006/mxml</a>&#34; layout=&#34;absolute&#34;&gt;<br/>&lt;mx:Script&gt;<br/>&lt;![CDATA[<br/>private function closeIE():void{<br/>var request:URLRequest = new URLRequest(&#34;javascript:window.close()&#34;);<br/>navigateToURL(request,&#34;_self&#34;);<br/>}<br/>]]&gt;<br/>&lt;/mx:Script&gt;<br/>&lt;mx:Button textAlign=&#34;center&#34; label=&#34;Close current IE&#34; click=&#34;closeIE()&#34;/&gt;<br/>&lt;/mx:Application&gt;<br/><br/><br/>测试一下，你会发现关闭窗口之前会弹出确认的信息提示。如果想关闭窗口且不弹出信息窗口，将上述代码稍加改动（改动request变量声明那一行，注意黑体部分）即可实现。<br/><br/><br/>引用<br/>var request:URLRequest = new URLRequest(&#34;javascript:<strong>window.opener=null;</strong>window.close()&#34;);<br/><br/><br/>实际上还可以更简单一些，如下：<br/><br/>引用<br/>&lt;?xml version=&#34;1.0&#34; encoding=&#34;utf-8&#34;?&gt;<br/>&lt;mx:Application xmlns:mx=&#34;<a href="http://www.adobe.com/2006/mxml" target="_blank" rel="external">http://www.adobe.com/2006/mxml</a>&#34; layout=&#34;absolute&#34;&gt;<br/>&lt;mx:Button textAlign=&#34;center&#34; label=&#34;Close current IE&#34; click=&#34;navigateToURL(new URLRequest(&#39;javascript:window.opener=null;window.close()&#39;),&#39;_self&#39;)&#34;/&gt;<br/>&lt;/mx:Application&gt;<br/><br/>===================<br/><br/>升级：可以加上Alert，确认是否关闭<br/><br/>
<div class="UBBPanel">
<div class="UBBTitle"><img src="images/html.gif" style="margin:0px 2px -3px 0px"> HTML代码</div>
<div class="UBBContent"><textarea rows="8" id="temp69125"><br />
import mx.events.CloseEvent;<br />
import mx.controls.Alert;<br />
private var btn:Class;<br />
private function cancelLogin(event:Event):void{<br />
Alert.okLabel=&#34;确定&#34;;<br />
Alert.cancelLabel=&#34;取消&#34;;<br />
Alert.show(&#34;关闭窗口？&#34;,<br />
&#34;确认&#34;,<br />
Alert.OK | Alert.CANCEL,<br />
this,<br />
closeWindow);<br />
}<br />
private function closeWindow(event:CloseEvent):void{<br />
if(event.detail == Alert.OK){<br />
var request:URLRequest = new URLRequest(&#34;javascript:window.opener=null;window.close();&#34;);<br />
navigateToURL(request,&#34;_self&#34;);<br />
}<br />
}<br />
</textarea><br/><br />
<input onclick="runEx('temp69125')"  type="button" class="userbutton" value="运行此代码"/>
<input onclick="doCopy('temp69125')"  type="button" class="userbutton" value="复制此代码"/>
<input onclick="saveCode('temp69125')" type="button" class="userbutton" value="保存此代码"><br/> [Ctrl+A 全部选择 提示：你可先修改部分代码，再按运行]</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.vhuges.com/in-the-flex-application-where-you-close-your-browser.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Flex组件属性不完全版[逐渐更新ING]</title>
		<link>http://www.vhuges.com/flex-component-property-is-not-the-full-version-of-progressive-update-ing.html</link>
		<comments>http://www.vhuges.com/flex-component-property-is-not-the-full-version-of-progressive-update-ing.html#comments</comments>
		<pubDate>Wed, 08 Apr 2009 13:23:00 +0000</pubDate>
		<dc:creator>Hugo</dc:creator>
				<category><![CDATA[敲键动鼠]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://vhuges.com?p=26</guid>
		<description><![CDATA[【Accordion】&#160;&#160;&#8212;-headerHeight&#160;&#160;标签头高度&#160;&#160;Accordion组件中每个标签头的高度 &#8212;-dro&#112;ShadowEnabled&#160;&#160;是否显示投影&#160;&#160;true和false 2个属性&#8212;-shadowDistance&#160;&#160;投影的大小&#160;&#160;从0~20&#8212;-shadowDirection&#160;&#160;投影方向&#160;&#160;left right center&#8212;-dro&#112;ShadowColor&#160;&#160;投影的颜色&#8212;-borderStyle&#160;&#160;边框的样式&#160;&#160;none solid&#8212;-borderThickness&#160;&#160;边框的粗细&#160;&#160;从0~20&#8212;-backgroundColor&#160;&#160;背景色&#160;&#160;整个Accordion组件包括标签头和主体内容都会应用上背景色&#8212;-fillColors&#160;&#160;未选中的标签头填充色&#160;&#160;这个属性要设置4个色彩值：渐变起始色，渐变结束色，鼠标经过时渐变起始色，鼠标经过时渐变结束色&#8212;-fillAlphas&#160;&#160;未选中的标签头填充色透明度&#160;&#160;对应于fillColors设置4个透明度数值从0.00~1.00 &#8212;-sel&#101;ctedFillColors&#160;&#160;选中的标签头填充色&#160;&#160;这个属性要设置2个色彩值：渐变起始色，渐变结束色&#8212;-color&#160;&#160;标签头文字的颜色&#8212;-textRollOverColor&#160;&#160;鼠标经过标签头时的文字颜色&#8212;-textSel&#101;ctedColor&#160;&#160;鼠标点击标签头时的文字颜色&#8212;-textIndent&#160;&#160;标签头文字缩进距离的大小&#160;&#160;数值从0~100&#8212;-openDuration&#160;&#160;打开新标签的速度&#160;&#160;数值从0~1000【Application】&#8212;-backgroundImage&#160;&#160;背景图&#160;&#160;使用Embed(source=&#34; &#34;);来应用&#8212;-backgroundColor&#160;&#160;背景色&#8212;-backgroundGradientColors&#160;&#160;背景渐进色&#160;&#160;这个属性要设置2个色彩，渐进起始色和渐进结束色，中间以逗号分隔&#8212;-backgroundGradientAlphas&#160;&#160;背景渐进色透明度&#160;&#160;这个属性要设置2个透明度，对应渐进色中的2种颜色 值的范围是0.00~1.00，中间以逗号分隔【ApplicationControlBar】&#160;&#160;&#8212;-cornerRadius&#160;&#160;边框圆角度&#160;&#160;数值从0~20&#8212;-dro&#112;ShadowEnabled&#160;&#160;是否显示边框投影&#160;&#160;true和false&#8212;-shadowDistance&#160;&#160;投影大小&#160;&#160;数值从0~20&#8212;-dro&#112;ShadowColor&#160;&#160;投影颜色&#8212;-borderStyle&#160;&#160;边框样式&#160;&#160;default none solid&#8212;-borderColor&#160;&#160;边框颜色&#8212;-borderThickness&#160;&#160;边框粗细&#160;&#160;数值从0~20&#8212;-backgroundColor&#160;&#160;背景颜色&#8212;-fillColors&#160;&#160;填充渐变色&#160;&#160;这个属性要设置2个色彩，渐变起始色和渐变结束色，中间以逗号分隔&#8212;-fillAlphas&#160;&#160;填充色透明度&#160;&#160;这个属性要设置2个透明度 渐变起始色透明度和渐变结束色透明度&#8212;-highlightAlphas&#160;&#160;高光透明度&#160;&#160;2个数值，中间以逗号分隔 前一个为高光亮度，从0.00~1.00，为1时最亮，为白色后一个为高光透明度，从0.00~1.00，为1时最透明(可通过设置制作出水晶半透明效果)&#8212;-backgroundColor&#160;&#160;背景色 【Button】&#8212;-cornerRadius&#160;&#160;边框圆角度&#160;&#160;数值从0`28&#8212;-textIndent&#160;&#160;Button标题文本缩进值&#160;&#160;数值从0`20&#8212;-paddingLeft&#160;&#160;Button内部左侧填充值&#160;&#160;数值从0`20&#8212;-paddingRight&#160;&#160;Button内部右侧填充值&#160;&#160;数值从0`20&#8212;-paddingTop&#160;&#160;Button内部上侧填充值&#160;&#160;数值从0`20&#8212;-paddingBottom&#160;&#160; Button内部下侧填充值&#160;&#160;数值从0`20&#8212;-fillColors&#160;&#160;Button背景填充色&#160;&#160; 这个属性要设置4个色彩值：渐变起始色，渐变结束色，鼠标经过时渐变起始色，鼠标经过时渐变结束色 &#8212;-fillAlphas&#160;&#160;填充色透明度&#160;&#160; 针对fillColors属性这个属性要设置4个透明度 渐变起始色透明度 渐变结束色透明度 鼠标经过时渐变起始色透明度 鼠标经过时渐变结束色透明度 数值从0.00~1.00&#8212;-highlightAlphas&#160;&#160;高光透明度&#160;&#160;针对fillColors属性2个数值，中间以逗号分隔 前一个为高光亮度，从0.00~1.00，为1时最亮，为白色 后一个为高光透明度，从0.00~1.00，为1时最透明(可通过设置制作出水晶半透明效果)&#8212;-color&#160;&#160; 文字颜色&#8212;-textRollOverColor&#160;&#160;鼠标经过时的文字颜色&#8212;-textSel&#101;ctedColor&#160;&#160;鼠标点击时的文字颜色&#8212;-borderColor&#160;&#160;边框颜色【ButtonBar】&#8212;-buttonHeight&#160;&#160;ButtonBar的高度&#160;&#160;数值从0`50&#8212;-horizontalGap&#160;&#160;ButtonBar中每个Button在水平方向的间隔&#160;&#160;数值从0`20&#8212;-textIndent&#160;&#160;每个Button中的文本缩进值&#160;&#160;数值从0`20&#8212;-color&#160;&#160; 每个Button中的文本颜色&#8212;-textRollOverColor&#160;&#160;鼠标经过时每个Button中的文本颜色&#8212;-textSel&#101;ctedColor&#160;&#160;鼠标点击时每个Button中的文本颜色&#160;&#160;ButtonBar中Button的一些属性需要单独来设置一个样式：buttonStyleName:&#34;myButtonBar&#34;;.myButtonBar中设置如下：&#8212;-cornerRadius&#160;&#160;边框圆角度&#160;&#160;数值从0`28&#8212;-fillColors&#160;&#160;PopUpButton背景填充色&#160;&#160; 这个属性要设置4个色彩值：渐变起始色，渐变结束色，鼠标经过时渐变起始色，鼠标经过时渐变结束色&#8212;-fillAlphas&#160;&#160;填充色透明度&#160;&#160; 针对fillColors属性这个属性要设置4个透明度 渐变起始色透明度 渐变结束色透明度 鼠标经过时渐变起始色透明度 鼠标经过时渐变结束色透明度 数值从0.00~1.00&#8212;-highlightAlphas&#160;&#160;高光透明度&#160;&#160;针对fillColors属性 2个数值，中间以逗号分隔 前一个为高光亮度，从0.00~1.00，为1时最亮，为白色 后一个为高光透明度，从0.00~1.00，为1时最透明(可通过设置制作出水晶半透明效果)&#160;&#160;【CheckBox】（包含单选和多选）&#8212;-borderColor&#160;&#160;边框颜色&#8212;-color&#160;&#160; 文本颜色&#8212;-textRollOverColor&#160;&#160;鼠标经过选择框时的文本颜色&#8212;-textSel&#101;ctedColor&#160;&#160;鼠标点击选择框时的文本颜色&#8212;-fillColors&#160;&#160;选择框的背景填充色&#160;&#160;这个属性要设置4个色彩值：渐变起始色，渐变结束色，鼠标经过时渐变起始色，鼠标经过时渐变结束色&#8212;-fillAlphas&#160;&#160;填充色透明度&#160;&#160;针对fillColors属性 这个属性要设置4个透明度 渐变起始色透明度 渐变结束色透明度 鼠标经过时渐变起始色透明度 鼠标经过时渐变结束色透明度 数值从0.00~1.00&#8212;-highlightAlphas&#160;&#160;高光透明度&#160;&#160;针对fillColors属性2个数值，中间以逗号分隔 前一个为高光亮度，从0.00~1.00，为1时最亮，为白色 后一个为高光透明度，从0.00~1.00，为1时最透明(可通过设置制作出水晶半透明效果)【ComboBox】&#8212;-color&#160;&#160;所有选项中文本颜色&#8212;-borderColor&#160;&#160;边框颜色&#8212;-cornerRadius&#160;&#160; 边框圆角度&#160;&#160;数值从0~20&#8212;-fillColors&#160;&#160;被选择项的渐变填充色&#160;&#160;这个属性要设置4个色彩值：渐变起始色，渐变结束色，鼠标经过时渐变起始色，鼠标经过时渐变结束色&#8212;-fillAlphas&#160;&#160;填充色透明度&#160;&#160;针对fillColors属性 这个属性要设置4个透明度 渐变起始色透明度 渐变结束色透明度 鼠标经过时渐变起始色透明度 鼠标经过时渐变结束色透明度 数值从0.00~1.00&#8212;-highlightAlphas&#160;&#160;高光透明度&#160;&#160;针

]]></description>
			<content:encoded><![CDATA[<p>【Accordion】&nbsp;&nbsp;<br/>&#8212;-headerHeight&nbsp;&nbsp;标签头高度&nbsp;&nbsp;Accordion组件中每个标签头的高度 <br/>&#8212;-dro&#112;ShadowEnabled&nbsp;&nbsp;是否显示投影&nbsp;&nbsp;true和false 2个属性<br/>&#8212;-shadowDistance&nbsp;&nbsp;投影的大小&nbsp;&nbsp;从0~20<br/>&#8212;-shadowDirection&nbsp;&nbsp;投影方向&nbsp;&nbsp;left right center<br/>&#8212;-dro&#112;ShadowColor&nbsp;&nbsp;投影的颜色<br/>&#8212;-borderStyle&nbsp;&nbsp;边框的样式&nbsp;&nbsp;none solid<br/>&#8212;-borderThickness&nbsp;&nbsp;边框的粗细&nbsp;&nbsp;从0~20<br/>&#8212;-backgroundColor&nbsp;&nbsp;背景色&nbsp;&nbsp;整个Accordion组件包括标签头和主体内容都会应用上背景色<br/>&#8212;-fillColors&nbsp;&nbsp;未选中的标签头填充色&nbsp;&nbsp;这个属性要设置4个色彩值：渐变起始色，渐变结束色，鼠标经过时渐变起始色，鼠标经过时渐变结束色<br/>&#8212;-fillAlphas&nbsp;&nbsp;未选中的标签头填充色透明度&nbsp;&nbsp;对应于fillColors设置4个透明度数值从0.00~1.00 <br/>&#8212;-sel&#101;ctedFillColors&nbsp;&nbsp;选中的标签头填充色&nbsp;&nbsp;这个属性要设置2个色彩值：渐变起始色，渐变结束色<br/>&#8212;-color&nbsp;&nbsp;标签头文字的颜色<br/>&#8212;-textRollOverColor&nbsp;&nbsp;鼠标经过标签头时的文字颜色<br/>&#8212;-textSel&#101;ctedColor&nbsp;&nbsp;鼠标点击标签头时的文字颜色<br/>&#8212;-textIndent&nbsp;&nbsp;标签头文字缩进距离的大小&nbsp;&nbsp;数值从0~100<br/>&#8212;-openDuration&nbsp;&nbsp;打开新标签的速度&nbsp;&nbsp;数值从0~1000<br/><br/>【Application】<br/>&#8212;-backgroundImage&nbsp;&nbsp;背景图&nbsp;&nbsp;使用Embed(source=&#34; &#34;);来应用<br/>&#8212;-backgroundColor&nbsp;&nbsp;背景色<br/>&#8212;-backgroundGradientColors&nbsp;&nbsp;背景渐进色&nbsp;&nbsp;这个属性要设置2个色彩，渐进起始色和渐进结束色，中间以逗号分隔<br/>&#8212;-backgroundGradientAlphas&nbsp;&nbsp;背景渐进色透明度&nbsp;&nbsp;这个属性要设置2个透明度，对应渐进色中的2种颜色 值的范围是0.00~1.00，中间以逗号分隔<br/><br/>【ApplicationControlBar】&nbsp;&nbsp;<br/>&#8212;-cornerRadius&nbsp;&nbsp;边框圆角度&nbsp;&nbsp;数值从0~20<br/>&#8212;-dro&#112;ShadowEnabled&nbsp;&nbsp;是否显示边框投影&nbsp;&nbsp;true和false<br/>&#8212;-shadowDistance&nbsp;&nbsp;投影大小&nbsp;&nbsp;数值从0~20<br/>&#8212;-dro&#112;ShadowColor&nbsp;&nbsp;投影颜色<br/>&#8212;-borderStyle&nbsp;&nbsp;边框样式&nbsp;&nbsp;default none solid<br/>&#8212;-borderColor&nbsp;&nbsp;边框颜色<br/>&#8212;-borderThickness&nbsp;&nbsp;边框粗细&nbsp;&nbsp;数值从0~20<br/>&#8212;-backgroundColor&nbsp;&nbsp;背景颜色<br/>&#8212;-fillColors&nbsp;&nbsp;填充渐变色&nbsp;&nbsp;这个属性要设置2个色彩，渐变起始色和渐变结束色，中间以逗号分隔<br/>&#8212;-fillAlphas&nbsp;&nbsp;填充色透明度&nbsp;&nbsp;这个属性要设置2个透明度 渐变起始色透明度和渐变结束色透明度<br/>&#8212;-highlightAlphas&nbsp;&nbsp;高光透明度&nbsp;&nbsp;2个数值，中间以逗号分隔 前一个为高光亮度，从0.00~1.00，为1时最亮，为白色后一个为高光透明度，从0.00~1.00，为1时最透明(可通过设置制作出水晶半透明效果)<br/>&#8212;-backgroundColor&nbsp;&nbsp;背景色 <br/><br/>【Button】<br/>&#8212;-cornerRadius&nbsp;&nbsp;边框圆角度&nbsp;&nbsp;数值从0`28<br/>&#8212;-textIndent&nbsp;&nbsp;Button标题文本缩进值&nbsp;&nbsp;数值从0`20<br/>&#8212;-paddingLeft&nbsp;&nbsp;Button内部左侧填充值&nbsp;&nbsp;数值从0`20<br/>&#8212;-paddingRight&nbsp;&nbsp;Button内部右侧填充值&nbsp;&nbsp;数值从0`20<br/>&#8212;-paddingTop&nbsp;&nbsp;Button内部上侧填充值&nbsp;&nbsp;数值从0`20<br/>&#8212;-paddingBottom&nbsp;&nbsp; Button内部下侧填充值&nbsp;&nbsp;数值从0`20<br/>&#8212;-fillColors&nbsp;&nbsp;Button背景填充色&nbsp;&nbsp; 这个属性要设置4个色彩值：渐变起始色，渐变结束色，鼠标经过时渐变起始色，鼠标经过时渐变结束色 <br/>&#8212;-fillAlphas&nbsp;&nbsp;填充色透明度&nbsp;&nbsp; 针对fillColors属性这个属性要设置4个透明度 渐变起始色透明度 渐变结束色透明度 鼠标经过时渐变起始色透明度 鼠标经过时渐变结束色透明度 数值从0.00~1.00<br/>&#8212;-highlightAlphas&nbsp;&nbsp;高光透明度&nbsp;&nbsp;针对fillColors属性2个数值，中间以逗号分隔 前一个为高光亮度，从0.00~1.00，为1时最亮，为白色 后一个为高光透明度，从0.00~1.00，为1时最透明(可通过设置制作出水晶半透明效果)<br/>&#8212;-color&nbsp;&nbsp; 文字颜色<br/>&#8212;-textRollOverColor&nbsp;&nbsp;鼠标经过时的文字颜色<br/>&#8212;-textSel&#101;ctedColor&nbsp;&nbsp;鼠标点击时的文字颜色<br/>&#8212;-borderColor&nbsp;&nbsp;边框颜色<br/><br/>【ButtonBar】<br/>&#8212;-buttonHeight&nbsp;&nbsp;ButtonBar的高度&nbsp;&nbsp;数值从0`50<br/>&#8212;-horizontalGap&nbsp;&nbsp;ButtonBar中每个Button在水平方向的间隔&nbsp;&nbsp;数值从0`20<br/>&#8212;-textIndent&nbsp;&nbsp;每个Button中的文本缩进值&nbsp;&nbsp;数值从0`20<br/>&#8212;-color&nbsp;&nbsp; 每个Button中的文本颜色<br/>&#8212;-textRollOverColor&nbsp;&nbsp;鼠标经过时每个Button中的文本颜色<br/>&#8212;-textSel&#101;ctedColor&nbsp;&nbsp;鼠标点击时每个Button中的文本颜色<br/><br/>&nbsp;&nbsp;ButtonBar中Button的一些属性需要单独来设置一个样式：buttonStyleName:&#34;myButtonBar&#34;;<br/><br/>.myButtonBar中设置如下：<br/>&#8212;-cornerRadius&nbsp;&nbsp;边框圆角度&nbsp;&nbsp;数值从0`28<br/>&#8212;-fillColors&nbsp;&nbsp;PopUpButton背景填充色&nbsp;&nbsp; 这个属性要设置4个色彩值：渐变起始色，渐变结束色，鼠标经过时渐变起始色，鼠标经过时渐变结束色<br/>&#8212;-fillAlphas&nbsp;&nbsp;填充色透明度&nbsp;&nbsp; 针对fillColors属性这个属性要设置4个透明度 渐变起始色透明度 渐变结束色透明度 鼠标经过时渐变起始色透明度 鼠标经过时渐变结束色透明度 数值从0.00~1.00<br/>&#8212;-highlightAlphas&nbsp;&nbsp;高光透明度&nbsp;&nbsp;针对fillColors属性 2个数值，中间以逗号分隔 前一个为高光亮度，从0.00~1.00，为1时最亮，为白色 后一个为高光透明度，从0.00~1.00，为1时最透明(可通过设置制作出水晶半透明效果)&nbsp;&nbsp;<br/><br/>【CheckBox】（包含单选和多选）<br/>&#8212;-borderColor&nbsp;&nbsp;边框颜色<br/>&#8212;-color&nbsp;&nbsp; 文本颜色<br/>&#8212;-textRollOverColor&nbsp;&nbsp;鼠标经过选择框时的文本颜色<br/>&#8212;-textSel&#101;ctedColor&nbsp;&nbsp;鼠标点击选择框时的文本颜色<br/>&#8212;-fillColors&nbsp;&nbsp;选择框的背景填充色&nbsp;&nbsp;这个属性要设置4个色彩值：渐变起始色，渐变结束色，鼠标经过时渐变起始色，鼠标经过时渐变结束色<br/>&#8212;-fillAlphas&nbsp;&nbsp;填充色透明度&nbsp;&nbsp;针对fillColors属性 这个属性要设置4个透明度 渐变起始色透明度 渐变结束色透明度 鼠标经过时渐变起始色透明度 鼠标经过时渐变结束色透明度 数值从0.00~1.00<br/>&#8212;-highlightAlphas&nbsp;&nbsp;高光透明度&nbsp;&nbsp;针对fillColors属性2个数值，中间以逗号分隔 前一个为高光亮度，从0.00~1.00，为1时最亮，为白色 后一个为高光透明度，从0.00~1.00，为1时最透明(可通过设置制作出水晶半透明效果)<br/><br/>【ComboBox】<br/>&#8212;-color&nbsp;&nbsp;所有选项中文本颜色<br/>&#8212;-borderColor&nbsp;&nbsp;边框颜色<br/>&#8212;-cornerRadius&nbsp;&nbsp; 边框圆角度&nbsp;&nbsp;数值从0~20<br/>&#8212;-fillColors&nbsp;&nbsp;被选择项的渐变填充色&nbsp;&nbsp;这个属性要设置4个色彩值：渐变起始色，渐变结束色，鼠标经过时渐变起始色，鼠标经过时渐变结束色<br/>&#8212;-fillAlphas&nbsp;&nbsp;填充色透明度&nbsp;&nbsp;针对fillColors属性 这个属性要设置4个透明度 渐变起始色透明度 渐变结束色透明度 鼠标经过时渐变起始色透明度 鼠标经过时渐变结束色透明度 数值从0.00~1.00<br/>&#8212;-highlightAlphas&nbsp;&nbsp;高光透明度&nbsp;&nbsp;针</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vhuges.com/flex-component-property-is-not-the-full-version-of-progressive-update-ing.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flex Builder Error &#8211; Flash Player Not Found</title>
		<link>http://www.vhuges.com/flex-builder-error-flash-player-not-found.html</link>
		<comments>http://www.vhuges.com/flex-builder-error-flash-player-not-found.html#comments</comments>
		<pubDate>Mon, 06 Apr 2009 11:45:00 +0000</pubDate>
		<dc:creator>Hugo</dc:creator>
				<category><![CDATA[敲键动鼠]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://vhuges.com?p=27</guid>
		<description><![CDATA[Are you running your Flex Application and continually getting the error below?&#34;Flex Builder cannot locate the required version of the Flash Player. You might need to install Flash Player 9 o&#114; reinstall Flex Builder. Do you want to try to run your application with the current version?&#34;Description:This error is not a critical error and if you click on the Yes button the application will most likely run the way the you expect it. The reason this happened may have been because you recently did an express install o&#114; just an upgrade to your Flash Player.Solution:To get rid of this window constantly popping up you need to do one of the following:1.Reinstall the Flash PlayerFollow this link and reinstall the Flash Player. Get the latest Flash Player Debug VersionThis may o&#114; may not solve the issue. 2.Put the missing file in the folder that Flex is expecting.As you can tell Flex is looking for the dll in the folder C:\Program Files\Mozilla Firefox\plugins but if you look in that folder I would wager that the file NPSWF32.dll is not there. Wh&#101;re you will find the file is in the following folder C:\Windows\System32\Macromed\Flash . Simply do a copy and paste from the Macromed\Flash folder into the Firefox\plugins folder and you will eliminate the error. 3.Point Flex to another browser.If the above method doesn&#39;t work (which it should) then you can use IE as your default browser. The way you change your default browser in Flex is by going to the menu and clicking Window &#62;&#62; Preferences. This will pop-up the Flex preferences window. From within the Flex preferences window sel&#101;ct General &#62;&#62; Web Browser and then change the Browser from Firefox to IE as shown in the image below.4.Last resort reinstall Flex. Below are two links to help you trouble shoot.Get the latest Flash Player Debug VersionFind out what version you have.As always Happy Flashing

]]></description>
			<content:encoded><![CDATA[<p>Are you running your Flex Application and continually getting the error below?<br/><br/><strong>&#34;Flex Builder cannot locate the required version of the Flash Player. You might need to install Flash Player 9 o&#114; reinstall Flex Builder. <br/><br/>Do you want to try to run your application with the current version?&#34;</strong><br/><img src="attachments/month_0904/z20094619408.png" border="0" alt=""/><br/><br/><strong>Description:</strong><br/>This error is not a critical error and if you click on the Yes button the application will most likely run the way the you expect it. The reason this happened may have been because you recently did an express install o&#114; just an upgrade to your Flash Player.<br/><br/><strong>Solution:</strong><br/>To get rid of this window constantly popping up you need to do one of the following:<br/><br/><strong>1.Reinstall the Flash Player</strong><br/>Follow this link and reinstall the Flash Player. <a target="_blank" href="http://www.adobe.com/products/flash/about" rel="external">Get the latest Flash Player Debug Version</a><br/>This may o&#114; may not solve the issue. <br/><br/><strong>2.Put the missing file in the folder that Flex is expecting.</strong><br/>As you can tell Flex is looking for the dll in the folder C:\Program Files\Mozilla Firefox\plugins but if you look in that folder I would wager that the file NPSWF32.dll is not there. Wh&#101;re you will find the file is in the following folder C:\Windows\System32\Macromed\Flash . Simply do a copy and paste from the Macromed\Flash folder into the Firefox\plugins folder and you will eliminate the error. <br/><br/><strong>3.Point Flex to another browser.</strong><br/>If the above method doesn&#39;t work (which it should) then you can use IE as your default browser. The way you change your default browser in Flex is by going to the menu and clicking Window &gt;&gt; Preferences. <br/><img src="attachments/month_0904/6200946194244.png" border="0" alt=""/><br/>This will pop-up the Flex preferences window. From within the Flex preferences window sel&#101;ct General &gt;&gt; Web Browser and then change the Browser from Firefox to IE as shown in the image below.<br/><img src="attachments/month_0904/5200946194252.png" border="0" alt=""/><br/><strong>4.Last resort reinstall Flex. </strong><br/>Below are two links to help you trouble shoot.<br/><br/><a target="_blank" href="http://www.adobe.com/products/flash/about" rel="external">Get the latest Flash Player Debug Version</a><br/><a target="_blank" href="http://www.adobe.com/products/flash/about" rel="external">Find out what version you have.</a><br/><br/>As always Happy Flashing<br/></p>
]]></content:encoded>
			<wfw:commentRss>http://www.vhuges.com/flex-builder-error-flash-player-not-found.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flex Builder 3.0 &amp; Crack</title>
		<link>http://www.vhuges.com/flex-builder-3-0-crack.html</link>
		<comments>http://www.vhuges.com/flex-builder-3-0-crack.html#comments</comments>
		<pubDate>Sat, 08 Mar 2008 08:19:00 +0000</pubDate>
		<dc:creator>Hugo</dc:creator>
				<category><![CDATA[敲键动鼠]]></category>
		<category><![CDATA[Adobe]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://vhuges.com?p=292</guid>
		<description><![CDATA[Flex Builder 3.0老早发布列，一直米有Crack&#8230;网上看到有朋友放出破解补丁，特放出与大伙共享:)~有用得上的朋友自己下吧&#8230;破解补丁：Download注：以下官方地址无法保证长期有效，截止本日志发布时验证可用。若无法下载请自行网络搜索，Thx！Flex Builder 3.0正式版：http://download.macromedia.com/pub/flex/flex_builder/FB3_win.exe或 http://www.adobe.com/cfusion/tdrc/index.cfm?product=flexAIR1.0 正式版：http://airdownload.adobe.com/air &#8230; obeAIRInstaller.exe

]]></description>
			<content:encoded><![CDATA[<p>Flex Builder 3.0老早发布列，一直米有Crack&#8230;网上看到有朋友放出破解补丁，特放出与大伙共享:)~有用得上的朋友自己下吧&#8230;<br/><br/>破解补丁：<a target="_blank" href="attachments/month_0803/crack.rar" rel="external">Download</a><br/><br/>注：以下官方地址无法保证长期有效，截止本日志发布时验证可用。若无法下载请自行网络搜索，Thx！<br/><br/><strong>Flex Builder 3.0正式版</strong>：<br/><a href="http://download.macromedia.com/pub/flex/flex_builder/FB3_win.exe" target="_blank" rel="external">http://download.macromedia.com/pub/flex/flex_builder/FB3_win.exe</a><br/>或 <br/><a href="http://www.adobe.com/cfusion/tdrc/index.cfm?product=flex" target="_blank" rel="external">http://www.adobe.com/cfusion/tdrc/index.cfm?product=flex</a><br/><br/><strong>AIR1.0 正式版</strong>：<br/><a href="http://airdownload.adobe.com/air" target="_blank" rel="external">http://airdownload.adobe.com/air</a> &#8230; obeAIRInstaller.exe</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vhuges.com/flex-builder-3-0-crack.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
