<?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>Blog @ AvantBiz Design &#187; Computer 電腦</title>
	<atom:link href="http://blog.avantbiz.com/category/computer/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.avantbiz.com</link>
	<description>Weblog about stuffs other than design</description>
	<lastBuildDate>Wed, 06 Jul 2011 02:45:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>解決透明 png 在 ie 6 下的問題: jQuery pngFix</title>
		<link>http://blog.avantbiz.com/2009/11/06/%e8%a7%a3%e6%b1%ba%e9%80%8f%e6%98%8e-png-%e5%9c%a8-ie-6-%e4%b8%8b%e7%9a%84%e5%95%8f%e9%a1%8c-jquery-pngfix/</link>
		<comments>http://blog.avantbiz.com/2009/11/06/%e8%a7%a3%e6%b1%ba%e9%80%8f%e6%98%8e-png-%e5%9c%a8-ie-6-%e4%b8%8b%e7%9a%84%e5%95%8f%e9%a1%8c-jquery-pngfix/#comments</comments>
		<pubDate>Fri, 06 Nov 2009 10:13:35 +0000</pubDate>
		<dc:creator>eddie</dc:creator>
				<category><![CDATA[Web 網頁]]></category>

		<guid isPermaLink="false">http://blog.avantbiz.com/?p=124</guid>
		<description><![CDATA[http://jquery.andreaseberhard.de/pngFix/]]></description>
			<content:encoded><![CDATA[<p>http://jquery.andreaseberhard.de/pngFix/</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.avantbiz.com/2009/11/06/%e8%a7%a3%e6%b1%ba%e9%80%8f%e6%98%8e-png-%e5%9c%a8-ie-6-%e4%b8%8b%e7%9a%84%e5%95%8f%e9%a1%8c-jquery-pngfix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>常見的CSS+DIV問題整理</title>
		<link>http://blog.avantbiz.com/2009/10/15/%e5%b8%b8%e8%a6%8b%e7%9a%84cssdiv%e5%95%8f%e9%a1%8c%e6%95%b4%e7%90%86/</link>
		<comments>http://blog.avantbiz.com/2009/10/15/%e5%b8%b8%e8%a6%8b%e7%9a%84cssdiv%e5%95%8f%e9%a1%8c%e6%95%b4%e7%90%86/#comments</comments>
		<pubDate>Thu, 15 Oct 2009 03:28:08 +0000</pubDate>
		<dc:creator>eddie</dc:creator>
				<category><![CDATA[Web 網頁]]></category>

		<guid isPermaLink="false">http://blog.avantbiz.com/?p=119</guid>
		<description><![CDATA[Q.如何讓DIV區塊居中？ A.假設你的DIV總寬度是900px，我們可以這樣寫： &#60;style&#62; #page {width:900px;margin:0 auto;} &#60;/style&#62; &#60;div&#160;id=&#34;page&#34;&#62;居中的區塊&#60;/div&#62; Q.為什麼IE對於margin的算法有些不同？ A.當我們針對div設定了浮動(float)屬性之後，IE瀏覽器就會將margin加倍計算。例如我們設定margin-left:5px;，IE會算成10px。解決的方法是在該浮動區塊加上「display:inline」即可解決這個問題。 Q.為什麼設定超連結的visited會失效？ A.超連結的樣式有一定的順序，如果你同時要設定visited(訪問過的連結)，或是active(作用中的連結)，必須要按照這個順序設定：a:link→a:visited→a:hover→a:active。我們不用死記順序，可以這麼記：love、hate Q.如何在圖片上方放置flash？ A.有時候我們會看到有人的圖片上有flash的光圈特效，如果你要使用該特效，請將圖片設定為背景圖，然後在上方插入flash，記得要將flash設置為透明屬性： &#60;param name=&#34;wmode&#34; value=&#34;transparent&#34; /&#62; Q.在火狐瀏覽器設定最小高度 A.一般對區塊設定高度(height)後，在火狐瀏覽器中如果輸入超過高度的文字，區塊不會被撐開。如果我們希望可以設定最小高度，同時又希望文字過多可以撐開區塊的話，可以將你的區塊改寫為： div { height:auto!important; height:100px; min-height:100px; }]]></description>
			<content:encoded><![CDATA[<h3>Q.如何讓DIV區塊居中？</h3>
<p>A.假設你的DIV總寬度是900px，我們可以這樣寫：</p>
<div class="hl-surround">
<ol class="hl-main ln-show">
<li class="hl-firstline"><span style="color: Olive">&lt;</span><span style="color: Green">style</span><span style="color: Olive">&gt;</span></li>
<li><span style="color: Gray">#page {width:900px;margin:0 auto;}</span></li>
<li><span style="color: Olive">&lt;/</span><span style="color: Green">style</span><span style="color: Olive">&gt;</span></li>
<li><span style="color: Olive">&lt;</span><span style="color: Green">div</span><span style="color: Gray">&nbsp;</span><span style="color: #00008b">id</span><span style="color: Gray">=</span><span style="color: #8b0000">&quot;</span><span style="color: Red">page</span><span style="color: #8b0000">&quot;</span><span style="color: Olive">&gt;</span><span style="color: Gray">居中的區塊</span><span style="color: Olive">&lt;/</span><span style="color: Green">div</span><span style="color: Olive">&gt;</span></li>
</ol>
</div>
<h3>Q.為什麼IE對於margin的算法有些不同？</h3>
<p>A.當我們針對div設定了浮動(float)屬性之後，IE瀏覽器就會將margin加倍計算。例如我們設定margin-left:5px;，IE會算成10px。解決的方法是在該浮動區塊加上「<strong>display:inline</strong>」即可解決這個問題。</p>
<h3>Q.為什麼設定超連結的visited會失效？</h3>
<p>A.超連結的樣式有一定的順序，如果你同時要設定visited(訪問過的連結)，或是active(作用中的連結)，必須要按照這個順序設定：<strong>a:link→a:visited→a:hover→a:active</strong>。我們不用死記順序，可以這麼記：<strong>l</strong>o<strong>v</strong>e、<strong>h</strong>a<strong>t</strong>e</p>
<h3>Q.如何在圖片上方放置flash？</h3>
<p>A.有時候我們會看到有人的圖片上有flash的光圈特效，如果你要使用該特效，請將圖片設定為背景圖，然後在上方插入flash，記得要將flash設置為透明屬性：</p>
<div class="hl-surround">
<ol class="hl-main ln-show">
<li class="hl-firstline"><span style="color: Olive">&lt;</span><span style="color: Green">param</span><span style="color: Gray"> </span><span style="color: #00008b">name</span><span style="color: Gray">=</span><span style="color: #8b0000">&quot;</span><span style="color: Red">wmode</span><span style="color: #8b0000">&quot;</span><span style="color: Gray"> </span><span style="color: #00008b">value</span><span style="color: Gray">=</span><span style="color: #8b0000">&quot;</span><span style="color: Red">transparent</span><span style="color: #8b0000">&quot;</span><span style="color: Gray"> </span><span style="color: Olive">/&gt;</span></li>
</ol>
</div>
<h3>Q.在火狐瀏覽器設定最小高度</h3>
<p>A.一般對區塊設定高度(height)後，在火狐瀏覽器中如果輸入超過高度的文字，區塊不會被撐開。如果我們希望可以設定最小高度，同時又希望文字過多可以撐開區塊的話，可以將你的區塊改寫為：</p>
<div class="hl-surround">
<ol class="hl-main ln-show">
<li class="hl-firstline"><span style="color: Blue">div</span><span style="color: Gray"> </span><span style="color: Olive">{</span></li>
<li><span style="color: Green">height:</span><span style="color: Red">auto</span><span style="color: Gray">!important</span><span style="color: Gray">;</span></li>
<li><span style="color: Green">height:</span><span style="color: Maroon">100</span><span style="color: Red">px</span><span style="color: Gray">;</span></li>
<li><span style="color: Green">min-height:</span><span style="color: Maroon">100</span><span style="color: Red">px</span><span style="color: Gray">;</span></li>
<li><span style="color: Olive">}</span></li>
</ol>
</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.avantbiz.com/2009/10/15/%e5%b8%b8%e8%a6%8b%e7%9a%84cssdiv%e5%95%8f%e9%a1%8c%e6%95%b4%e7%90%86/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A quick fix for WordPress plugin My Category Order</title>
		<link>http://blog.avantbiz.com/2009/07/20/a-quick-fix-for-wordpress-plugin-my-category-order/</link>
		<comments>http://blog.avantbiz.com/2009/07/20/a-quick-fix-for-wordpress-plugin-my-category-order/#comments</comments>
		<pubDate>Mon, 20 Jul 2009 02:28:10 +0000</pubDate>
		<dc:creator>klyuen</dc:creator>
				<category><![CDATA[Web 網頁]]></category>

		<guid isPermaLink="false">http://blog.avantbiz.com/?p=116</guid>
		<description><![CDATA[There is a small problem after upgrade My Category Order WordPress plugin (http://geekyweekly.com/mycategoryorder) to latest version for WordPress 2.8 or 2.8.x. The category list will be showing &#8220;No category&#8221; after the upgrade.  To fix the issue, you have to go to page Posts &#62; My Category Order in backend, then change the file permission of wp-includes/taxonomy.php [...]]]></description>
			<content:encoded><![CDATA[<p>There is a small problem after upgrade My Category Order WordPress plugin (<a href="http://geekyweekly.com/mycategoryorder" rel="nofollow" >http://geekyweekly.com/mycategoryorder</a>) to latest version for WordPress 2.8 or 2.8.x. The category list will be showing &#8220;No category&#8221; after the upgrade.  To fix the issue, you have to go to page Posts &gt; My Category Order in backend, then change the file permission of wp-includes/taxonomy.php to writable, say &#8220;666&#8243; or &#8220;766&#8243; or &#8220;777&#8243; (as instructed in admin page).</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.avantbiz.com/2009/07/20/a-quick-fix-for-wordpress-plugin-my-category-order/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dynamically loading bitmaps with smoothing in Flash Player 8</title>
		<link>http://blog.avantbiz.com/2009/03/11/dynamically-loading-bitmaps-with-smoothing-in-flash-player-8/</link>
		<comments>http://blog.avantbiz.com/2009/03/11/dynamically-loading-bitmaps-with-smoothing-in-flash-player-8/#comments</comments>
		<pubDate>Wed, 11 Mar 2009 08:38:12 +0000</pubDate>
		<dc:creator>eddie</dc:creator>
				<category><![CDATA[Computer 電腦]]></category>
		<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://blog.avantbiz.com/?p=111</guid>
		<description><![CDATA[Function import flash.display.*; function loadBitmapSmoothed(url:String, target:MovieClip) { // Create a movie clip which will contain our unsmoothed bitmap var bmc:MovieClip = target.createEmptyMovieClip(&#8220;bmc&#8221;,target.getNextHighestDepth()); // Create a listener which will notify us when the bitmap loaded successfully var listener:Object = new Object(); // Track the target listener.tmc = target; // If the bitmap loaded successfully we redraw [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Function</strong></p>
<p>import flash.display.*;</p>
<p>function loadBitmapSmoothed(url:String, target:MovieClip) {<br />
	// Create a movie clip which will contain our unsmoothed bitmap<br />
	var bmc:MovieClip = target.createEmptyMovieClip(&#8220;bmc&#8221;,target.getNextHighestDepth());</p>
<p>	// Create a listener which will notify us when the bitmap loaded successfully<br />
	var listener:Object = new Object();<br />
	// Track the target<br />
	listener.tmc = target;</p>
<p>	// If the bitmap loaded successfully we redraw the movie into<br />
	// a BitmapData object and then attach that BitmapData to the target<br />
	// movie clip with the smoothing flag turned on.<br />
	listener.onLoadInit = function(mc:MovieClip) {<br />
		mc._visible = false;<br />
		var bitmap:BitmapData = new BitmapData(mc._width, mc._height, true);<br />
		this.tmc.attachBitmap(bitmap, this.tmc.getNextHighestDepth(),&#8221;auto&#8221;, true);<br />
		bitmap.draw(mc);<br />
	};</p>
<p>	// Do it, load the bitmap now<br />
	var loader:MovieClipLoader = new MovieClipLoader();<br />
	loader.addListener(listener);<br />
	loader.loadClip(url, bmc);<br />
}</p>
<p><strong>To use this snippet simple paste the function into your code and then load a bitmap this way f.ex.:</strong><br />
loadBitmapSmoothed(&#8220;flash.png&#8221;, mc1.mc);</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.avantbiz.com/2009/03/11/dynamically-loading-bitmaps-with-smoothing-in-flash-player-8/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>模擬寶麗萊</title>
		<link>http://blog.avantbiz.com/2009/02/20/poladroid/</link>
		<comments>http://blog.avantbiz.com/2009/02/20/poladroid/#comments</comments>
		<pubDate>Fri, 20 Feb 2009 06:46:04 +0000</pubDate>
		<dc:creator>klyuen</dc:creator>
				<category><![CDATA[Computer 電腦]]></category>
		<category><![CDATA[Photography 攝影]]></category>

		<guid isPermaLink="false">http://blog.avantbiz.com/?p=106</guid>
		<description><![CDATA[有 個 本 來 只 有 Mac 友 先 下 載 到 的 免 費 軟 件 ，  而家 Win XP 或 以 上 的 用 家 都 有 機 會 玩 到 喇 ！ 佢 叫 Poladroid Project ， 係 個 好 好 玩 的 模 擬 寶 麗 萊 相 片 軟 件 [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.poladroid.net/" rel="nofollow"  target="_blank"><img class="alignnone size-full wp-image-108" title="Poladroid" src="http://blog.avantbiz.com/wp-content/uploads/2009/02/poladroid-download-sticker.png" alt="" width="185" height="132" /></a><br />
有 個 本 來 只 有 Mac 友 先 下 載 到 的 免 費 軟 件 ，  而家 Win XP 或 以 上 的 用 家 都 有 機 會 玩 到 喇 ！ 佢 叫 Poladroid Project ， 係 個 好 好 玩 的 模 擬 寶 麗 萊 相 片 軟 件 ， 至 今 已 有 84 萬 人 下 載 試 玩 過 。<br />
使 用 時 會 有 一 大 部 寶 麗 萊 ， 放 o係 你 部 電 腦 桌 面 ， 想 將 普 通 一 張 數 碼 相 ， 化 身 為 充 滿 懷 古 人 情 味 o既 寶 麗 萊 ？ 只 要 將 相 片 檔 案 拉 落 機 身 Icon 上 ， 佢 就 會 馬 上 彈 出 一 張 寶 麗 萊 ； 同 真 實 一 樣 ， 影 像 會 慢 慢 顯 現 ， 最 後 自 動 記 存 下 來 。 更 過 癮 係 浮 現 過 程 中 ， 玩 家 仲 可 隨 時 Save 相 ， 若 隱 若 現 、 邊 位 黑 角 ， 咁 就 可 以 得 出 不 同 色 調 ， 十 分 過 癮 。</p>
<p><a href="http://www.poladroid.net/" rel="nofollow"  target="_blank">http://www.poladroid.net/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.avantbiz.com/2009/02/20/poladroid/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add startup and shutdown scripts in Windows</title>
		<link>http://blog.avantbiz.com/2009/01/30/add-startup-and-shutdown-scripts-in-windows/</link>
		<comments>http://blog.avantbiz.com/2009/01/30/add-startup-and-shutdown-scripts-in-windows/#comments</comments>
		<pubDate>Fri, 30 Jan 2009 04:22:25 +0000</pubDate>
		<dc:creator>klyuen</dc:creator>
				<category><![CDATA[Computer 電腦]]></category>

		<guid isPermaLink="false">http://blog.avantbiz.com/?p=103</guid>
		<description><![CDATA[There are some features of Microsoft Windows that can come very handy from time to time if you know how to use them. Startup and shutdown scripts feature is one of that. Firstly, you should know what scripts are all about. A script is a set of commands that your system can run in order [...]]]></description>
			<content:encoded><![CDATA[<p>There are some features of Microsoft Windows that can come very handy from time to time if you know how to use them. Startup and shutdown scripts feature is one of that.<br />
Firstly, you should know what scripts are all about. A script is a set of commands that your system can run in order to automate tasks.</p>
<p>If you&#8217;d like to run 2 programs and 20 commands every day for example, you don&#8217;t have to do this by hand. Simply use batch files or Visual Basic scripting and they&#8217;re done by a click of the mouse.</p>
<p>*NOTE: Learn some scripting basics if you are a novice; scripts that are not corectly written can block the computer, the windows startup process or the windows shutdown process.</p>
<p>For example, here is how you can delete all files in a folder (let&#8217;s say c:\temporary\) with a script:</p>
<p>1. Create a file called script.bat (Right click &#8211; New -&gt; Text document and open it with notepad; now click File &#8211; Save as and write it&#8217;s name and extension &#8211; .bat with the option Save as: All files)</p>
<p>2. Add the line bellow and save the file.</p>
<blockquote><p>del /q c:\temporary\*</p></blockquote>
<p>By running this batch file you will delete all files in that folder (/q forces delete without confirmation).</p>
<p>This is a very simple script; the posibilities are endless and you should learn to use visual basic scripting if you want to build some proffesional work.</p>
<p>Now if you want to integrate any kind of script to automatically run when Windows starts or shuts down (user logon/logoff), you must follow these steps:</p>
<ol>
<li>Click Start &#8211; Run and type mmc<br />
(note that you must be logged in with an administrator account for this)</li>
<li>On the Management console that starts, click File -&gt; Add/Remove Snap-in.</li>
<li>On the window that opens, search for Group Policy Object editor on the left panel, click Add and in the properties window that pops out leave the settings that are selected (Local computer) and click ok. The result should be like in the picture bellowClick &#8220;OK&#8221;</li>
<li>Navigate through the left panel by opening each branch like this: Console Root -&gt; Computer configuration -&gt; Windows Settings -&gt; Scripts (Startup/shutdown) </li>
<li>Open the properties window for Startup or Shutdown as you desire from the right panel; on the window that pops out add, edit or remove scripts that you want.</li>
</ol>
<p>This works on Windows 2000/2003/XP and Vista. Hope you found this useful.</p>
<p>(Quoted from tutorial5.com)</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.avantbiz.com/2009/01/30/add-startup-and-shutdown-scripts-in-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adobe Photoshop CS4</title>
		<link>http://blog.avantbiz.com/2008/11/13/adobe-photoshop/</link>
		<comments>http://blog.avantbiz.com/2008/11/13/adobe-photoshop/#comments</comments>
		<pubDate>Thu, 13 Nov 2008 03:59:41 +0000</pubDate>
		<dc:creator>klyuen</dc:creator>
				<category><![CDATA[Photography 攝影]]></category>
		<category><![CDATA[Web 網頁]]></category>

		<guid isPermaLink="false">http://blog.avantbiz.com/?p=96</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.avantbiz.com/wp-content/uploads/2008/11/adobephotoshop.jpg" target="_blank"><img class="alignnone size-medium wp-image-95" title="Adobe Photoshop" src="http://blog.avantbiz.com/wp-content/uploads/2008/11/adobephotoshop-300x187.jpg" alt="" width="300" height="187" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.avantbiz.com/2008/11/13/adobe-photoshop/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Display Html parm in Flash movie</title>
		<link>http://blog.avantbiz.com/2008/01/16/display-html-parm-in-flash-movie-2/</link>
		<comments>http://blog.avantbiz.com/2008/01/16/display-html-parm-in-flash-movie-2/#comments</comments>
		<pubDate>Wed, 16 Jan 2008 04:24:13 +0000</pubDate>
		<dc:creator>eddie</dc:creator>
				<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://blog.avantbiz.com/2008/01/16/display-html-parm-in-flash-movie-2/</guid>
		<description><![CDATA[http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_14808&#038;sliceId=2~]]></description>
			<content:encoded><![CDATA[<p><a href="http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_14808&#038;sliceId=2" rel="nofollow" >http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_14808&#038;sliceId=2</a>~</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.avantbiz.com/2008/01/16/display-html-parm-in-flash-movie-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Unicode show in Flash</title>
		<link>http://blog.avantbiz.com/2008/01/16/unicode-show-in-flash/</link>
		<comments>http://blog.avantbiz.com/2008/01/16/unicode-show-in-flash/#comments</comments>
		<pubDate>Wed, 16 Jan 2008 03:01:58 +0000</pubDate>
		<dc:creator>eddie</dc:creator>
				<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://blog.avantbiz.com/2008/01/16/unicode-show-in-flash/</guid>
		<description><![CDATA[1.System.useCodepage = false; 2.XML convert to Unicode 3.Choose &#8220;use device fonts&#8221; in flash text box more details show in the following link http://www.adobe.com/support/flash/languages/unicode_in_flmx/unicode_in_flmx11.html]]></description>
			<content:encoded><![CDATA[<p>1.System.useCodepage = false;</p>
<p>2.XML convert to Unicode</p>
<p>3.Choose &#8220;use device fonts&#8221; in flash text box</p>
<p>more details show in the following link<br />
<a href="http://www.adobe.com/support/flash/languages/unicode_in_flmx/unicode_in_flmx11.html" rel="nofollow" >http://www.adobe.com/support/flash/languages/unicode_in_flmx/unicode_in_flmx11.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.avantbiz.com/2008/01/16/unicode-show-in-flash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flash Player 各版本的使用率</title>
		<link>http://blog.avantbiz.com/2007/04/04/flash-player/</link>
		<comments>http://blog.avantbiz.com/2007/04/04/flash-player/#comments</comments>
		<pubDate>Wed, 04 Apr 2007 03:33:52 +0000</pubDate>
		<dc:creator>eddie</dc:creator>
				<category><![CDATA[Computer 電腦]]></category>
		<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://blog.avantbiz.com/2007/04/04/flash-player-%e5%90%84%e7%89%88%e6%9c%ac%e7%9a%84%e4%bd%bf%e7%94%a8%e7%8e%87/</guid>
		<description><![CDATA[Macromedia Flash content reaches 97.6% of Internet viewers http://www.macromedia.com/software/player_census/flashplayer/ Worldwide Ubiquity of Macromedia Flash by Version http://www.macromedia.com/software/player_census/flashplayer/version_penetration.html]]></description>
			<content:encoded><![CDATA[<p>Macromedia Flash content reaches 97.6% of Internet viewers<br />
<a href="http://www.macromedia.com/software/player_census/flashplayer/" rel="nofollow" >http://www.macromedia.com/software/player_census/flashplayer/</a></p>
<p>Worldwide Ubiquity of Macromedia Flash by Version<br />
<a href="http://www.macromedia.com/software/player_census/flashplayer/version_penetration.html" rel="nofollow" >http://www.macromedia.com/software/player_census/flashplayer/version_penetration.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.avantbiz.com/2007/04/04/flash-player/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Understanding the changes in the display API in ActionScript 3.0</title>
		<link>http://blog.avantbiz.com/2007/04/04/understanding-the-changes-in-the-display-api-in-actionscript-30/</link>
		<comments>http://blog.avantbiz.com/2007/04/04/understanding-the-changes-in-the-display-api-in-actionscript-30/#comments</comments>
		<pubDate>Wed, 04 Apr 2007 03:12:46 +0000</pubDate>
		<dc:creator>eddie</dc:creator>
				<category><![CDATA[Computer 電腦]]></category>
		<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://blog.avantbiz.com/2007/04/04/understanding-the-changes-in-the-display-api-in-actionscript-30/</guid>
		<description><![CDATA[官網的一篇基礎教學： http://www.adobe.com/devnet/actionscript/articles/display_api.html 針對 display 在 AS2 與 AS3 之間的改變。 要注意的重點在於： 1. 以前我們觀念中都是對 MovieClip 在作事情，現在要想像 所做的事情 都是發生在 記憶體 中，然後 必須 將做出來的東西 加到 某個 Container 中，才會顯示在 Stage 上。 2. 以前的 MovieClip，現在已經被重構其繼承架構，所以若是你要做的事情不是太複雜，不需要真的產生一個完整的 MC 的話，其實可以考慮建立其父類別的物件，譬如 Sprite。 3. 繪圖 API，也不再是直接透過 MovieClip 進行，而要透過 graphics 達到，這點，知道一下即可。 4. 事件處理程序，你必須越來越習慣 addEventListener，知道一下即可。]]></description>
			<content:encoded><![CDATA[<p>官網的一篇基礎教學：</p>
<p><a href="http://www.adobe.com/devnet/actionscript/articles/display_api.html" rel="nofollow" >http://www.adobe.com/devnet/actionscript/articles/display_api.html</a></p>
<p>針對 display 在 AS2 與 AS3 之間的改變。</p>
<p>要注意的重點在於：</p>
<p>1. 以前我們觀念中都是對 MovieClip 在作事情，現在要想像 所做的事情 都是發生在 記憶體 中，然後 必須 將做出來的東西 加到 某個 Container 中，才會顯示在 Stage 上。</p>
<p>2. 以前的 MovieClip，現在已經被重構其繼承架構，所以若是你要做的事情不是太複雜，不需要真的產生一個完整的 MC 的話，其實可以考慮建立其父類別的物件，譬如 Sprite。</p>
<p>3. 繪圖 API，也不再是直接透過 MovieClip 進行，而要透過 graphics 達到，這點，知道一下即可。</p>
<p>4. 事件處理程序，你必須越來越習慣 addEventListener，知道一下即可。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.avantbiz.com/2007/04/04/understanding-the-changes-in-the-display-api-in-actionscript-30/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Fix IE 7 Flash bug</title>
		<link>http://blog.avantbiz.com/2007/01/25/how-to-fix-ie-7-flash-bug/</link>
		<comments>http://blog.avantbiz.com/2007/01/25/how-to-fix-ie-7-flash-bug/#comments</comments>
		<pubDate>Thu, 25 Jan 2007 15:23:11 +0000</pubDate>
		<dc:creator>eddie</dc:creator>
				<category><![CDATA[Computer 電腦]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Web 網頁]]></category>

		<guid isPermaLink="false">http://blog.avantbiz.com/2007/01/25/how-to-fix-ie-7-flash-bug/</guid>
		<description><![CDATA[Adobe’s Developer Center has tackled this issue: http://www.adobe.com/devnet/activecontent/ http://blog.deconcept.com/flashobject/]]></description>
			<content:encoded><![CDATA[<p>Adobe’s Developer Center has tackled this issue:<br />
<a href="http://www.adobe.com/devnet/activecontent/" rel="nofollow">http://www.adobe.com/devnet/activecontent/</a></p>
<p><a href="http://blog.deconcept.com/flashobject/" rel="nofollow">http://blog.deconcept.com/flashobject/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.avantbiz.com/2007/01/25/how-to-fix-ie-7-flash-bug/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setup a remote connection to MySQL</title>
		<link>http://blog.avantbiz.com/2007/01/19/setup-a-remote-connection-to-mysql/</link>
		<comments>http://blog.avantbiz.com/2007/01/19/setup-a-remote-connection-to-mysql/#comments</comments>
		<pubDate>Fri, 19 Jan 2007 03:45:51 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Computer 電腦]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://blog.avantbiz.com/2007/01/19/setup-a-remote-connection-to-mysql/</guid>
		<description><![CDATA[To remotely connect to your MySQL databases, you must have an I.P.-based account. Login to your control panel and click on the side menu &#8220;ValueApps&#8221; then the &#8220;Database&#8221; tab. If you have not installed MySQL, click on &#8220;MySQL Database&#8221; under Available ValueApps. If you have already installed MySQL, click on &#8220;MySQLs&#8221; under Installed ValueApps. Check [...]]]></description>
			<content:encoded><![CDATA[<p>To remotely connect to your MySQL databases, you must have an I.P.-based account. Login to your control panel and click on the side menu &#8220;ValueApps&#8221; then the &#8220;Database&#8221; tab. If you have not installed MySQL, click on &#8220;MySQL Database&#8221; under Available ValueApps. If you have already installed MySQL, click on &#8220;MySQLs&#8221; under Installed ValueApps. Check the box &#8220;TCP/IP Connection&#8221;. Now login to your account via SSH.</p>
<p>Use the MySQL monitor to grant privileges.</p>
<p>Start the MySQL monitor with this command:</p>
<p>mysql</p>
<p>or:<br />
/usr/local/mysql/bin/mysql</p>
<p>Your shell prompt should now look like this:<br />
mysql></p>
<p>Run this command:</p>
<p>GRANT ALL PRIVILEGES ON *.* TO <a href="mailto:USERNAME@IP" rel="nofollow" >USERNAME@IP</a> IDENTIFIED BY &#8220;PASSWORD&#8221;;</p>
<p>USERNAME is the username that you would like to create.<br />
IP is the public IP address of your remote connection. See examples<br />
PASSWORD is the password you would like to use for this username.<br />
You now must flush MySQL&#8217;s privileges. Run this command:</p>
<p>FLUSH PRIVILEGES;</p>
<p>Run this command to exit MySQL:</p>
<p>exit;<br />
 </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.avantbiz.com/2007/01/19/setup-a-remote-connection-to-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ActionScript 3 QuickTip #2: The Timer Class</title>
		<link>http://blog.avantbiz.com/2006/12/19/actionscript-3-quicktip-2-the-timer-class/</link>
		<comments>http://blog.avantbiz.com/2006/12/19/actionscript-3-quicktip-2-the-timer-class/#comments</comments>
		<pubDate>Mon, 18 Dec 2006 16:26:24 +0000</pubDate>
		<dc:creator>eddie</dc:creator>
				<category><![CDATA[Computer 電腦]]></category>
		<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://blog.avantbiz.com/2006/12/19/actionscript-3-quicktip-2-the-timer-class/</guid>
		<description><![CDATA[In previous version of ActionScript there were a couple of different ways to trigger events based on time. The setInterval() and setTimeout() functions were the two most commonly used ways of calling a function after a specified amount of time had lapsed. In ActionScript 3 we now have the Timer class which lives in the [...]]]></description>
			<content:encoded><![CDATA[<p>In previous version of ActionScript there were a couple of different ways to trigger events based on time. The setInterval() and setTimeout() functions were the two most commonly used ways of calling a function after a specified amount of time had lapsed. In ActionScript 3 we now have the <a href="http://livedocs.macromedia.com/flex/2/langref/flash/utils/Timer.html" rel="nofollow" >Timer</a> class which lives in the <em><a href="http://livedocs.macromedia.com/flex/2/langref/flash/utils/package-detail.html" rel="nofollow" >flash.utils</a></em> package. This class contains all the functionality that you will ever need for time-based applications. In order to use the class, you first must import the <em><a href="http://livedocs.macromedia.com/flex/2/langref/flash/utils/package-detail.html" rel="nofollow" >flash.utils</a></em> package as seen is the example below. The <a href="http://livedocs.macromedia.com/flex/2/langref/flash/utils/Timer.html" rel="nofollow" >Timer</a> constructor expects one argument that represents the desired delay in milliseconds between function calls. An optional seconds argument determines the number of times to call the function. The default for this value is 0, which means that it will call the function indefinitely. If you wanted to replicate the functionality of the deprecated setTimeout() function, you can simply pass 1 as the value for this parameter.</p>
<p>In my example below I am creating a Timer that will fire twice a second, but I haven&#8217;t yet told it what function to call every time the delay has passed. To do this we need to respond to the <em>timer</em> event of the Timer class and give it the name of the function that will handle the event. At this point our Timer will be setup for use but we still need to call the Timer.start() method in order to get things started. In my implementation below I am simply doing a trace() to the output window every time the Timer fires showing how many times it has fired. To get this value I am reading the Timer.currentCount property.</p>
<div>Actionscript:   </p>
<div>
<div>
<ol>
<li>
<div>// We need to import the utils package</div>
</li>
<li>
<div>import flash.utils.*;</div>
</li>
<li>
<div>// Create a new Timer object with a delay of 500 ms</div>
</li>
<li>
<div>var myTimer:Timer = new Timer(500);</div>
</li>
<li>
<div>myTimer.addEventListener(&#8220;timer&#8221;, timedFunction);</div>
</li>
<li>
<div>// Start the timer</div>
</li>
<li>
<div>myTimer.start();</div>
</li>
<li>
<div>// Function will be called every 500 milliseconds</div>
</li>
<li>
<div>function timedFunction(eventArgs:TimerEvent)</div>
</li>
<li>
<div>{</div>
</li>
<li>
<div>        trace(&#8220;Timer fired &#8221; + myTimer.currentCount + &#8221; times.&#8221;);</div>
</li>
<li>
<div>}</div>
</li>
</ol>
</div>
</div>
<p>Check out the <a href="http://livedocs.macromedia.com/flex/2/langref/" rel="nofollow" >AS 3 docs</a> to see all of the available properties and methods of this great new class.</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.avantbiz.com/2006/12/19/actionscript-3-quicktip-2-the-timer-class/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ActionScript 3 QuickTip #1: Dynamic Frame Rates</title>
		<link>http://blog.avantbiz.com/2006/12/14/actionscript-3-quicktip-4-dynamic-frame-rates/</link>
		<comments>http://blog.avantbiz.com/2006/12/14/actionscript-3-quicktip-4-dynamic-frame-rates/#comments</comments>
		<pubDate>Thu, 14 Dec 2006 11:54:54 +0000</pubDate>
		<dc:creator>eddie</dc:creator>
				<category><![CDATA[Computer 電腦]]></category>
		<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://blog.avantbiz.com/2006/12/14/actionscript-3-quicktip-4-dynamic-frame-rates/</guid>
		<description><![CDATA[ActionScript 3 QuickTip #1: Dynamic Frame Rates This is a *very* cool new feature in ActionScript 3. We now have the ability to dynamically change the SWF frame rate at runtime using ActionScript. In the example below I have a somewhat creepy clown who is animating from side-to-side on the screen. You can use the [...]]]></description>
			<content:encoded><![CDATA[<p><strong>ActionScript 3 QuickTip #1: Dynamic Frame Rates</strong></p>
<p>This is a *very* cool new feature in ActionScript 3. We now have the ability to dynamically change the SWF frame rate at runtime using ActionScript. In the example below I have a somewhat creepy clown who is animating from side-to-side on the screen. You can use the slider to change the frame rate from 0 to 800 and something. There are a lot of applications for this such as lowering the frame rate for slower machines dynamically. The AS 3 code from the example is posted below:</p>
<ol>
<li>
<div>this.stage.frameRate = 0;</div>
</li>
<li>
<div>rate.text = “0 fps”;</div>
</li>
<li>
<div>thumb.addEventListener(MouseEvent.MOUSE_DOWN, starter);</div>
</li>
<li>
<div>thumb.addEventListener(MouseEvent.MOUSE_UP, stopper);</div>
</li>
<li>
<div>thumb.addEventListener(MouseEvent.MOUSE_OUT, stopper);</div>
</li>
<li>
<div>thumb.addEventListener(MouseEvent.MOUSE_MOVE, mover);</div>
</li>
<li>
<div>function starter(args:Event)</div>
</li>
<li>
<div>{</div>
</li>
<li>
<div>        thumb.startDrag(false, new Rectangle(track.x, thumb.y, track.width, 0));</div>
</li>
<li>
<div>}</div>
</li>
<li>
<div>function stopper(args:Event)</div>
</li>
<li>
<div>{</div>
</li>
<li>
<div>        thumb.stopDrag();</div>
</li>
<li>
<div>}</div>
</li>
<li>
<div>function mover(args:Event)</div>
</li>
<li>
<div>{</div>
</li>
<li>
<div>        var dist:Number = (thumb.x &#8211; track.x) / (track.width + track.x);</div>
</li>
<li>
<div>        this.stage.frameRate = Math.round(dist*1000);</div>
</li>
<li>
<div>        rate.text = Math.round(dist*1000).toString() + ” fps”;</div>
</li>
<li>
<div>}</div>
</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://blog.avantbiz.com/2006/12/14/actionscript-3-quicktip-4-dynamic-frame-rates/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

