Go Down

Topic: Processing Serial.read AS3Glue equivalent (Read 743 times) previous topic - next topic



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

I'm trying to do the As3 equivalent of the processing code:
Code: [Select]
   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

Go Up