Processing Serial.read AS3Glue equivalent

Hi,

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

I'm trying to do the As3 equivalent of the processing 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