by zhenning » Mon Nov 28, 2011 9:19 pm
The first thing you have to do is to download the as3glue library and upzip it somewhere. Because this library is needed by the flash, you now, need to open flash and point to the path where the as3glue library is.(Flash->Edit Menu->Preferences) click ActionScript->ActionScript 3.0 Settings...->"+" to add new directory to classpath. Click the crosshairs to find the as3glue/as3 folder. Confirm all dialogs.
To test whether you have set them properly, do this:
Execute as3glue/applications/Serproxy-0.1.3-3/serproxy. On Vista, you have to unblock the program to give it permission to open a socket. On Mac OSX, you'll get a warning about launching a program downloaded from the internet. Again, you'll have to give permission.
This is the frontend of the flash that will give you the GUI interface
Open cs247_examples/test_arduino.fla in Flash. Run it.
What you should get if everything is correctly done:
In Flash should display a message like this:
Socket connected!
Socket closed!
The serproxy window should show something like this:
Failed to open comm port - connection refused
This means you're good to go - all that is missing is the hardware.
If you have your hardware connected, "Failed to open comm port - connection refused" you shouldnt see this error =) Hope this helps