How to modify variable sketch with ActionScript ?

Hello,

with Firmata, serproxy and a .fla exemple, I can communicate with my Arduino but I can't modify a variable ... In the sketch (among FirmataStandard sketch)

int led = 13;
int myVariable = 0;

void setup()
{
  pinMode(led, OUTPUT);
  
}

void loop()
{
  if(myVariable == 1)
  {
    digitalWrite(led, HIGH);
  }
}

BUT, in Flash ???? How can I modify myVariable upload in Arduino ??? pleeeeeeease !!

Are you asking how to send data to your Arduino and have the Arduino code receive the data and save it to "myVariable"?

OR are you asking how to modify the code that is uploaded to the Arduino?

...R