Serial Port Communication in AS3 or AS2
Copy link to clipboard
Copied
Hello,
In a project that I'm working on, I have to be able to read input data from a serial port. The input data will be very simplistic in nature. I'm guessing more like a on/off, yes/no, true/false style of operation.I have found some examples in other languages, but nothing in AS3 or AS2. Could anyone send any sample code or a link to a tutorial that gives me some lead way on this? Which approach is better, going with a Flash projector piece, or building it in AIR? The final piece will be on a PC based system.
Thanks for any assistance/guidance available.
Copy link to clipboard
Copied
Flash is not able to communicate with any USB / Serial ports. AIR is more realistic but even then you need some kind of bridge that communicates with the OS.
http://www.merapiproject.net/ (this one might ease the communication between AIR and Java)
maybe AIR 2.0 will bring some more support, don't know..

Copy link to clipboard
Copied
You can do it with Flash, but you will need to use one of the various 'wrapper' applications. I've used SWFKit for just this purpose, and it worked perfect.

