Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Serial Port Communication in AS3 or AS2

New Here ,
Jul 24, 2009 Jul 24, 2009

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.

TOPICS
ActionScript
3.9K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Jul 27, 2009 Jul 27, 2009

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..

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jul 27, 2009 Jul 27, 2009
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines