Browsing articles in "AS3"
十二月
23
2011

Flash 內加 PayPal Donation Button (AS3)

paypal

Shopping Cart =========================================================== var variables:URLVariables = new URLVariables(); variables.cmd = "_cart"; variables.add = "1″; variables.amount = String(  TOTAL DOLLAR AMOUNT HERE  ); variables.business = "  YOUR PAYPAL EMAIL HERE  "; variables.item_name = "Item 1″; variables.item_number = "123456789″; variables.tax = "0″; variables.currency_code = "USD"; variables.page_style = "PayPal"; variables.no_shipping = "0″; variables.undefined_quantity = "1″; variables.rn = "1″; variables.shipping = "0″; variables.shopping_url = "http://www.ononpig.com"; var request:URLRequest = new URLRequest("https://www.paypal.com/cgi-bin/webscr"); request.method = URLRequestMethod.POST; request.data = variables; navigateToURL(request, "_self"); Donation [...]

十月
22
2011
AS3 // CSS // CSS3 // HTML5 // web 2.0

Web 2.0開源應用大集會

13712257_200808061307391-180x160

數字媒體 相冊(Flickr, Picasa) Gallery,基於PHP + MySQL的Web相冊。非常易於使用,包括一個配置嚮導,對於相片的操作包括自動生成縮略圖、相片的大小改變、選擇、排序等。 Piwigo,基於PHP + MySQL。配備了強大的功能,發佈和管理您的照片,可擴展性和智能瀏覽功能,如類別,標籤,或年表。這是網絡和照片的標準要求。擴展使Piwigo更可擴展性和可定製的。 UberGallery,一個簡單易用的相冊。PHP。不需要數據庫。 Zenphoto,一個簡單的web相冊程序,它能夠簡單的展示你的圖片,並含有你所需要的所有功能和特點。可以和Wordpress集成。 視頻(YouTube) Flowplayer,一個用Flash開發的在Web上的視頻播放器,可以很容易將它集成在任何的網頁上。支持HTTP以及流媒體傳輸。 Plumi,一個建立在Plone 內容管理系統上的視頻分享系統,可幫助你輕鬆建立視頻分享網站。 音樂電台社區(last.fm, ulike) Libre.fm,對Last.fm 的克隆。 視頻電影社區(netflix, criticker) Filmaster,fileaster.com的源碼。 書(LibraryThing, Shelfari, Goodreads) O’Reilly Bookworm,在線電子圖書閱讀。 期刊參考論文數據庫(Emerald Insight, Springer Link) CiteSeerX, 採用機器自動識別技術蒐集網上以Postscrip和PDF文件格式存在的學術論文,然後依照引文索引方法標引和鏈接每一篇文章。(其是CiteSeer 的換代產品。1997年,CiteSeer引文搜索引擎由NEC公司在美國普林斯頓研究所的三位研究人員Steve Lawrence, Lee Giles和Kurt Bollacker研製開發。它是利用自動引文標引系統ACI(Autonomous Citation Indexing)建立的第一個科學文獻數字圖書館(Scientific Literature Digital Library))。 地圖(Google Maps) OpenStreetMap,一個可供自由編輯的世界地圖,它是由所有的用戶創造的。OpenStreetMap允許您查看,編輯或者使用世界各地的地理數據來幫助您。其就像Wikipedia一樣,全世界的人都可以編輯,據說其上面的數據超過了政府的數據。當然,目前其參與的人數還不夠,大量的地方都是白板。 文件存儲 文件共享/同步(DropBox, drop.io, Ubuntu One) Tahoe Least-Authority Filesystem,一個雲存儲分佈式文件系統。 iFolder,一個簡單安全的存儲解決方案,可在計算機間文件的同步和分享。可以用來隨時備份本地的文件。 存儲(Amazon S3, Imageshack, Box, Variety of models) Jesse Vincent’s Prophet,你可以看看他的文檔介紹吧。 在線文件編輯(Google Docs) AbiCollab,基於AbiWord的社群的線上文書處理協作服務。 Etherpad,基於開放軟體的線上文書處理服務,最大的特色在於多人即時共同協作一份文件,軟體組織不直接提供服務,而是透過其他沒有連繫的組織網站提供。 虛擬機供應(Amazon EC2) Eucalyptus (computing), 是一用來通過計算集群或工作站群實現彈性的、實用的雲計算。它最初是美國加利福尼亞大學 Santa Barbara [...]

十月
19
2011

控制 Flash / browser 捲軸 in AS3

flash

有沒有發現,當as3 寫了"MouseEvent.MOUSE_WHEEL"後,放在browser 試時,browser 都會跟著scroll? 以下時簡單解決方法 1. Download MouseWheelTrap Package 2.放以下code 入as   import com.spikything.utils.MouseWheelTrap; MouseWheelTrap.setup(stage);

五月
18
2011

Crop MovieClip to Bitmap (AS3)

actionscripticon_400-300x300

function crop( _x:Number, _y:Number, _width:Number, _height:Number, displayObject:DisplayObject = null):Bitmap { var cropArea:Rectangle = new Rectangle( 0, 0, _width, _height ); var croppedBitmap:Bitmap = new Bitmap( new BitmapData( _width, _height ), PixelSnapping.ALWAYS, true ); croppedBitmap.bitmapData.draw( (displayObject!=null) ? displayObject : stage, new Matrix(1, 0, 0, 1, -_x, -_y) , null, null, cropArea, true ); return croppedBitmap; } var myCroppedImage:Bitmap = crop( 100, 100, 200, 200 ); this.addChild ( myCroppedImage );

四月
21
2011

(Flash as3) How to load and display the user’s local image

flash

This sample simply opens the file selection dialogue box and loads the selected image to the blank canvas on the screen. There’s nothing worth showing – it simply serves as a reminder to myself of how to do it. package { import flash.display.*; import flash.events.*; import flash.net.*; public class ImageLoader extends Sprite { private var fileReference:FileReference; public function ImageLoader() { open_btn.addEventListener(MouseEvent.CLICK, h_openClick); } public function h_openClick(evt:MouseEvent):void { fileReference = new FileReference(); fileReference.addEventListener(Event.SELECT, selectHandler); fileReference.addEventListener(Event.COMPLETE, completeHandler); [...]

二月
22
2011

Flash Debugger Player令Firefox 3.6.6停頓的解決辦法

FirefoxCrash

大家有沒有發現,當firefox升級到的3.6.6以後,賞試用flash debugger工具,一遇到有問題的flash,會另到firefox 停頓及沒有回應,最後只有強行關閉firefox。 最近發現原來有方法解決的。 做法如下: 1. Firefox地址欄輸入about:config,打開高級設置,如果有警告直接忽略 2. 在Filter裡搜索dom.ipc.plugins 3. 雙擊dom.ipc.plugins.enabled.npswf32.dll設為false 4. 也可以把dom.ipc.plugins.timeoutSecs設為-1 5. 重啟Firefox 問題應該可以解決!