Pages: [1]   Go Down
Author Topic: Processing Serial.read AS3Glue equivalent  (Read 432 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 1
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,

Am quite new to Flash Arduino, maybe someone can help me:

I'm trying to do the As3 equivalent of the processing code:
Code:
if(Serial.available())
  {
    if(Serial.read() == 'f'){

Using the AS3Glue library. I've been looking at the processData() function in the Arduino.AS class but I don't understand where it will dispatch an event if it gets just a single char (like 'f'), so basically I'm wondering how to check if the incoming serial data byte is equal to single char using the AS3 glue library.

Any help much appreciated
cheers
Logged

Pages: [1]   Go Up
Jump to: