July 2006 Archives

Phidgets AS3

Phidgets AS3

Here's an Alpha AS3 rewrite of the AS2 phidgets Library. It's still very early on the developing process, but I thought I'd give everyone who might be interested a quick peek of what you can do with it.

download:

Source and Samples (756 kb)
SWC (Compiled code) (38kb)

you will need to have installed Phidgets.msi and have the PhidgetWebService running in order to properly connect to your phidgets. PhidgetWebService is a super light socket server to which your flash application connects to in order to properly send and receive data from all phidget components.

To install Source and Samples in Flex Builder I'd really recommend you to simply choose file> Import > Archive File > Choose the zip you just downloaded

If you want to go the SWC way, which is probably simpler, just create a new AS3 project in Flex Builder, Choose a name click next, and on the Library Path Tab click [ add SWC... ] and choose the location of the PhidgetLibrary.swc you just downloaded.

Things are still very dirty, If you have any suggestions on how to improve the code, please let me know.

I've done my best to resemble the original AS2 API as close as I could. Still, I took the liberty of creating extra objects that allow for even easier Phidget management.

There's no documentation at all yet, but there's plenty of samples to dig and learn how to use most of them.

If anyone out there wants tp give me a hand with docs I'd really appreciate it.
I'll try in the following days to write up some simple tutorials, so if you can't deal with the samples, patience.

code sample after the jump.