Pay for Hesitation: api

Pages

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

2011年4月8日 星期五

AS3 flickr API 

先申請Flickr API Key, non-commercial就可以了.

這個下方有列出很多可用的API

我是用這個

這個library會用到as3corelib, 所以先裝一下

這個人為as3flickrlib寫了一個example

從上面這個網頁抓一下他的 flickrGrabber class
trace 他的code,再比對一下 http://www.flickr.com/services/api/
大概就知道怎麼用或hack as3flickrlib了...



BTW, 中文的keyword query,
必須先將query string用encodeURI()做編碼再送UrlRequest,否則flickr會回傳查無結果。
(這部分要感謝卡卡米教教!! :D)
下面是兩篇有用的參考:

要求Flickr在收到search request時丟回Photo list 的Thumbnail urls
http://www.flickr.com/services/api/flickr.photos.search.html
有個 extras (Optional) 參數
把"url_t" assign給extras, flickr就會在search result中加上<url_t>這個tag, 並且把 thumbnail url 內嵌在裡面丟回來。



2010年10月18日 星期一

Objects Sliding on Horizontal Floor (As if there is no friction)

http://www.box2d.org/forum/viewtopic.php?f=4&t=66
Right, there is no rolling friction in Box2D. I can certainly add this. I can also add linear/angular damping. I think I'll do the latter first. For now you can just multiply the linear/angular velocity by a number slightly less than 1 each time step (like 0.95). You can also generate some energy loss by reducing the friction. Then the circles will slide a bit more and slow down, instead of sticking and rolling.


I finally solved this problem by using b2Body.SetLinearDamping() 



Why Dynamic Bodies Are Never Sleeping in Box2D World ?

What's the fucking bug!!


http://www.box2d.org/forum/viewtopic.php?f=3&t=3501
I figured out why they aren't sleeping. If gravity is greater than 60 then the bodies wont sleep. With 2.0.1 bodies will sleep with gravity as high as 100. The same issue manifests for setting forces directly to objects.

2010年10月13日 星期三

AS3 Signals

AS3 Signals Project Site
http://github.com/robertpenner/as3-signals

AS3 Signals Tutorial Video
http://johnlindquist.com/2010/01/21/as3-signals-tutorial/

Reflecting on AS3 signals
http://alecmce.com/as3/reflecting-on-as3signals

Nice example and clear explanation
http://blog.tkassembled.com/83/

Robotlegs and AS3 Signal Example
http://www.newtriks.com/?p=785

2010年7月15日 星期四

capture the screenshot from the stage of Flash Player

2010年7月14日 星期三

Box2dAS3 Notes

Some weirdness to the b2ContactListener:
Problem: You can't alter your physics world from any function inside the contact listener.
Answer: Sometimes I like to set a flag and deal with the effects later.

Problem: The same contact might get called twice.
Answer: Not a big deal, just make a plan for it. Again, maybe a good reason to set a flag and deal with it later.


2010年7月7日 星期三

BlooDHounD - 比as3corelib還高速的加密API

http://va.lent.in/blog/2010/06/23/100x-times-faster-md5-and-more/

2010年5月23日 星期日

polygonal

Combines physics, computational geometry and data structures into a single library that is aimed at the flash game developer who is targeting the latest flash player. Written in the HaXe language, the source is carefully optimized to ensure good performance of the AVM2.

2008年4月8日 星期二

FLAP

是第flare三方套件開發者,
FLAP(flare assistance pool)
目標是開發flare的輔助工具..

下面是他們寫的兩個layout.
http://goosebumps4all.net/flareLab/combiningLayouts.html
http://goosebumps4all.net/flareLab/stackLayout.html

sourceCode:(還有一些其它的sourceCode可以玩..我在宿舍沒法玩..orz)
http://goosebumps4all.net/34all/bb/forumdisplay.php?fid=31

2008年3月25日 星期二

ActionScript 3 Libraries

這個網頁有點熟悉,阿德你有po過嗎?
http://actionscript3libraries.riaforge.org/

A set of free and open libraries, written in ActionScript 3.0 for Flex and Flash developers.

Follow the External Project Link for links to source code & docs as well as the project group.

NOTE: These libraries are of beta quality and released as-is.


===============
corelib
===============

The corelib project consists of several basic utilities for MD5 hashing, JSON serialization, advanced string and date parsing, and more.

Project Page: http://code.google.com/p/as3corelib/
Project Group: http://groups.google.com/group/as3corelib

Authors: Christian Cantrell, Mike Chambers, Daniel Dura, Darron Schall
Dependencies: FlexUnit


===============
eBay
===============

