如果只想做簡單的Chart圖,Open Flash Chart是很方便的工具,這是以AS3所撰寫的圖表工具,雖然說是open但軟體並未提供相關類別可操作,而是以chart.swf做為黑盒子,所有繪圖都靠這只swf,我們能做的只是匯入資料跟下參數而己,如果想做更自由的Chart,或許還是只能用Flex的solution
程式名稱:Open Flash Chart
授權版本:GNU
Flex, Flash, AIR, RIA, Game
如果只想做簡單的Chart圖,Open Flash Chart是很方便的工具,這是以AS3所撰寫的圖表工具,雖然說是open但軟體並未提供相關類別可操作,而是以chart.swf做為黑盒子,所有繪圖都靠這只swf,我們能做的只是匯入資料跟下參數而己,如果想做更自由的Chart,或許還是只能用Flex的solution
程式名稱:Open Flash Chart
授權版本:GNU
網站上可下載免費程式,只要有webcam就可以使用,除了範例的遊戲以外,也可模擬其它遊戲的搖捍,非常有趣
CamSpace:http://www.camspace.com/
WebCam相容列表:http://wiki.camspace.com/index.php/Tested_Webcams
Alawar公司出品的Flash Game,這種遊戲相當耐玩,遊戲簡單且變化多樣,值得學習
Farm Frenzy Pizza Party
http://www.bigfishgames.com/online-games/4890/farm-frenzy-pizza-party/index.html
Farm Frenzy 2
http://www.bigfishgames.com/online-games/4741/farm-frenzy-2/index.html
Farm Frenzy
http://www.bigfishgames.com/online-games/3838/farm-frenzy/index.html
Flex IDE提供了一個好用的功能,可把網路上的WebService解析並產生類別,讓在使用WebService時可明確知道有那些方法,並產生明確的接收事件跟VO
首先選擇 Data -> Import WebService,在跳出的視窗選要儲存的位置
之後輸入要匯入的 WebService WSDL URL
等轉換完成後你會看到一包分好的類別
之後把整包類別做好連結,就可像程式一樣調用方法跟事件,由於有code hit使用起來還蠻方便的
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxmlquot; layout="absolute" applicationComplete="main();">
<mx:Script>
<![CDATA[
import mx.utils.ObjectUtil;
import com.cdyne.WeatherReturn;
import com.cdyne.GetCityWeatherByZIP_request;
import com.cdyne.GetCityWeatherByZIPResultEvent;
import com.cdyne.GetWeatherInformation_request;
import com.cdyne.GetWeatherInformationResultEvent;
import com.cdyne.Weather;
[Bindable]
private var myWeater:Weather = new Weather();
private function main():void
{
myWeater.addgetCityWeatherByZIPEventListener(resultHandler);
}
private function resultHandler(event:GetCityWeatherByZIPResultEvent):void
{
var weaterReturn:WeatherReturn = WeatherReturn(event.result);
msg.text = weaterReturn.City;
}
private function useListener():void
{
myWeater.getCityWeatherByZIP(zipField.text);
}
private function useLastResult():void
{
var request:GetCityWeatherByZIP_request = new GetCityWeatherByZIP_request();
request.ZIP = zipField.text;
myWeater.getCityWeatherByZIP_request_var = request;
myWeater.getWeatherInformation_send();
}
]]>
</mx:Script>
<mx:TextArea x="10" y="10" width="487" height="204" id="msg" text="{myWeater.getWeatherInformation_lastResult}"/>
<mx:Button x="153" y="222" label="use Listener" click="useListener()"/>
<mx:Button x="256" y="222" label="use LastResult" click="useLastResult()"/>
<mx:TextInput x="10" y="222" width="135" id="zipField" text="37217"/>
</mx:Application>
這個範例測試兩種收值方法,一種是用send及lastResult,另一種是用EventLitener去監聽事件,雖然都是用匯入的 WebService方法,但概念跟一般WebService用法相同
有人可能跟我一樣好奇,為什麼前一陣子的 Flex Langeuage Reference版本是3.3而官網卻沒有3.3可更新,終於在今天(3/4)看到 SDK 3.3 Milestone,雖然Adobe Update還沒有更新,但有興趣的人可以先下載回來安裝
SDK下載頁:http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+3
修正問題:http://bugs.adobe.com/jira/secure/IssueNavigator.jspa?mode=hide&requestId=12020
Water and Bread © 2008. Blog design by Lucian E. Marin — Converted by Randomness!