<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" gd:etag="W/&quot;Ck8FQngyfyp7ImA9WhRaFEw.&quot;"><id>tag:blogger.com,1999:blog-1678073721332451971</id><updated>2012-02-16T08:46:53.697-08:00</updated><category term="題外話" /><category term="Remoting" /><category term="Cairngorm" /><category term="MVC" /><category term="air" /><category term="Framework" /><category term="三角函數" /><category term="Actionscript" /><category term="DrawAPI" /><category term="精選文章" /><category term="Flex" /><category term="未分類" /><category term="E4X" /><category term="01.Object-Oriented in ActionScript 3.0 - 物件導向" /><category term="00.Basics - 基礎" /><category term="AMF" /><category term="Programming" /><category term="PureMVC" /><category term="SDK" /><category term=".NET" /><category term="教學資源" /><category term="FluorineFx" /><title>RIA學習筆記</title><subtitle type="html">Android,iOS,Web Application - Rich Internet Application</subtitle><link rel="http://schemas.google.com/g/2005#feed" type="application/atom+xml" href="http://www.ria.tw/feeds/posts/default" /><link rel="alternate" type="text/html" href="http://www.ria.tw/" /><link rel="next" type="application/atom+xml" href="http://www.blogger.com/feeds/1678073721332451971/posts/default?start-index=26&amp;max-results=25&amp;redirect=false&amp;v=2" /><author><name>蛋蛋蟻</name><uri>http://www.blogger.com/profile/00074796415551242621</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://2.bp.blogspot.com/_VBIfPT2tDEA/TEqX3RVs69I/AAAAAAAAJNk/iM9dXSy4H8s/S220/myhat.jpg" /></author><generator version="7.00" uri="http://www.blogger.com">Blogger</generator><openSearch:totalResults>29</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/atom+xml" href="http://feeds.feedburner.com/riatw" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="riatw" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><entry gd:etag="W/&quot;CUMMRXo5fyp7ImA9WxFaGUg.&quot;"><id>tag:blogger.com,1999:blog-1678073721332451971.post-1389698401000118561</id><published>2010-05-27T04:51:00.000-07:00</published><updated>2010-07-23T23:38:04.427-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-07-23T23:38:04.427-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="未分類" /><title>詢問閱讀以及訂閱狀況...</title><summary>請問有人在閱讀我的Blog嗎?有的請留個言..因為我想搬到Blogger(blogspot)，有人會需要翻牆嗎?</summary><link rel="replies" type="application/atom+xml" href="http://www.ria.tw/feeds/1389698401000118561/comments/default" title="張貼意見" /><link rel="replies" type="text/html" href="http://www.ria.tw/2010/05/blog-post.html#comment-form" title="7 個意見" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1678073721332451971/posts/default/1389698401000118561?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1678073721332451971/posts/default/1389698401000118561?v=2" /><link rel="alternate" type="text/html" href="http://www.ria.tw/2010/05/blog-post.html" title="詢問閱讀以及訂閱狀況..." /><author><name>蛋蛋蟻</name><uri>http://www.blogger.com/profile/00074796415551242621</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://2.bp.blogspot.com/_VBIfPT2tDEA/TEqX3RVs69I/AAAAAAAAJNk/iM9dXSy4H8s/S220/myhat.jpg" /></author><thr:total>7</thr:total></entry><entry gd:etag="W/&quot;D0QAQHozcSp7ImA9WhZQEE4.&quot;"><id>tag:blogger.com,1999:blog-1678073721332451971.post-1737281155926299844</id><published>2010-05-10T17:56:00.000-07:00</published><updated>2011-04-17T03:15:41.489-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-04-17T03:15:41.489-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="MVC" /><category scheme="http://www.blogger.com/atom/ns#" term="Actionscript" /><category scheme="http://www.blogger.com/atom/ns#" term="三角函數" /><category scheme="http://www.blogger.com/atom/ns#" term="Framework" /><category scheme="http://www.blogger.com/atom/ns#" term="Flex" /><category scheme="http://www.blogger.com/atom/ns#" term="PureMVC" /><category scheme="http://www.blogger.com/atom/ns#" term="DrawAPI" /><title>[PureMVC]初學者入門教學Part.5 新增功能!? &amp; 範例DEMO</title><summary>基本上，上章已經將PureMVC的架構都示範告一個段落了這章主要是凸顯使用MVC架構的好處!!很多人認為，只是顯示個時間而已為啥要用這麼麻煩(因為比較好寫範例XD)但是當你的老闆，突然開給你要更改需求，要你的程式可以上太空!!這你可能只要更動某部分的程式，主體也不會被影響到，移掉功能就像是安裝Plug-in一樣不用砍掉重練!!回到主題，之前的顯示時間方式是digital clock，現在新需求來了，需要把它改成有 時針-分針-秒針的時鐘你該怎麼改呢?可以先想一想，或自己先做一下，在參考下面的範例 ====================新增功能範例分隔線=======================這是這次功能的預視圖基本就是新增一個圖型化顯示時間的View(Component)替換原本的文字顯示方式在PureMVC中的架構中其實要做的事情就是加一組view&amp;Mediator</summary><link rel="replies" type="application/atom+xml" href="http://www.ria.tw/feeds/1737281155926299844/comments/default" title="張貼意見" /><link rel="replies" type="text/html" href="http://www.ria.tw/2010/05/puremvcpart5-demo.html#comment-form" title="1 個意見" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1678073721332451971/posts/default/1737281155926299844?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1678073721332451971/posts/default/1737281155926299844?v=2" /><link rel="alternate" type="text/html" href="http://www.ria.tw/2010/05/puremvcpart5-demo.html" title="[PureMVC]初學者入門教學Part.5 新增功能!? &amp;amp; 範例DEMO" /><author><name>蛋蛋蟻</name><uri>http://www.blogger.com/profile/00074796415551242621</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://2.bp.blogspot.com/_VBIfPT2tDEA/TEqX3RVs69I/AAAAAAAAJNk/iM9dXSy4H8s/S220/myhat.jpg" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://lh6.ggpht.com/_K5M6kKhm10Q/S-g6wXxgfSI/AAAAAAAAANg/h42XwJhsVmE/s72-c/01.jpg?imgmax=288" height="72" width="72" /><thr:total>1</thr:total></entry><entry gd:etag="W/&quot;D0IBRH4_fSp7ImA9WhZQEE4.&quot;"><id>tag:blogger.com,1999:blog-1678073721332451971.post-1165040810521082524</id><published>2010-05-09T10:41:00.000-07:00</published><updated>2011-04-17T03:19:15.045-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-04-17T03:19:15.045-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="MVC" /><category scheme="http://www.blogger.com/atom/ns#" term="Actionscript" /><category scheme="http://www.blogger.com/atom/ns#" term="Framework" /><category scheme="http://www.blogger.com/atom/ns#" term="Flex" /><category scheme="http://www.blogger.com/atom/ns#" term="PureMVC" /><title>[PureMVC]初學者入門教學Part.4 Proxy and 範例Demo</title><summary>延續上章在Command中我們有Proxy的操作Proxy - 負責資料部份的操作，在MVC中是屬於Model的部份，管理Data Object而操作的資料我們都是以Data Object (Value Object) 的方式來做儲存在這次的範例中，我們是做時鐘所以實作了一個VO為ClockVO ClockVO.as
package tw.ria.pureMVCclock.model.vo
{
public class ClockVO
{
[Bindable]
public var hour:Number;
public var minute:Number;
public var second:Number;
public var isRunning:Boolean;

public function ClockVO(h:Number, m:Number, s:Number, r:</summary><link rel="replies" type="application/atom+xml" href="http://www.ria.tw/feeds/1165040810521082524/comments/default" title="張貼意見" /><link rel="replies" type="text/html" href="http://www.ria.tw/2010/05/puremvcpart4-proxy-and-demo.html#comment-form" title="0 個意見" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1678073721332451971/posts/default/1165040810521082524?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1678073721332451971/posts/default/1165040810521082524?v=2" /><link rel="alternate" type="text/html" href="http://www.ria.tw/2010/05/puremvcpart4-proxy-and-demo.html" title="[PureMVC]初學者入門教學Part.4 Proxy and 範例Demo" /><author><name>蛋蛋蟻</name><uri>http://www.blogger.com/profile/00074796415551242621</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://2.bp.blogspot.com/_VBIfPT2tDEA/TEqX3RVs69I/AAAAAAAAJNk/iM9dXSy4H8s/S220/myhat.jpg" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://lh4.ggpht.com/_K5M6kKhm10Q/S-aDRzpCXaI/AAAAAAAAANA/renWV4Rvx5c/s72-c/00.jpg?imgmax=288" height="72" width="72" /><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;DEQGRXg5eyp7ImA9WhZQEE4.&quot;"><id>tag:blogger.com,1999:blog-1678073721332451971.post-5721935811314781218</id><published>2010-05-04T19:19:00.000-07:00</published><updated>2011-04-17T03:32:04.623-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-04-17T03:32:04.623-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="MVC" /><category scheme="http://www.blogger.com/atom/ns#" term="Actionscript" /><category scheme="http://www.blogger.com/atom/ns#" term="Framework" /><category scheme="http://www.blogger.com/atom/ns#" term="Flex" /><category scheme="http://www.blogger.com/atom/ns#" term="PureMVC" /><title>[PureMVC]初學者入門教學Part.3 Commmand</title><summary>接續上章
Mediator接收到View傳來的Click Event後會再發出Notification
而管理Notification的中控中心在Application Facade
所以我們必須將在Application Facade中的contorller註冊好對應的Command
ApplicationFacade.as

//註冊Command，建立Command與Notification之間的對應關係。
override protected function initializeController():void
{
super.initializeController();

//註冊初始化程式資料的Command 
registerCommand(STARTUP,StartupCommand);

registerCommand(START_CLOCK , </summary><link rel="replies" type="application/atom+xml" href="http://www.ria.tw/feeds/5721935811314781218/comments/default" title="張貼意見" /><link rel="replies" type="text/html" href="http://www.ria.tw/2010/05/puremvcpart3-commmand.html#comment-form" title="0 個意見" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1678073721332451971/posts/default/5721935811314781218?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1678073721332451971/posts/default/5721935811314781218?v=2" /><link rel="alternate" type="text/html" href="http://www.ria.tw/2010/05/puremvcpart3-commmand.html" title="[PureMVC]初學者入門教學Part.3 Commmand" /><author><name>蛋蛋蟻</name><uri>http://www.blogger.com/profile/00074796415551242621</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://2.bp.blogspot.com/_VBIfPT2tDEA/TEqX3RVs69I/AAAAAAAAJNk/iM9dXSy4H8s/S220/myhat.jpg" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://lh4.ggpht.com/_K5M6kKhm10Q/S-BlSsJNZRI/AAAAAAAAAM4/WQdV5WdJMqc/s72-c/PurcMVClock03.jpg?imgmax=800" height="72" width="72" /><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;DEUMQHc7fSp7ImA9WhZQEE4.&quot;"><id>tag:blogger.com,1999:blog-1678073721332451971.post-7367309144830787502</id><published>2010-04-29T09:02:00.000-07:00</published><updated>2011-04-17T03:31:21.905-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-04-17T03:31:21.905-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="MVC" /><category scheme="http://www.blogger.com/atom/ns#" term="PureMVC" /><title>[PureMVC]初學者入門教學Part.2 Component(View)與Mediator</title><summary>在上一章我們將PureMVC的初始設定設定好後再來我們先檢視這次實作需要哪些功能這是這次實作的預先設計圖 我們需要兩個按鈕跟一個文字列一個按鈕會在Start Stop間切換，用途是把時間暫停跟繼續另一個按鈕是將時間歸零而文字列就是負責顯是時間~所以我們會有幾個動作會由使用者操作後產生Start Button Click
Stop Button Click
Reset Button Click
在建立Command之前我們先把要用到的UI先拉出來建立出viewTime.mxml -&lt;?xml version="1.0" encoding="utf-8"?&gt;

 
  &lt;![CDATA[
   
   [Bindable]
         public var time:String;
  ]]&gt;
 
 

viewTimeController.mxml -&lt;?xml version="</summary><link rel="replies" type="application/atom+xml" href="http://www.ria.tw/feeds/7367309144830787502/comments/default" title="張貼意見" /><link rel="replies" type="text/html" href="http://www.ria.tw/2010/08/puremvcpart2-componentviewmediator.html#comment-form" title="0 個意見" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1678073721332451971/posts/default/7367309144830787502?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1678073721332451971/posts/default/7367309144830787502?v=2" /><link rel="alternate" type="text/html" href="http://www.ria.tw/2010/08/puremvcpart2-componentviewmediator.html" title="[PureMVC]初學者入門教學Part.2 Component(View)與Mediator" /><author><name>蛋蛋蟻</name><uri>http://www.blogger.com/profile/00074796415551242621</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://2.bp.blogspot.com/_VBIfPT2tDEA/TEqX3RVs69I/AAAAAAAAJNk/iM9dXSy4H8s/S220/myhat.jpg" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://lh4.ggpht.com/_K5M6kKhm10Q/S9mMrjxEoHI/AAAAAAAAAMg/W_HLAVAKY6Y/s72-c/00.jpg?imgmax=288" height="72" width="72" /><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;DEYMSH48fSp7ImA9WhZQEE4.&quot;"><id>tag:blogger.com,1999:blog-1678073721332451971.post-5416750554053041245</id><published>2010-04-25T09:02:00.000-07:00</published><updated>2011-04-17T03:29:49.075-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-04-17T03:29:49.075-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="MVC" /><category scheme="http://www.blogger.com/atom/ns#" term="PureMVC" /><title>[PureMVC]初學者入門教學Part.1 Application與Facde</title><summary>首先這個教學範例採用的原始碼是從 everflash blog 所提供的實作範例。是採用PureMVC架構實作一個數字時鐘digtal clack。接著進入主題，PureMVC是一個輕量級開放原始碼的框架，根據傳統的Model - View - Controller(MVC)為基礎的設計模式。而第一部分我們所要介紹的就是FacadeFdacade - 負責初始化程式的核心，算是整個程式的中控核心，大部分的全域事件都註冊在這。 建立專案後，我們將 PureMVC.swc 放入libs這個資料夾中，或由參考中加入。並建立一個Class名為ApplicationFacade根據PureMVC的架構規定，此ApplicationFacade繼承Facade類public class ApplicationFacade extends Facade
{
        ...
}
</summary><link rel="replies" type="application/atom+xml" href="http://www.ria.tw/feeds/5416750554053041245/comments/default" title="張貼意見" /><link rel="replies" type="text/html" href="http://www.ria.tw/2010/08/puremvcpart1-applicationfacde.html#comment-form" title="0 個意見" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1678073721332451971/posts/default/5416750554053041245?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1678073721332451971/posts/default/5416750554053041245?v=2" /><link rel="alternate" type="text/html" href="http://www.ria.tw/2010/08/puremvcpart1-applicationfacde.html" title="[PureMVC]初學者入門教學Part.1 Application與Facde" /><author><name>蛋蛋蟻</name><uri>http://www.blogger.com/profile/00074796415551242621</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://2.bp.blogspot.com/_VBIfPT2tDEA/TEqX3RVs69I/AAAAAAAAJNk/iM9dXSy4H8s/S220/myhat.jpg" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://lh4.ggpht.com/_K5M6kKhm10Q/S9GGWmKgE4I/AAAAAAAAAMU/LPw6NK9wy4U/s72-c/01.jpg?imgmax=800" height="72" width="72" /><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;DEANSX49eSp7ImA9Wx9aEkg.&quot;"><id>tag:blogger.com,1999:blog-1678073721332451971.post-7996566626974658227</id><published>2010-04-23T10:56:00.000-07:00</published><updated>2011-03-04T08:39:58.061-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-03-04T08:39:58.061-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="MVC" /><category scheme="http://www.blogger.com/atom/ns#" term="Actionscript" /><category scheme="http://www.blogger.com/atom/ns#" term="教學資源" /><category scheme="http://www.blogger.com/atom/ns#" term="Framework" /><category scheme="http://www.blogger.com/atom/ns#" term="Flex" /><category scheme="http://www.blogger.com/atom/ns#" term="PureMVC" /><title>[PureMVC]初學者入門教學 前言 - PureMVC簡介與參考資料</title><summary>


PureMVC是一個輕量級開放原始碼的框架，根據傳統的Model - View - Controller(MVC)為基礎的設計模式。



支援下列幾種語法：
• Mobile Environments: FlashLite, .NET Compact Framework, J2ME
• Server Environments: ColdFusion, J2EE, PHP, Python
• Browser Environments: Flash/Flex, JavaFX, Silverlight
• Desktop Environments: .NET, AIR, FLASH, J2SE

PureMVC最主要的目的是幫助在開發時(特別是跟UI有關係的)，將程式的Model(資料), View(介面) , Controller(控制)的三個部分切乾淨

</summary><link rel="replies" type="application/atom+xml" href="http://www.ria.tw/feeds/7996566626974658227/comments/default" title="張貼意見" /><link rel="replies" type="text/html" href="http://www.ria.tw/2010/04/puremvc-puremvc.html#comment-form" title="0 個意見" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1678073721332451971/posts/default/7996566626974658227?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1678073721332451971/posts/default/7996566626974658227?v=2" /><link rel="alternate" type="text/html" href="http://www.ria.tw/2010/04/puremvc-puremvc.html" title="[PureMVC]初學者入門教學 前言 - PureMVC簡介與參考資料" /><author><name>蛋蛋蟻</name><uri>http://www.blogger.com/profile/00074796415551242621</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://2.bp.blogspot.com/_VBIfPT2tDEA/TEqX3RVs69I/AAAAAAAAJNk/iM9dXSy4H8s/S220/myhat.jpg" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://lh4.ggpht.com/_K5M6kKhm10Q/SqzBtIB_VBI/AAAAAAAAAMM/tyMqbdJ7d3s/s72-c/01.jpg?imgmax=640" height="72" width="72" /><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;CUMMQ3Y5cSp7ImA9WxFaGUg.&quot;"><id>tag:blogger.com,1999:blog-1678073721332451971.post-1142056230204359769</id><published>2009-09-19T19:23:00.000-07:00</published><updated>2010-07-23T23:38:02.829-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-07-23T23:38:02.829-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="E4X" /><category scheme="http://www.blogger.com/atom/ns#" term="Actionscript" /><category scheme="http://www.blogger.com/atom/ns#" term="教學資源" /><category scheme="http://www.blogger.com/atom/ns#" term="Flex" /><title>E4X in Actionscript 3.0 @ Flex 3 or Flash</title><summary>先介紹一下E4X  ECMAScript for XML（E4X）是一擴展了ECMAScript（包含ActionScript、DMDScript、JavaScript、JScript等）的程式語言，它增加對 XML 的內在支持。它的目標是在訪問XML文檔時，提供一種更直觀、語法更簡潔的的 DOM 介面。它也是處理XML時的一種新的方式。在 E4X 版本之前，通常總是在 Objcet（對象）層次上訪問XML，而 E4X 則是把 XML 當做原始數據（primitive）來處理（比如字元、數字和布爾值）。這也意味著更快的訪問速度、更好的支持、和使 XML 可以成為程序的一個組塊（資料結構）。   摘自 Wiki E4X    參考閱讀  AS3 E4X - 相關類別與物件建立 - TICORE'S BLOG   AS3 E4X - XML 物件比較 - TICORE'S BLOG   </summary><link rel="replies" type="application/atom+xml" href="http://www.ria.tw/feeds/1142056230204359769/comments/default" title="張貼意見" /><link rel="replies" type="text/html" href="http://www.ria.tw/2009/09/e4x-in-actionscript-30-flex-3-or-flash.html#comment-form" title="0 個意見" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1678073721332451971/posts/default/1142056230204359769?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1678073721332451971/posts/default/1142056230204359769?v=2" /><link rel="alternate" type="text/html" href="http://www.ria.tw/2009/09/e4x-in-actionscript-30-flex-3-or-flash.html" title="E4X in Actionscript 3.0 @ Flex 3 or Flash" /><author><name>蛋蛋蟻</name><uri>http://www.blogger.com/profile/00074796415551242621</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://2.bp.blogspot.com/_VBIfPT2tDEA/TEqX3RVs69I/AAAAAAAAJNk/iM9dXSy4H8s/S220/myhat.jpg" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;D0UCR3s4eCp7ImA9Wx5SGUo.&quot;"><id>tag:blogger.com,1999:blog-1678073721332451971.post-7402465575815376008</id><published>2009-01-13T09:12:00.000-08:00</published><updated>2010-08-16T09:14:26.530-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-08-16T09:14:26.530-07:00</app:edited><title>[Cairngorm]初學者入門教學Part.7  Final- 巴布(Buboo) API json擷取實作範例(1)</title><summary>其實在實作這篇時，想說支持台灣的web 2.0 網創網站，找看看有誰的API可以用

發現居然大部份都很小氣，沒有提供API，珍惜自己頻寬，但是我認為Web 2.0成功的一部份，開放且實用的API其實是功不可滅的。

最後找到波麗斯(ppolis)，結果他的API網頁從我準備想用開始到現在寫好範例，都還是掛的 = =|||

想放棄改成用國外的aNobii網路書架，因為我有在用這個，但是回饋的資訊，只有書架內容，書籍內容，還有作者內容，沒有我想要的使用者內容，讓我想不到有啥玩具可以做的。

最後找到的是巴布(Buboo)，有提供API，雖然筆數不夠多但至少可以用了，不過它讓我詬病的一點就是美工真的很...我覺得設計可以簡單，但是也該有簡單設計的美感，希望巴布先生花點錢請美工設計個有簡單美的版面吧！！(太複雜反而不適合你們喔！)

＝＝＝＝＝＝回＝到＝原＝點＝分＝隔＝線＝＝＝＝＝＝

</summary><link rel="replies" type="application/atom+xml" href="http://www.ria.tw/feeds/7402465575815376008/comments/default" title="張貼意見" /><link rel="replies" type="text/html" href="http://www.ria.tw/2010/01/cairngormpart7-final-buboo-api-json1.html#comment-form" title="0 個意見" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1678073721332451971/posts/default/7402465575815376008?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1678073721332451971/posts/default/7402465575815376008?v=2" /><link rel="alternate" type="text/html" href="http://www.ria.tw/2010/01/cairngormpart7-final-buboo-api-json1.html" title="[Cairngorm]初學者入門教學Part.7  Final- 巴布(Buboo) API json擷取實作範例(1)" /><author><name>蛋蛋蟻</name><uri>http://www.blogger.com/profile/00074796415551242621</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://2.bp.blogspot.com/_VBIfPT2tDEA/TEqX3RVs69I/AAAAAAAAJNk/iM9dXSy4H8s/S220/myhat.jpg" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://lh5.ggpht.com/_K5M6kKhm10Q/SpSfqF6EqnI/AAAAAAAAAL8/HN_mQBswIm0/s72-c/01.jpg" height="72" width="72" /><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;D0YCSXw-eip7ImA9Wx5SGUo.&quot;"><id>tag:blogger.com,1999:blog-1678073721332451971.post-2386152255014666312</id><published>2009-01-12T09:12:00.000-08:00</published><updated>2010-08-16T09:12:48.252-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-08-16T09:12:48.252-07:00</app:edited><title>[Cairngorm]初學者入門教學Part.6 - Cairngorm中Command利用Delegate與Service連接資料</title><summary>在上一回，我們利用FrontController 去Mapping Event&amp;Command...

在這一回就針對Command這部份運作做介紹。
在RIA應用程式中，不可或缺的部份就是跟後端資料的連接

Command會透過Delegate去做Services的部份(包含Remoting,WebServices,...等)
 Command: 操作Cairngorm Business以及呼叫Cairngorm Delegates，這些回傳所取得的資料Command會再將它更新到Model Locator 
 Delegate: 由Command所產生，將遠端呼叫(RPC:remote  procedure  calls[HTTP, Web  Services,  etc])實例化，並將結果傳回給Command。
 Service:用來定義連接Server端的呼叫(RPC:</summary><link rel="replies" type="application/atom+xml" href="http://www.ria.tw/feeds/2386152255014666312/comments/default" title="張貼意見" /><link rel="replies" type="text/html" href="http://www.ria.tw/2009/01/cairngormpart6-cairngormcommanddelegate.html#comment-form" title="0 個意見" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1678073721332451971/posts/default/2386152255014666312?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1678073721332451971/posts/default/2386152255014666312?v=2" /><link rel="alternate" type="text/html" href="http://www.ria.tw/2009/01/cairngormpart6-cairngormcommanddelegate.html" title="[Cairngorm]初學者入門教學Part.6 - Cairngorm中Command利用Delegate與Service連接資料" /><author><name>蛋蛋蟻</name><uri>http://www.blogger.com/profile/00074796415551242621</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://2.bp.blogspot.com/_VBIfPT2tDEA/TEqX3RVs69I/AAAAAAAAJNk/iM9dXSy4H8s/S220/myhat.jpg" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://lh4.ggpht.com/_K5M6kKhm10Q/SpSeLCRbFdI/AAAAAAAAAL0/iqrnsRo33po/s72-c/01.jpg?imgmax=512" height="72" width="72" /><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;D0UAQn08eip7ImA9Wx5SGUo.&quot;"><id>tag:blogger.com,1999:blog-1678073721332451971.post-6416540397363125794</id><published>2009-01-11T09:10:00.000-08:00</published><updated>2010-08-16T09:14:03.372-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-08-16T09:14:03.372-07:00</app:edited><title>[Cairngorm]初學者入門教學Part.5 - Cairngorm中Event,Command與FrontController的關係</title><summary>在這部份，介紹的就是Cairngorm的控制核心流程。
Events:透過使用者操作View所產生的事件，或其他設計所產生的事件。
Front Controller:Front Controller  用來註冊Command與對應Events，接收Cairngorm Events並將他對應到Cairngorm Commands
Command: 操作Cairngorm Business以及呼叫Cairngorm Delegates，這些回傳所取得的資料Command會再將它更新到Model Locator
首先介紹Cairngorm Basic Event Flow
 
使用者在操作View的過程會發出Event，然後由Front Controller來Mapping指派給對應的Command，Command做完運算處理後會更新ModelLocator的資料，然後View就會更新顯示內容</summary><link rel="replies" type="application/atom+xml" href="http://www.ria.tw/feeds/6416540397363125794/comments/default" title="張貼意見" /><link rel="replies" type="text/html" href="http://www.ria.tw/2010/01/cairngormpart5-cairngormeventcommandfro.html#comment-form" title="0 個意見" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1678073721332451971/posts/default/6416540397363125794?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1678073721332451971/posts/default/6416540397363125794?v=2" /><link rel="alternate" type="text/html" href="http://www.ria.tw/2010/01/cairngormpart5-cairngormeventcommandfro.html" title="[Cairngorm]初學者入門教學Part.5 - Cairngorm中Event,Command與FrontController的關係" /><author><name>蛋蛋蟻</name><uri>http://www.blogger.com/profile/00074796415551242621</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://2.bp.blogspot.com/_VBIfPT2tDEA/TEqX3RVs69I/AAAAAAAAJNk/iM9dXSy4H8s/S220/myhat.jpg" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://lh6.ggpht.com/_K5M6kKhm10Q/SpSdS_IS07I/AAAAAAAAALw/AyLdjLODsL0/s72-c/01.jpg?imgmax=512" height="72" width="72" /><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;CUMMQ3Y4fCp7ImA9WxFaGUg.&quot;"><id>tag:blogger.com,1999:blog-1678073721332451971.post-5538157969540958517</id><published>2009-01-10T16:44:00.000-08:00</published><updated>2010-07-23T23:38:02.834-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-07-23T23:38:02.834-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="精選文章" /><category scheme="http://www.blogger.com/atom/ns#" term=".NET" /><category scheme="http://www.blogger.com/atom/ns#" term="Remoting" /><category scheme="http://www.blogger.com/atom/ns#" term="FluorineFx" /><category scheme="http://www.blogger.com/atom/ns#" term="Flex" /><category scheme="http://www.blogger.com/atom/ns#" term="AMF" /><title>[Remoting]在.NET環境實作Flex 3 Remoting - (2) Flex Builder 環境設定</title><summary>在做好Visual Studio 中的FluorineFx設定後 接著我們需要在Flex 中建立Project時需做些設定。 首先我們先建立一個Flex Project....  Application server type選擇ASP.NET(Flex Builder 3.0沒有，3.1&amp;3.2才有的樣子)  接著如下圖描述設定。  最後...  專案建立好後，選擇Properties  在Flex Server這邊要補上Context root，要不然會編譯錯誤。  最後就是在Flex Compiler中加上-services的argument  內容可以使用相對路徑  -services "../../WEB-INF/flex/services-config.xml"  或絕對路徑  -services "E:\TempProjects\RIAweb\WEB-INF\flex\</summary><link rel="replies" type="application/atom+xml" href="http://www.ria.tw/feeds/5538157969540958517/comments/default" title="張貼意見" /><link rel="replies" type="text/html" href="http://www.ria.tw/2009/01/remotingnetflex-3-remoting-2-flex.html#comment-form" title="0 個意見" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1678073721332451971/posts/default/5538157969540958517?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1678073721332451971/posts/default/5538157969540958517?v=2" /><link rel="alternate" type="text/html" href="http://www.ria.tw/2009/01/remotingnetflex-3-remoting-2-flex.html" title="[Remoting]在.NET環境實作Flex 3 Remoting - (2) Flex Builder 環境設定" /><author><name>蛋蛋蟻</name><uri>http://www.blogger.com/profile/00074796415551242621</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://2.bp.blogspot.com/_VBIfPT2tDEA/TEqX3RVs69I/AAAAAAAAJNk/iM9dXSy4H8s/S220/myhat.jpg" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://lh3.ggpht.com/_K5M6kKhm10Q/SpSMiJyeqtI/AAAAAAAAAKw/6gqOegE0BFU/s72-c/Flex01.jpg?imgmax=576" height="72" width="72" /><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;CUMMQ3Y_eip7ImA9WxFaGUg.&quot;"><id>tag:blogger.com,1999:blog-1678073721332451971.post-5564412825081433270</id><published>2009-01-10T15:05:00.000-08:00</published><updated>2010-07-23T23:38:02.842-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-07-23T23:38:02.842-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="精選文章" /><category scheme="http://www.blogger.com/atom/ns#" term=".NET" /><category scheme="http://www.blogger.com/atom/ns#" term="Remoting" /><category scheme="http://www.blogger.com/atom/ns#" term="FluorineFx" /><category scheme="http://www.blogger.com/atom/ns#" term="AMF" /><title>[Remoting]在.NET環境實作Flex 3 Remoting - (1) FluorineFx安裝與使用</title><summary>如果想要在.net 環境下實作Remoting其實有幾個Freeware可以使用   WebORB for .NET FluorineFx   在這邊我使用的是FluorineFx，首先先去官方網站下載程式 就點擊Setup.exe一直按下一步就裝好了XD 官方網站寫的是可以支援 Visual Studio 2003,2005,2008 我這邊示範的是Visual Studio 2005，使用的語言是C#(c sharp)，開啟Visual Studio 2005  選擇新增網站  若你已經安裝了FluorineFx，就會多一個這個選項，選擇後新增此網站。 這是你就可以在方案總管看到這些內建的資料  然後我先先習慣將網站加入IIS中，再從IIS開啟網站，這樣之後會比較好Debug 然後我先在裡面加入ASP.NET資料夾[App_Code]如同下方建立資料夾與檔案  DB</summary><link rel="replies" type="application/atom+xml" href="http://www.ria.tw/feeds/5564412825081433270/comments/default" title="張貼意見" /><link rel="replies" type="text/html" href="http://www.ria.tw/2009/01/remotingnetflex-3-remoting-1-fluorinefx.html#comment-form" title="2 個意見" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1678073721332451971/posts/default/5564412825081433270?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1678073721332451971/posts/default/5564412825081433270?v=2" /><link rel="alternate" type="text/html" href="http://www.ria.tw/2009/01/remotingnetflex-3-remoting-1-fluorinefx.html" title="[Remoting]在.NET環境實作Flex 3 Remoting - (1) FluorineFx安裝與使用" /><author><name>蛋蛋蟻</name><uri>http://www.blogger.com/profile/00074796415551242621</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://2.bp.blogspot.com/_VBIfPT2tDEA/TEqX3RVs69I/AAAAAAAAJNk/iM9dXSy4H8s/S220/myhat.jpg" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://lh4.ggpht.com/_K5M6kKhm10Q/SpSMIukt60I/AAAAAAAAAKU/559E2SL85RA/s72-c/FluorineFx01.jpg?imgmax=512" height="72" width="72" /><thr:total>2</thr:total></entry><entry gd:etag="W/&quot;D0cBRHkzfCp7ImA9Wx5SGUo.&quot;"><id>tag:blogger.com,1999:blog-1678073721332451971.post-4855356659102520995</id><published>2009-01-10T09:10:00.000-08:00</published><updated>2010-08-16T09:10:55.784-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-08-16T09:10:55.784-07:00</app:edited><title>[Cairngorm]初學者入門教學Part.4 - 透過 Model Locator 控制管理 Views</title><summary> Cairngorm: Views -
 就是使用者最直觀所看到的顯示，包含了button,  panel... 等所成的集合，其中透過Model Locator取得資料，透過Cairngorm  Events與使用者產生互動。
在這個部分，利用ModelLocator控制ViewStack來做到切換View的的功能。



首先我們先在ViewModelLocator.as 中加入
public var workflowState:uint = 0;用來記錄ViewStack中，顯示哪一個View。

再加入下面靜態常數，讓程式可讀性較高
public static const LOGIN_SCREEN:uint = 0;
public static const MAIN_SCREEN:uint = 1;整個ViewModelLocator.as的程式碼為

package </summary><link rel="replies" type="application/atom+xml" href="http://www.ria.tw/feeds/4855356659102520995/comments/default" title="張貼意見" /><link rel="replies" type="text/html" href="http://www.ria.tw/2009/01/cairngormpart4-model-locator-views.html#comment-form" title="0 個意見" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1678073721332451971/posts/default/4855356659102520995?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1678073721332451971/posts/default/4855356659102520995?v=2" /><link rel="alternate" type="text/html" href="http://www.ria.tw/2009/01/cairngormpart4-model-locator-views.html" title="[Cairngorm]初學者入門教學Part.4 - 透過 Model Locator 控制管理 Views" /><author><name>蛋蛋蟻</name><uri>http://www.blogger.com/profile/00074796415551242621</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://2.bp.blogspot.com/_VBIfPT2tDEA/TEqX3RVs69I/AAAAAAAAJNk/iM9dXSy4H8s/S220/myhat.jpg" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://lh5.ggpht.com/_K5M6kKhm10Q/SpSccQLjI3I/AAAAAAAAALs/zUkT9W8fTJg/s72-c/01.jpg?imgmax=512" height="72" width="72" /><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;CUMMQ3Y_cCp7ImA9WxFaGUg.&quot;"><id>tag:blogger.com,1999:blog-1678073721332451971.post-8670368683936594612</id><published>2009-01-09T17:06:00.000-08:00</published><updated>2010-07-23T23:38:02.848-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-07-23T23:38:02.848-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="MVC" /><category scheme="http://www.blogger.com/atom/ns#" term="Cairngorm" /><category scheme="http://www.blogger.com/atom/ns#" term="Actionscript" /><category scheme="http://www.blogger.com/atom/ns#" term="Framework" /><category scheme="http://www.blogger.com/atom/ns#" term="Flex" /><title>[Cairngorm]初學者入門教學Part.3 - 從使用Model Locator 初學 Cairngorm</title><summary>接下來的幾篇Cairngorm教學是參考 David Tucker 的 Getting Started with Cairngorm ，假如英文程度夠的話，建議直接去看他的網站，裡面有英文教學影片，這樣就不用怕我寫錯XD除了說話速度快點，示範的方式淺顯易懂，我就是看影片入門的。	Cairngorm: Model Locator -	集體管理你程式中所需共用儲存的變數(variables)，有點類似[Session]物件，但是儲存在client端的flex app中，而不是存在Server端首先先在你的專案中的src資料夾下，建立model資料夾並建立ViewModelLocator.as此Class，並且需要implements [ IModelLocator ] 此interfaceViewModelLocator.as程式碼如下:package </summary><link rel="replies" type="application/atom+xml" href="http://www.ria.tw/feeds/8670368683936594612/comments/default" title="張貼意見" /><link rel="replies" type="text/html" href="http://www.ria.tw/2009/01/cairngormpart3-model-locator-cairngorm.html#comment-form" title="4 個意見" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1678073721332451971/posts/default/8670368683936594612?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1678073721332451971/posts/default/8670368683936594612?v=2" /><link rel="alternate" type="text/html" href="http://www.ria.tw/2009/01/cairngormpart3-model-locator-cairngorm.html" title="[Cairngorm]初學者入門教學Part.3 - 從使用Model Locator 初學 Cairngorm" /><author><name>蛋蛋蟻</name><uri>http://www.blogger.com/profile/00074796415551242621</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://2.bp.blogspot.com/_VBIfPT2tDEA/TEqX3RVs69I/AAAAAAAAJNk/iM9dXSy4H8s/S220/myhat.jpg" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://lh3.ggpht.com/_K5M6kKhm10Q/SpSX27dj5lI/AAAAAAAAALI/gmUCFyVU0gU/s72-c/01.jpg?imgmax=512" height="72" width="72" /><thr:total>4</thr:total></entry><entry gd:etag="W/&quot;CUMMQ3Y-fip7ImA9WxFaGUg.&quot;"><id>tag:blogger.com,1999:blog-1678073721332451971.post-6987531397381961494</id><published>2009-01-09T17:05:00.000-08:00</published><updated>2010-07-23T23:38:02.856-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-07-23T23:38:02.856-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="MVC" /><category scheme="http://www.blogger.com/atom/ns#" term="Cairngorm" /><category scheme="http://www.blogger.com/atom/ns#" term="Actionscript" /><category scheme="http://www.blogger.com/atom/ns#" term="Framework" /><category scheme="http://www.blogger.com/atom/ns#" term="Flex" /><title>[Cairngorm]初學者入門教學Part.2 - 環境設定及建立專案</title><summary>依下列步驟設定Cairngorm Framework的使用環境 1. 先去Adobe Open Source下載Cairngorm的bin檔，解壓縮後放到自己想要的資料夾下。 假如心有餘力的話，可以看他的Open Source學AS3喔!!(誤)   2. 在Flex Builder 中[新建專案]  3. 專案中間設定好後(中間步驟省略)，將剛剛抓下來的Cairngorm.swc加入Library path   加入成功!!  如果新建過程中忘記加的話，可以在專案的[Properties]中再加入也可。  4. 這樣就可以開始使用Cairngorm的Framework了。</summary><link rel="replies" type="application/atom+xml" href="http://www.ria.tw/feeds/6987531397381961494/comments/default" title="張貼意見" /><link rel="replies" type="text/html" href="http://www.ria.tw/2009/01/cairngormpart2.html#comment-form" title="0 個意見" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1678073721332451971/posts/default/6987531397381961494?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1678073721332451971/posts/default/6987531397381961494?v=2" /><link rel="alternate" type="text/html" href="http://www.ria.tw/2009/01/cairngormpart2.html" title="[Cairngorm]初學者入門教學Part.2 - 環境設定及建立專案" /><author><name>蛋蛋蟻</name><uri>http://www.blogger.com/profile/00074796415551242621</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://2.bp.blogspot.com/_VBIfPT2tDEA/TEqX3RVs69I/AAAAAAAAJNk/iM9dXSy4H8s/S220/myhat.jpg" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://lh3.ggpht.com/_K5M6kKhm10Q/SpSJjr-MqNI/AAAAAAAAAJ8/5nlOPmtuOC8/s72-c/00.jpg?imgmax=512" height="72" width="72" /><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;CUMMQ3Y9fCp7ImA9WxFaGUg.&quot;"><id>tag:blogger.com,1999:blog-1678073721332451971.post-1377196084366022488</id><published>2009-01-09T17:01:00.000-08:00</published><updated>2010-07-23T23:38:02.864-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-07-23T23:38:02.864-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="MVC" /><category scheme="http://www.blogger.com/atom/ns#" term="Cairngorm" /><category scheme="http://www.blogger.com/atom/ns#" term="Actionscript" /><category scheme="http://www.blogger.com/atom/ns#" term="Framework" /><category scheme="http://www.blogger.com/atom/ns#" term="Flex" /><title>[Cairngorm]初學者入門教學Part.1 - 學前閱讀與基本名詞介紹</title><summary>學前閱讀-Cairngorm是Adobe Labs上的Flex MVC框架，是一個actionscript 3.0 所建構出來的RIA架構Framework，適合大型專案使用。為了讓各部份耦合性降低，所以切的很乾淨，相對做一個功能可能需要改動的Part也較多。如果是初學RIA MVC架構不建議從此入手，你會啃的很辛苦(初學RIA MVC架構推薦[RIAWAVE])到底適不適合使用Cairngorm建議先閱讀下面三篇文章，相信會對你有幫助的。Why I think you shouldn’t use Cairngorm - Steven Webster RIA framework - Cairngorm 2 淺析 - d.CAT thoughts about Cairngorm (again…) - d.CAT [caption id="" align="alignnone" width=</summary><link rel="replies" type="application/atom+xml" href="http://www.ria.tw/feeds/1377196084366022488/comments/default" title="張貼意見" /><link rel="replies" type="text/html" href="http://www.ria.tw/2009/01/cairngormpart1.html#comment-form" title="0 個意見" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1678073721332451971/posts/default/1377196084366022488?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1678073721332451971/posts/default/1377196084366022488?v=2" /><link rel="alternate" type="text/html" href="http://www.ria.tw/2009/01/cairngormpart1.html" title="[Cairngorm]初學者入門教學Part.1 - 學前閱讀與基本名詞介紹" /><author><name>蛋蛋蟻</name><uri>http://www.blogger.com/profile/00074796415551242621</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://2.bp.blogspot.com/_VBIfPT2tDEA/TEqX3RVs69I/AAAAAAAAJNk/iM9dXSy4H8s/S220/myhat.jpg" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;CUMMQ3YzeCp7ImA9WxFaGUg.&quot;"><id>tag:blogger.com,1999:blog-1678073721332451971.post-8808573299861153444</id><published>2008-12-21T15:51:00.000-08:00</published><updated>2010-07-23T23:38:02.880-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-07-23T23:38:02.880-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Actionscript" /><category scheme="http://www.blogger.com/atom/ns#" term="01.Object-Oriented in ActionScript 3.0 - 物件導向" /><title>[ActionScript 3.0] get &amp; set 存取子方法</title><summary>get 和 set 存取子函數也稱為 getter 和 setter。就如同字面上的意思，他是讓class外部用來存取class中的變數(Variable)。或許你會說只要...class Person{	private var name:String;	public var sex:String;	public function Person():void	{		this.sex = "Unknow.";	}}var jeff:Person = new Person();trace(jeff.sex);  //顯示: Unknow.jeff.sex = "Male."trace(jeff.sex);  //顯示: Male.  就能改變變數。 但是這種作法的優點是：可以讓您避免名稱大而無當的傳統存取子函數，例如 getPropertyName() 和  setPropertyName(</summary><link rel="replies" type="application/atom+xml" href="http://www.ria.tw/feeds/8808573299861153444/comments/default" title="張貼意見" /><link rel="replies" type="text/html" href="http://www.ria.tw/2008/12/actionscript-30-get-set.html#comment-form" title="1 個意見" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1678073721332451971/posts/default/8808573299861153444?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1678073721332451971/posts/default/8808573299861153444?v=2" /><link rel="alternate" type="text/html" href="http://www.ria.tw/2008/12/actionscript-30-get-set.html" title="[ActionScript 3.0] get &amp;amp; set 存取子方法" /><author><name>蛋蛋蟻</name><uri>http://www.blogger.com/profile/00074796415551242621</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://2.bp.blogspot.com/_VBIfPT2tDEA/TEqX3RVs69I/AAAAAAAAJNk/iM9dXSy4H8s/S220/myhat.jpg" /></author><thr:total>1</thr:total></entry><entry gd:etag="W/&quot;CUMMQ3YyfCp7ImA9WxFaGUg.&quot;"><id>tag:blogger.com,1999:blog-1678073721332451971.post-6351330569382783319</id><published>2008-12-21T08:54:00.000-08:00</published><updated>2010-07-23T23:38:02.894-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-07-23T23:38:02.894-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="教學資源" /><category scheme="http://www.blogger.com/atom/ns#" term="Framework" /><category scheme="http://www.blogger.com/atom/ns#" term="Flex" /><category scheme="http://www.blogger.com/atom/ns#" term="air" /><title>[AIR] Tour de Flex - flex framework 教學大集合</title><summary>在Flex的學習上，其實英文的教學資源非常豐富。 而我覺得非常實用的就是 Tour de Flex !!!! 不需要會太多英文，指要你看得懂程式設計師共通語言-程式碼就好XD  整個包含了   UI components(組件) Container(排版容器) 其它Flex framework 特效 第三方組件(繪圖...等) 大公司API(Yahoo,Google MAP,Adobe...)  內容非常多，包含預覽效果  總共50多MB直接從 這裡 下載AIR檔案安裝Tour de Flex runs on Adobe AIR on Windows, Mac OS and Linux使用者手冊 (PDF) Tour de Flex</summary><link rel="replies" type="application/atom+xml" href="http://www.ria.tw/feeds/6351330569382783319/comments/default" title="張貼意見" /><link rel="replies" type="text/html" href="http://www.ria.tw/2008/12/air-tour-de-flex-flex-framework.html#comment-form" title="2 個意見" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1678073721332451971/posts/default/6351330569382783319?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1678073721332451971/posts/default/6351330569382783319?v=2" /><link rel="alternate" type="text/html" href="http://www.ria.tw/2008/12/air-tour-de-flex-flex-framework.html" title="[AIR] Tour de Flex - flex framework 教學大集合" /><author><name>蛋蛋蟻</name><uri>http://www.blogger.com/profile/00074796415551242621</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://2.bp.blogspot.com/_VBIfPT2tDEA/TEqX3RVs69I/AAAAAAAAJNk/iM9dXSy4H8s/S220/myhat.jpg" /></author><thr:total>2</thr:total></entry><entry gd:etag="W/&quot;DEIDRH0_cCp7ImA9WhZQEE4.&quot;"><id>tag:blogger.com,1999:blog-1678073721332451971.post-7427472994855509446</id><published>2008-12-17T09:32:00.000-08:00</published><updated>2011-04-17T03:36:15.348-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-04-17T03:36:15.348-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Actionscript" /><category scheme="http://www.blogger.com/atom/ns#" term="01.Object-Oriented in ActionScript 3.0 - 物件導向" /><title>[Actionscript 3.0] 01.1 Object-Oriented Basic - 物件導向基礎</title><summary>在閱讀之前，推薦大家先閱讀些關於物件導向思維的文章，如下：

不要從程式語言學習「物件導向」！

話說從頭 - 為什麼要使用物件導向設計 (OOD)



因為是基礎，所以本篇目標不是敎你如何在Asctionscript中設計與分析物件導向。

而是先會看懂別人寫好的物件導向，進而使用。

這樣你應該就可以容易快速上手別人寫好的函式庫(library)。



Class 類別的宣告
public class HelloWorld {
//
}
在宣告時加入class關鍵字。



Package 封裝

封裝（Encapsulation）的目的，是將程式碼切割成許多模組（Module），使各模組之間的關連性降到最低，這麼一來比較不會產生「牽一髮而動全身」的狀況，降低模組間相互依賴的程度，也等於是降低複雜度，讓開發與維護更容易。

在Actionscript2.0中與</summary><link rel="replies" type="application/atom+xml" href="http://www.ria.tw/feeds/7427472994855509446/comments/default" title="張貼意見" /><link rel="replies" type="text/html" href="http://www.ria.tw/2008/12/actionscript-30-011-object-oriented.html#comment-form" title="0 個意見" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1678073721332451971/posts/default/7427472994855509446?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1678073721332451971/posts/default/7427472994855509446?v=2" /><link rel="alternate" type="text/html" href="http://www.ria.tw/2008/12/actionscript-30-011-object-oriented.html" title="[Actionscript 3.0] 01.1 Object-Oriented Basic - 物件導向基礎" /><author><name>蛋蛋蟻</name><uri>http://www.blogger.com/profile/00074796415551242621</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://2.bp.blogspot.com/_VBIfPT2tDEA/TEqX3RVs69I/AAAAAAAAJNk/iM9dXSy4H8s/S220/myhat.jpg" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;CUMMQ3c7eip7ImA9WxFaGUg.&quot;"><id>tag:blogger.com,1999:blog-1678073721332451971.post-6107018302230573079</id><published>2008-10-29T19:51:00.000-07:00</published><updated>2010-07-23T23:38:02.902-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-07-23T23:38:02.902-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Actionscript" /><category scheme="http://www.blogger.com/atom/ns#" term="00.Basics - 基礎" /><title>[Actionscript 2.0 &amp; 3.0] 00.4 Function - 函式</title><summary>建立可以再利用的程式碼就是需要用到function。有點是像建造一台機器，固定丟規定的原料進去，他就會生產要的成品出來。在結構上：function A(B:C):D{       E;       return F;}其中-A:為function name，宣告後可用來再次呼叫。B:傳入參數，可為複數個。C:傳入參數B的型態。D:function執行完回傳數值型態。E:function內容。F:function回傳值。Ex: //這是一個用來將輸入數字乘2的function function doubleNum(baseNum:int):int {     return (baseNum * 2); } trace(doubleNum(4));     //Show:8 //這是一個用來將輸入數字乘2的function function doubleNum(baseNum:int):</summary><link rel="replies" type="application/atom+xml" href="http://www.ria.tw/feeds/6107018302230573079/comments/default" title="張貼意見" /><link rel="replies" type="text/html" href="http://www.ria.tw/2008/10/actionscript-20-30-004-function.html#comment-form" title="0 個意見" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1678073721332451971/posts/default/6107018302230573079?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1678073721332451971/posts/default/6107018302230573079?v=2" /><link rel="alternate" type="text/html" href="http://www.ria.tw/2008/10/actionscript-20-30-004-function.html" title="[Actionscript 2.0 &amp;amp; 3.0] 00.4 Function - 函式" /><author><name>蛋蛋蟻</name><uri>http://www.blogger.com/profile/00074796415551242621</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://2.bp.blogspot.com/_VBIfPT2tDEA/TEqX3RVs69I/AAAAAAAAJNk/iM9dXSy4H8s/S220/myhat.jpg" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;CUMMQ3c7fip7ImA9WxFaGUg.&quot;"><id>tag:blogger.com,1999:blog-1678073721332451971.post-1799493929582449637</id><published>2008-10-29T05:23:00.000-07:00</published><updated>2010-07-23T23:38:02.906-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-07-23T23:38:02.906-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Actionscript" /><category scheme="http://www.blogger.com/atom/ns#" term="00.Basics - 基礎" /><title>[Actionscript 2.0 &amp; 3.0] 00.3 判斷式與迴圈</title><summary>判斷式 if elseif(A) B;if(A) {B};if(A){    B;}這三種皆是若A條件為True，則執行B。建議上，最好都採用加大括號的方式，一來是方便閱讀，在來就是減少不必要的錯誤。 var i:int = 110; if (i &gt; 100) {     trace("i is &gt; 100."); } //Show:i is &gt;100. var i:int = 90; if (i &gt; 100) {     trace("i is &gt; 100."); } //Show:if(A){    B;}else{    C;}這個就跟語意上一樣，若A為true做B，反之做C。 var i:int = 90; if (i &gt; 100) {     trace("i is &gt; 100."); } else {     trace("i is &lt;= 100."); } //Show:i</summary><link rel="replies" type="application/atom+xml" href="http://www.ria.tw/feeds/1799493929582449637/comments/default" title="張貼意見" /><link rel="replies" type="text/html" href="http://www.ria.tw/2008/10/actionscript-20-30-003.html#comment-form" title="0 個意見" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1678073721332451971/posts/default/1799493929582449637?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1678073721332451971/posts/default/1799493929582449637?v=2" /><link rel="alternate" type="text/html" href="http://www.ria.tw/2008/10/actionscript-20-30-003.html" title="[Actionscript 2.0 &amp;amp; 3.0] 00.3 判斷式與迴圈" /><author><name>蛋蛋蟻</name><uri>http://www.blogger.com/profile/00074796415551242621</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://2.bp.blogspot.com/_VBIfPT2tDEA/TEqX3RVs69I/AAAAAAAAJNk/iM9dXSy4H8s/S220/myhat.jpg" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;CUMMQ3c_eSp7ImA9WxFaGUg.&quot;"><id>tag:blogger.com,1999:blog-1678073721332451971.post-9034913183737896765</id><published>2008-10-28T18:38:00.000-07:00</published><updated>2010-07-23T23:38:02.941-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-07-23T23:38:02.941-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Actionscript" /><category scheme="http://www.blogger.com/atom/ns#" term="00.Basics - 基礎" /><title>[Actionscript 2.0 &amp; 3.0] 00.2.2 True &amp; False 的判斷</title><summary>True &amp; False的判斷，通常是為了判斷式(if ,while)時使用。包含了 關係運算子運算子執行的運算&lt;大於&gt;小於&lt;=小於等於&gt;=大於等於as檢查資料類型in檢查物件屬性instanceof檢查原型鏈is檢查資料類型 相等運算子運算子執行的運算==相等!=不相等 邏輯運算子運算子執行的運算&amp;&amp;邏輯 AND||邏輯OR通常是敘述一件事情是否正確。回傳值為Boolean( true &amp; false)基本型: trace(3&gt;2);   //Show:true trace(3==2);  //Show:false trace(3!=2);  //Show:truetrace(A&amp;&amp;B);若A,B有一個為false則值為false。trace(A||B);若A,B有一個為true則值為true。特殊型: isis 運算子是 ActionScript 3.0 新增的運算子，</summary><link rel="replies" type="application/atom+xml" href="http://www.ria.tw/feeds/9034913183737896765/comments/default" title="張貼意見" /><link rel="replies" type="text/html" href="http://www.ria.tw/2008/10/actionscript-20-30-0022-true-false.html#comment-form" title="0 個意見" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1678073721332451971/posts/default/9034913183737896765?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1678073721332451971/posts/default/9034913183737896765?v=2" /><link rel="alternate" type="text/html" href="http://www.ria.tw/2008/10/actionscript-20-30-0022-true-false.html" title="[Actionscript 2.0 &amp;amp; 3.0] 00.2.2 True &amp;amp; False 的判斷" /><author><name>蛋蛋蟻</name><uri>http://www.blogger.com/profile/00074796415551242621</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://2.bp.blogspot.com/_VBIfPT2tDEA/TEqX3RVs69I/AAAAAAAAJNk/iM9dXSy4H8s/S220/myhat.jpg" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;DEMARXoyeip7ImA9WhZQEE4.&quot;"><id>tag:blogger.com,1999:blog-1678073721332451971.post-1141382099117008221</id><published>2008-10-24T09:27:00.000-07:00</published><updated>2011-04-17T03:34:04.492-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-04-17T03:34:04.492-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Actionscript" /><category scheme="http://www.blogger.com/atom/ns#" term="00.Basics - 基礎" /><title>[Actionscript 2.0 &amp; 3.0] 00.2.1 Arithmetic operators - 算術運算元</title><summary>包含了
一元運算子&amp;乘法運算子

運算子執行的運算
++遞增
--遞減
+一元 +
-一元 - ( 負操作 )
*乘法
/除法
%模除
+加法
-減法

通常初學比較有問題的就是

iValue++  跟 ++iValue 有啥麼不同？

1.iValue++:
var iValue:int = 3;

trace(iValue++);    //Show:3

trace(iValue);      //Show:4



先丟進finction或其他運算，在++的動作。

2.++IValue:
var iValue:int = 3;

trace(++iValue);    //Show:4

trace(iValue);      //Show:4



先加完，在做其他動作。

基礎的東西有點懶的寫。

結果做了一個更麻煩的玩具XD。
</summary><link rel="replies" type="application/atom+xml" href="http://www.ria.tw/feeds/1141382099117008221/comments/default" title="張貼意見" /><link rel="replies" type="text/html" href="http://www.ria.tw/2008/10/actionscript-20-30-0021-arithmetic.html#comment-form" title="0 個意見" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1678073721332451971/posts/default/1141382099117008221?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1678073721332451971/posts/default/1141382099117008221?v=2" /><link rel="alternate" type="text/html" href="http://www.ria.tw/2008/10/actionscript-20-30-0021-arithmetic.html" title="[Actionscript 2.0 &amp;amp; 3.0] 00.2.1 Arithmetic operators - 算術運算元" /><author><name>蛋蛋蟻</name><uri>http://www.blogger.com/profile/00074796415551242621</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://2.bp.blogspot.com/_VBIfPT2tDEA/TEqX3RVs69I/AAAAAAAAJNk/iM9dXSy4H8s/S220/myhat.jpg" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;DEIHQXwyfCp7ImA9WhZQEE4.&quot;"><id>tag:blogger.com,1999:blog-1678073721332451971.post-8206617701961496341</id><published>2008-10-24T08:21:00.000-07:00</published><updated>2011-04-17T03:35:30.294-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-04-17T03:35:30.294-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Actionscript" /><category scheme="http://www.blogger.com/atom/ns#" term="00.Basics - 基礎" /><title>[Actionscript 2.0 &amp; 3.0] 00.2 Operator - 運算子</title><summary>這是Actionscript中，operators的優先順序。

GroupOperators
Primary[] {x:y} () f(x) new x.y x[y]
Postfixx++ x--
Unary++x --x + - ~ ! delete typeof void
Multiplicative* / %
Additive+ -
Bitwise shift&lt;&lt; &gt;&gt; &gt;&gt;&gt;
Relational&lt; &gt; &lt;= &gt;= instanceof
Equality== != === !==
Bitwise AND&amp;
Bitwise XOR^
Bitwise OR|
Logical AND&amp;&amp;
Logical OR||
Conditional?:
Assignment= *= /= %= += -= &lt;&lt;= &gt;&gt;= &gt;&gt;&gt;= &amp;= ^= |=
Comma,



優先順序是指在同一行運算中</summary><link rel="replies" type="application/atom+xml" href="http://www.ria.tw/feeds/8206617701961496341/comments/default" title="張貼意見" /><link rel="replies" type="text/html" href="http://www.ria.tw/2008/10/actionscript-20-30-002-operator.html#comment-form" title="0 個意見" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1678073721332451971/posts/default/8206617701961496341?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1678073721332451971/posts/default/8206617701961496341?v=2" /><link rel="alternate" type="text/html" href="http://www.ria.tw/2008/10/actionscript-20-30-002-operator.html" title="[Actionscript 2.0 &amp;amp; 3.0] 00.2 Operator - 運算子" /><author><name>蛋蛋蟻</name><uri>http://www.blogger.com/profile/00074796415551242621</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://2.bp.blogspot.com/_VBIfPT2tDEA/TEqX3RVs69I/AAAAAAAAJNk/iM9dXSy4H8s/S220/myhat.jpg" /></author><thr:total>0</thr:total></entry></feed>

