顯示具有 Library 標籤的文章。 顯示所有文章
顯示具有 Library 標籤的文章。 顯示所有文章

2008-01-24

AS3 翻頁效果 (使用現成類別)

PageFlip class
作者首頁
測試範例

import com.foxaweb.pageflip.PageFlip;

const PAGE_WIDTH = 240;
const PAGE_HEIGHT = 180;

var render:Shape=new Shape();
var page0:BitmapData=new p0(PAGE_WIDTH, PAGE_HEIGHT);
var page1:BitmapData=new p1(PAGE_WIDTH, PAGE_HEIGHT);

render.x=250;
render.y=35;
addChild(render);
this.addEventListener(Event.ENTER_FRAME, onEF);

function onEF(e:Event){
render.graphics.clear();
// 計算翻頁的物件
var o0:Object = PageFlip.computeFlip(
new Point(render.mouseX, render.mouseY), // 翻折位置
new Point(1,1), // 右下角
PAGE_WIDTH, PAGE_HEIGHT, // 尺寸
true, // 水平翻頁
1);
PageFlip.drawBitmapSheet(o0, render, page0, page1);
}

測試範例原始檔

2007-11-28

AS3 BulkLoader 好用的載入工具

專案 BulkLoader @ Google Code
drawlogic 介紹 BulkLoader
已具備的功能特色:
1) Connection pooling.
2) Unified interface for different loading types.
3) Cache managing.
4) Statistics about loading (latency, speed, average speed).

2007-08-24

AsWing AS3 version 1.1 released

福樂包 (fl package) 難用嗎? 麥香包 (mx package) 佔太大體積嗎 ?
試試 AsWing
有用過 Java Swing 的人應該會覺得它很好用 ;)

2007-08-14

22 組 AS3 API

資料來源: List of 22 ActionScript 3.0 API’s
內容:
Adobe APIs
corelib, mappr, flickr, youtube and more.
http://labs.adobe.com/wiki/index.php/ActionScript_3:resources:apis:libraries

APE (Actionscript Physics Engine)
http://www.cove.org/ape/

as3awss3lib
ActionScript 3.0 library for interacting with Amazon S3
http://code.google.com/p/as3awss3lib/

as3soundeditorlib
Actionscript 3.0 library for sound editing
http://code.google.com/p/as3soundeditorlib/

as3ds
AS3 Data Structures For Game Developers
http://code.google.com/p/as3ds/

ASCOLLADA
http://code.google.com/p/ascollada/

As3Crypto
ActionScript 3 Cryptography Library
http://crypto.hurlant.com/

asinmotion
Animation Library for AS3
http://code.google.com/p/asinmotion/

Away3d
http://code.google.com/p/away3d/

ebay API
http://code.google.com/p/as3ebaylib/

facebook-as3
AS3 API to access Facebook's Platform API
http://code.google.com/p/facebook-as3/

flest
Flest Framework for Adobe Flex and ActionScript3 Applications
http://code.google.com/p/flest/

FZip
Actionscript 3 class library to load standard ZIP archives and extract/decompress contained files.
http://codeazur.com.br/lab/fzip/

lastfm-as3
Actionscript 3.0 library to access the Last.fm web services
http://code.google.com/p/lastfm-as3/

MapQuest
http://company.mapquest.com/mqbs/4a.html

mecheye-as3-libraries
A set of ActionScript 3 Libraries, primarily for Flash game development.
http://code.google.com/p/mecheye-as3-libraries/

Papervision3D
http://code.google.com/p/papervision3d/

Salesforce Flex Toolkit
http://wiki.apexdevnet.com/index.php/Flex_Toolkit

Tweener
Full featured animation library
http://code.google.com/p/tweener/

Twitter AS3 API
http://twitter.com/blog/2006/10/twitter-api-for-flash-developers.html

uicomponents-as3
Lightweight AS3 UI component library
http://code.google.com/p/uicomponents-as3/

XIFF
XMPP client library
http://svn.igniterealtime.org/svn/repos/xiff/branches/xiff_as3_flexlib_beta1/

Yahoo AS3 APIs
http://developer.yahoo.com/flash/as3_api_libraries.html

2007-07-28

SWFfix: 將 SWF 放入 HTML 的另一種方式

SWFObject 已經很好用了, 但是為了減少對 JavaScript 的依賴, 以及支援更多的平台, 於是有 SWFfix 的出頭。現在有公開測試版了, 相關網址:
SWFfix project
SWFfix.org

2007-07-25

Flexlib

Flexlib 顧名思義提供 Flex 組件, 藉由社群力量, 提供質量皆佳的組件。
相關資料: FlexLib in the wild

2007-07-15

混搭 spry 和 jQuery 時的載入順序

來源網址: SPRY and jQuery load sequence
先載入 SpryData.js, 再載入 jquery.js。

2007-07-04

影像變形類別

Ruben Swieringa 提供了影像變形類別, 其 blog 上除了 Demo 還有原始檔文件

2007-06-21

as3corelib

as3corelib: ActionScript 3.0 library for several basic utilities.
裡面的工具都很有用, 包含常用的 JPGEncoder, JSON, MD5, PNGEncoder, SHA1.

在 Flash IDE 使用, 大多使用類別原始碼, 也可以使用 SWC. 以下是使用 SWC 的方式
1. 把 corelib.swc 放在 Flash CS3 安裝目錄的 en\Configuration\Components.
2. 開啟 Flash CS3.
3. 在 components 面板裡可以看到「standard components」>「DateFormatter」.
4. 把「DateFormatter」放在文件的元件庫即可.

FB 留言