<?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>Anistar RIA Blog &#187; ActionScript</title>
	<atom:link href="http://blog.riaproject.com/category/actionscript/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.riaproject.com</link>
	<description>Rich Internet Application 知識誌</description>
	<lastBuildDate>Fri, 16 Jul 2010 08:25:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Flash on iPhone，代誌就這麼發生了</title>
		<link>http://blog.riaproject.com/actionscript/1460.html</link>
		<comments>http://blog.riaproject.com/actionscript/1460.html#comments</comments>
		<pubDate>Tue, 06 Oct 2009 03:44:13 +0000</pubDate>
		<dc:creator>victor</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[技術新聞]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[酷玩意]]></category>

		<guid isPermaLink="false">http://blog.riaproject.com/?p=1460</guid>
		<description><![CDATA[記得不久前，Apple堅持不讓Adobe的Flash Player上他的新聞才沸沸揚揚一陣子， 經過Adobe檯面上努力與Apple的交涉後&#8230;.結果還是一樣，不讓你上～口亨～ 許多觀測家也預測，因為Adobe的平台整合計畫遇到iPhone平台的重挫， 將對該公司未來的Web Application產生嚴重的影響， 結果私底下，山不轉路轉，路不轉&#8230;.那長頸鹿轉！？(鹿哥：干我屁事！) Adobe乾脆在下一個版本的CS5上，直接讓開發者將成品發佈成iphone的objective c格式， 也就是說，Flash應用程式可以在iPhone上執行了&#8230;. 詳情請看Adobe Labs的新聞： http://labs.adobe.com/technologies/flashcs5/appsfor_iphone/ 好了～講了這麼多好像都在算命，講的都是未來的事一樣！ 其實真不是未來，事情在今天不小心就發生了，而且比其他平台都出現的早&#8230;..Now&#8230;.就是現在！ 重點在下面這一句： These applications are available now for you to download from the Apple App Store 小弟沒有這台高檔的手機，所以也無從測試求證。 手上有iPhone的朋友，有機會去玩玩看囉～ PS. 因為不是真的安裝Adobe的Flash player， 所以～網頁上還是依然看不到Flash效果， 不過至少對ActionScript3.0開發者來說， 找到一扇進入iPhone的門， 不會被某個平台排除於外也算一個好消息XD]]></description>
		<wfw:commentRss>http://blog.riaproject.com/actionscript/1460.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Bitmap與BitmapData</title>
		<link>http://blog.riaproject.com/actionscript/1185.html</link>
		<comments>http://blog.riaproject.com/actionscript/1185.html#comments</comments>
		<pubDate>Thu, 21 May 2009 23:11:39 +0000</pubDate>
		<dc:creator>xiuce</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[AIR]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://blog.riaproject.com/?p=1185</guid>
		<description><![CDATA[許多朋友在使用Bitmap和BitmapData時很容易犯一個錯誤 其實這個錯誤也經常發生DataGrid和DataProvider上面 在Adobe Help上有明確的說明Bitmap和BitmapData差別 flash.display.Bitmap The Bitmap class represents display objects that represent bitmap images. flash.display.BitmapData The BitmapData class lets you work with the data (pixels) of a Bitmap object. 由此可知Bitmap Class的主要功能是顯示點陣影像 而BitmapData Class的功能主要是處理Bitmap每個像素資料 所以當我們要處理影像時千千萬萬不要對Bitmap下手 因為Bitmap的功能只能把影像的資料顯示出來 而要處理影像必須先把Bitmap的資料交給BitmapData 再由BitmapData來對每個pixels處理才行 還有一個也是經常有人會發生的錯誤是 直接把BitmapA的bitmapData Assign給BitmapB的bitmapData 當對BitmapB的BitmapData做更動時BitmapA也會跟著更動 因為這兩個Bitmap根本就Bindding同一個份BitmapData 就像兩個DataGrid Bindding同一個份DataProvider的意思是一樣的 當其中的DataGrid的dataProvider做修改,兩個同時都會修改 所以當希望兩個影像能各做各的事的話記得要再new一個新的BitmapData才行 否則只會把兩個影像的資料綁死在一起喔^^ PS: DataGrid和Bitmap主要的功能是把資料內容顯示出來,對於資料的處理還是必須交給DataProvider(Arraycollection)或BitmapData才妥當。]]></description>
		<wfw:commentRss>http://blog.riaproject.com/actionscript/1185.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>iPhone上的ActionScript 3.0 API參考程式</title>
		<link>http://blog.riaproject.com/actionscript/1011.html</link>
		<comments>http://blog.riaproject.com/actionscript/1011.html#comments</comments>
		<pubDate>Wed, 11 Mar 2009 02:20:03 +0000</pubDate>
		<dc:creator>anistar</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[AIR]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[iPhone]]></category>

		<guid isPermaLink="false">http://blog.riaproject.com/?p=1011</guid>
		<description><![CDATA[Mike非常好心的將ActionScript 3.0的API(包含Flash和Flex)做成了一隻iPhone的程式給iPhone的使用者使用，更棒的是這個軟體是免費的。]]></description>
		<wfw:commentRss>http://blog.riaproject.com/actionscript/1011.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>在ActionScript 3.0取得用戶資訊</title>
		<link>http://blog.riaproject.com/actionscript/438.html</link>
		<comments>http://blog.riaproject.com/actionscript/438.html#comments</comments>
		<pubDate>Sat, 27 Sep 2008 13:33:04 +0000</pubDate>
		<dc:creator>anistar</dc:creator>
				<category><![CDATA[ActionScript]]></category>

		<guid isPermaLink="false">http://blog.riaproject.com/?p=438</guid>
		<description><![CDATA[若是要判斷使用者可以使用的資源，就可以使用以下的方法來得知目前的Flash Player的狀況，最對狀況判斷非常有幫助：  沒什麼好解釋的，想玩的人可以自己試看看。 trace("avHardwareDisable: " + Capabilities.avHardwareDisable); trace("hasAccessibility: " + Capabilities.hasAccessibility); trace("hasAudio: " + Capabilities.hasAudio); trace("hasAudioEncoder: " + Capabilities.hasAudioEncoder); trace("hasEmbeddedVideo: " + Capabilities.hasEmbeddedVideo); trace("hasMP3: " + Capabilities.hasMP3); trace("hasPrinting: " + Capabilities.hasPrinting); trace("hasScreenBroadcast: " + Capabilities.hasScreenBroadcast); trace("hasScreenPlayback: " + Capabilities.hasScreenPlayback); trace("hasStreamingAudio: " + Capabilities.hasStreamingAudio); trace("hasVideoEncoder: " + Capabilities.hasVideoEncoder); trace("isDebugger: " + Capabilities.isDebugger); trace("language: " + Capabilities.language); [...]]]></description>
		<wfw:commentRss>http://blog.riaproject.com/actionscript/438.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>關於用ActionScript 3.0開發Flash Lite的消息</title>
		<link>http://blog.riaproject.com/actionscript/437.html</link>
		<comments>http://blog.riaproject.com/actionscript/437.html#comments</comments>
		<pubDate>Wed, 18 Jun 2008 23:55:56 +0000</pubDate>
		<dc:creator>anistar</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Mobile]]></category>
		<category><![CDATA[軟體新聞]]></category>

		<guid isPermaLink="false">http://blog.riaproject.com/?p=437</guid>
		<description><![CDATA[趁剛好有一個休息的空檔和接到附近san jose Tech博物館(蠻想去逛逛的，但是時再沒時間)的免費Wifi訊號，趕快分享一下今天在Adobe聽到的一些官方消息． 相信很多人都在關心什麼時候才能在Flash Lite上用ActionScript 3.0來開發，壞消息時在今年Adobe CS4上市時，關於這點還是沒有改變，但是好消息是官方表示這個計畫正在進行中，在下一個Flash Lite的版本(姑且稱為Flash Lite 4)就可以使用ActionScript 3.0了． 下一個大家想問的應該就是到底下一個版本的Flash Lite什麼時候會出來，官方表示該產品將會在2009年發布，所以想用ActionScript 3.0開發的人，恐怕還要再等一下，其他一些相關的消息等回國有空在慢慢跟大家分享．]]></description>
		<wfw:commentRss>http://blog.riaproject.com/actionscript/437.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>關於 ActionScript 3.0 打造互動網頁力與美 之 P230頁之分享</title>
		<link>http://blog.riaproject.com/actionscript/426.html</link>
		<comments>http://blog.riaproject.com/actionscript/426.html#comments</comments>
		<pubDate>Mon, 12 May 2008 03:28:24 +0000</pubDate>
		<dc:creator>anistar</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[書籍]]></category>

		<guid isPermaLink="false">http://blog.riaproject.com/?p=426</guid>
		<description><![CDATA[首先非常謝謝YoYo熱心的提供他的經驗，如果你遇到的問題跟他一樣，或許你可以參考看看他的作法，這個文章結尾我在跟大家講我建議的作法。  以下是他的全文回應：  老師,您好: 之前請教您關於P230的問題 對照了你的書本很久 終於找到了答案 可是答案不在書本裡 呵呵! 原來是在"檔案→發佈設定→FLASH→設定" 只勾選"警告模式"和"降低檔案大小並增強效能"兩個選項 就不會再出現問題了&#8230;. 原本一直會出現"1118: 靜態類型 Object 的值以隱含方式強制轉型成可能不相關的類型 flash.display:MovieClip。"的錯誤訊息 因為在設定裡我的FLASH是全部都有勾選 後來對照老師的範例檔 發現老師的範例裡只有勾選上述兩個選項 所以改過之後就可以了 在此和老師分享哦~~~~~ 當然如果遇到這個問題可以參考YoYo的作法，不啟用嚴謹模式，當初Adobe這樣在設計Flash的時候是體諒美術設計師不用去參與複雜的資料形態轉換問題，所以若想直接避開這個問題就採用YoYo的作法。 不過若是你想要精通ActionScript 3.0最好習慣一下ActionScript 3.0是很嚴謹的這個事實，如果以後有一天要進入Flex也會比較適應一些，會遇到"1118: 靜態類型 Object 的值以隱含方式強制轉型成可能不相關的類型 flash.display:MovieClip。"這個訊息，最主要是事件體(Event Object)在編譯器中他會視同他為Object型態，雖然事實上我們在寫的時候非常清楚觸發者應該是MovieClip才對，好吧，這時候只要非常清楚的告知編譯器他是哪一種資料型態就行了，作法跟第4章型態轉換方法是一樣的，你可以寫成： var prodMc:MovieClip = event.target as MovieClip; var prodMc:MovieClip = MovieClip(event.target);  這兩種方法任選一種即可，這種嚴謹的寫法就可以完全通過編譯器的檢查了。 後記：很高興YoYo無私的分享，若你也有一些小技巧，也歡迎你跟大家分享，這樣世界才會更美好不是嗎？]]></description>
		<wfw:commentRss>http://blog.riaproject.com/actionscript/426.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ActionScript 3.0打造互動網頁力與美第二刷書現身</title>
		<link>http://blog.riaproject.com/actionscript/388.html</link>
		<comments>http://blog.riaproject.com/actionscript/388.html#comments</comments>
		<pubDate>Sun, 23 Mar 2008 04:21:36 +0000</pubDate>
		<dc:creator>anistar</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[書籍]]></category>

		<guid isPermaLink="false">http://blog.riaproject.com/?p=388</guid>
		<description><![CDATA[其實這篇早就該要分享的，但是每天回到家就癱了，實在沒什麼時間拍照(已經半年沒按到快門啦)，早上去投完票，趁下午要上飛機前趕快把這篇敲出來。 應該大家沒發現我寫的 [ActionScript 3.0打造互動網頁力與美]這本書換包裝了吧？老實說，要是沒注意看我可能也很難發現，來跟大家分享一下新包裝什麼樣子。 要從封面上看出差異是很難的，因為封面沒變，請翻轉90度看書背，有發現差異在哪嗎？沒錯，印刷的特別色換了，之前的顏色在昏暗的環境底下實在很難看到黑色字體的ActionScript字樣，換成這樣清楚多了，大家要在書店找到它就不會找到眼睛脫窗了。 XD 當然第一刷賣完不能只換換封面就了事了吧，沒錯，重要的當然是把幾個小錯字給更正過來，千萬不要以為直接刷就好，光是第一刷我跟編輯就做過5次校對，看的還真是頭昏眼花，但是萬萬沒想到書序的部落格網址居然打錯了沒人發現 ，一定是大家都把精力放在書的內容了。 Orz 之前是打 http://blog.riaporject.com 這次改成正確的 http://blog.riaproject.com 這個網址了，不過搞不好大家都不看書序的。XD 來囉，證據來了，有看到"二版一刷"這個字嗎？這要先感謝有買這本書的朋友支持，這樣我才能在第一刷賣完對書的內容有機會坐一些調整。 或許眼尖的人有發現日期是2008年1月，沒錯，其實早就刷出來了，不過真的是沒時間拍照啊，才到今天咬著牙一口氣把他拍完兼分享出來。 Orz 之前有買第一版書的人看清楚囉，這P159頁的公式上次打錯字了，這版已經修正過來了。 第五章和之後的一些章節程式碼有作稍微的修正，可以支援正確最新的Flash版本，當然之前的一些討論在留言板中都有，大家可以去裡面找答案。 大家看到這篇的時候我其實已經離開台灣了，下個禮拜告假一周，若有什麼問題先留言吧，等我回來再一一位大家做回答。 對[Flash CS3 ActionScript 3.0打造互動網頁力與美]一書有興趣的朋友可以點連結看看內容，或是到各大書局做翻閱。]]></description>
		<wfw:commentRss>http://blog.riaproject.com/actionscript/388.html/feed</wfw:commentRss>
		<slash:comments>22</slash:comments>
		</item>
		<item>
		<title>在Flash中利用PrintJob列印多頁的內容 (ActionScript 2.0)</title>
		<link>http://blog.riaproject.com/actionscript/386.html</link>
		<comments>http://blog.riaproject.com/actionscript/386.html#comments</comments>
		<pubDate>Sat, 22 Mar 2008 05:10:36 +0000</pubDate>
		<dc:creator>anistar</dc:creator>
				<category><![CDATA[ActionScript]]></category>

		<guid isPermaLink="false">http://blog.riaproject.com/?p=386</guid>
		<description><![CDATA[[此篇供Flash ActionScript 2.0參考] 這篇是延續[在Flash中利用PrintJob列印多頁的內容 (ActionScript 3.0)]這個主題 ，回答完當隔天被問說可不可以寫ActionScript 2.0的版本，其實內容幾乎都一模一樣，好吧！我是好人，不過別發好人卡給我啊。 XD 說明我就不多說了，請自行參考[在Flash中利用PrintJob列印多頁的內容 (ActionScript 3.0)]這篇，順便你可以比較一下，ActionScript 2.0和ActionScript 3.0差在哪。 ActionScript 2.0的寫法如下： this.stop(); var myPrintJob:PrintJob = new PrintJob(); myButton.onPress = function() {  myPrintJob.start();  myPrintJob.addPage(this,null,null,1);  myPrintJob.addPage(this,null,null,2);  myPrintJob.send(); };  後記：Abner希望你有看到這篇，因為我今晚要出國，你的mail我放在公司，這應該算把你的問題給解決了。]]></description>
		<wfw:commentRss>http://blog.riaproject.com/actionscript/386.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>在Flash中利用PrintJob列印多頁的內容 (ActionScript 3.0)</title>
		<link>http://blog.riaproject.com/actionscript/383.html</link>
		<comments>http://blog.riaproject.com/actionscript/383.html#comments</comments>
		<pubDate>Thu, 20 Mar 2008 10:07:47 +0000</pubDate>
		<dc:creator>anistar</dc:creator>
				<category><![CDATA[ActionScript]]></category>

		<guid isPermaLink="false">http://blog.riaproject.com/?p=383</guid>
		<description><![CDATA[[此篇可供使用ActionScript 3.0的應用參考] 可以用ActionScript 3.0的工具開始變多了，所以就不額外提示Flex，AIR也可以用了，以後用程式語言版本標明。 寫這篇的原因在於他的問題可能就是大家的問題，乾脆回完丟在Blog上，以後大家要找答案就方便多了，因為最近實在太忙了，剛好公司跟家裡都忙翻了，所以先依照來信的順序回，不然下禮拜我不在台灣，怕問問題的同學急得像熱鍋上的螞蟻，他的問題如下： 宋老師你好，我試之前上課的學員，想請教一個關於AS 列印控制的問題。 我想用一個按鈕來控制列印兩個不同的影格資料，並且要能縮放到A4的紙張上。 我用了print()，但似乎只能有一個影格的屬性設定為#p，否則編譯swf會有錯誤訊息，並且列印結果有些許不正常。 後來改用printJob() printaddPage() 的方式，可以縮放舞台資料到A4紙上正常列印， 但是無法列印兩頁。 請問有方法可以解決我的問題嗎？ 謝謝你！ 這個問題其實不難，只要善用PrintJob這個類別檔就好了，這邊我們舉了一個簡單的例子，如果你希望當按鈕按下去的時候可以列印第1個影格和第2個影格，那麼你只需要建立一個新的PrintJob，接下來用start()，addPage()，send()的方法完成列印動作就可以了 下面是一個很單純的對應Code： myButton.addEventListener(MouseEvent.CLICK,clickHandler);function clickHandler(event:MouseEvent):void {  var myPrintJob:PrintJob = new PrintJob();  myPrintJob.start();  myPrintJob.addPage(this,null,null,1);  myPrintJob.addPage(this,null,null,2);  myPrintJob.send(); } 如果你了解的話，應該就可以直接加以改變，變成你所需要的程式碼了，例如列印所有影格內容之類的，好啦，今天先回答到這，明天先來整理一下Adobe AIR可能大家會有興趣的問題。]]></description>
		<wfw:commentRss>http://blog.riaproject.com/actionscript/383.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>用 ActionScript 2.0 和 ActionScript 3.0 播放 H264 Mp4 影片</title>
		<link>http://blog.riaproject.com/actionscript/284.html</link>
		<comments>http://blog.riaproject.com/actionscript/284.html#comments</comments>
		<pubDate>Wed, 26 Dec 2007 07:52:36 +0000</pubDate>
		<dc:creator>anistar</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[H264]]></category>

		<guid isPermaLink="false">http://blog.riaproject.com/?p=284</guid>
		<description><![CDATA[本來H264 ( mp4 ) 在Flash ( ActionScript 2.0 和 ActionScript 3.0 )的中播放的實驗並沒有排在優先的實驗計畫中，每天要做的事情實在太多了，一個一個來啊，但是昨天晚上網友Kelvin分享了他在Adobe所讀到的一篇關於 ActionScript 3.0 播放 H264 Mp4 的文章，似乎可以直接播放 mp4 的影片，恩，這倒影起我的好奇心，反正不用花太多的時間，優先讓這項測試插隊進來，若對 ActionScript 播放 H264影片有興趣的人，就可以參考這篇文章。 等一下我會示範如何用 ActionScript 2.0 和 ActionScript 3.0 叫入 H264編碼的的影片，不過這是有前提的，你必須至少要滿足兩個前提：  至少要有新版的Flash Player (這個測試是用9,0,115,0的版本)，否則會無法玩成解碼的動作，要下載新版的Flash Player，可以到Adobe網站下載。 至少要有一段以H264編碼的Mp4影片，沒有的話要怎麼試啊 XD，若是手邊真的沒有這種影片，那可以問google大神這個關鍵字"H264 mp4 轉檔"，至少還可以找到轉檔的程式可以將手邊的影片轉成mp4的測試檔。 好啦，如果已經準備好了，就可以開始製作啦，沒錯，你猜的沒錯，我也沒有這種影片，所以我是用轉碼的，要試就來試點刺激的，下圖是轉檔程式中的設定，直接給他衝1280&#215;720的解析度了，不過編碼要選H264 就是了，要不然到時候編碼格式不對，Flash Player也不會對你客氣&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..直接罷工 XD 來來來，看清楚了，真的是mp4 (MPEG-4)的影片格式，好啦，原料都有了，來開始寫ActionScript吧。 這邊的ActionScript示範就不多花口水，也不寫太多的功能，反正只要叫出來能撥就好，細節我就不太多說了，可以參考Adobe原廠的說明或是[Flash CS3 professional 打造互動設計力與美]一書中第10章中的介紹，上面有將NetConnection和NetStream原理和使用解釋的非常清楚了。  首先先示範ActionScript 2.0的寫法： var video:Video; var nc:NetConnection = new [...]]]></description>
		<wfw:commentRss>http://blog.riaproject.com/actionscript/284.html/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>