The eBay ActionScript 3.0 library provides an interface between the eBay XML API and ActionScript 3.0. This open-source library will allow developers to create novel and innovative applications leveraging both eBay's marketplace services and Adobe's Flash Player 9 runtime! It is written in ActionScript 3.0, so any environment using ActionScript 3.0 can use this library, including Adobe Flex 2 and Adobe Flash Pro 9.

Project Page: http://code.google.com/p/as3ebaylib/
Project Group: http://groups.google.com/group/as3ebaylib

Authors: Charles Bihis, Darron Schall
Dependencies: corelib, FlexUnit


===============
FlexUnit
===============

FlexUnit is a unit testing framework for Flex and ActionScript 3.0 applications. It mimics the functionality of JUnit, a Java unit testing framework, and comes with a graphical test runner.

Project Page: http://code.google.com/p/as3flexunitlib/
Project Group: http://groups.google.com/group/as3flexunitlib

Authors: Matt Chotin, Daniel Dura, Alistair McLeod, Tom Ruggles, Steven Webster, Jason Williams
Dependencies: FlexUnit


===============
Flickr
===============

The Flickr library is an ActionScript 3.0 API for the online photo sharing application, Flickr. It provides access to the entire Flickr API.

Project Page: http://code.google.com/p/as3flickrlib/
Project Group: http://groups.google.com/group/as3flickrlib

Author: Darron Schall
Dependencies: corelib


===============
Mappr
===============

Mappr is a service and application that combines images from Flickr with geolocational information. The Mappr ActionScript 3.0 API gives you access to Mappr's geo-tagged image data.

Project Page: http://code.google.com/p/as3mapprlib/
Project Group: http://groups.google.com/group/as3mapprlib

Author: Mike Chambers
Dependencies: corelib, FlexUnit


===============
Syndication library
===============

Use the syndication library to parse Atom and all versions of RSS easily. This library hides the differences between the formats so you can parse any type of feed without having to know what kind of feed it is.

Project Page: - http://code.google.com/p/as3syndicationlib/
Project Group: - http://groups.google.com/group/as3syndicationlib

Author: Christian Cantrell
Dependencies: corelib, FlexUnit


===============
Odeo
===============

The Odeo API provides an ActionScript 3.0 interface for searching and retrieving podcasts from Odeo.

Project Page: - http://code.google.com/p/as3odeolib/
Project Group: - http://groups.google.com/group/as3odeolib

Author: Mike Chambers
Dependencies: corelib FlexUnit


===============
YouTube
===============

The YouTube API provides an ActionScript 3.0 interface to search videos from YouTube.

Project Page: - http://code.google.com/p/as3youtubelib/
Project Group: - http://groups.google.com/group/as3youtubelib

Author: Daniel Dura
Dependencies: corelib, FlexUnit

AS3 Crypto Library﹣編碼專用

AS3 Crypto Library
Demo

AS3編碼的third-party library...
支援下面多種編碼方式: (我幾乎都沒聽過,明年去修系上新老師的密碼學好了..orz)

TLS 1.0 support, exposed through TLSSocket and TLSEngine classes

X.509 Certificate support, including parsing, and validation

built-in list of common root Certificate Authorities

symmetric ciphers: AES, Blowfish, DES, 3DES, XTEA, RC4

confidentiality modes: CTR, CBC, CFB, CFB-8, OFB, ECB

public key crypto: RSA (encryption, decryption, signing, verifying and key generation)

padding: PKCS#1 (type 1 and 2), PKCS#5

BigInteger library

hashing function: SHA-256, SHA-224, SHA-1, MD5, MD2

HMAC support

prng: TLSPRF and stream-cypher-based PRNG.

minimal ASN-1/DER support for PEM key parsing and X-509 cert parsing

Crypto - Shortcut class to access many classes above.

Hex, Base64 - Static methods to convert binary data to and from text formats

ActionScript 讀zip檔

FZip是AS3的library,用來讀寫zip檔.
http://codeazur.com.br/lab/fzip/

demo(從zip讀1000個png圖檔並顯示)

API


2007年11月26日 星期一

ActionScript 3.0 Cheat Sheet

ActionScript 3.0: Top Level Cheatsheets, (Multi-Page PDF)

http://actionscriptcheatsheet.com/downloads/as3cs_top_level.pdf

ActionScript 3.0: flash.display Package Cheatsheet

http://www.actionscriptcheatsheet.com/jpg/as3cs_flash_display.jpg

ActionScript 3.0: Packages Cheatsheet

http://www.actionscriptcheatsheet.com/jpg/as3cs_packages_thumb.jpg