Go Down

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

adamjamescuz

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: [Select]
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

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy