Glue as3 class - Serial.print issue

Hello, this should be quite easy to solve but I couldnt find anything.

I am using firmata + glue class in flash to startup an arduino.
All I needed is to send a number to serial.

If I was compiling the code in arduino that that would be simply:

void loop()
int id = 1; //any number

void setup(){
  Serial.begin(9600);
}

void loop(){
      Serial.print(id);  
}

But, I can't find a way to print this number via flash.
Anybody could help?

Thanks in advance.
btp

Your sketch doesn't make sense.
You've got two "loop"s, but only one has enclosing braces.

indeed!
first line is there for nothing, sorry.

int id = 1; //any number

void setup(){
  Serial.begin(9600);
}

void loop(){
      Serial.print(id);
}

I'm checking the standardFirmata code to see if I can implement something there instead of sending the id via flash... however, it would fit only testing purposes. The need is to send id via flash.

thanks