As3 to Arduino.

Okay. Basically I have a series of lights and a servo motor hooked up to my circuit. I want to be able to activate these individually from my computer and so need to be able to send unique commands over serial (via serproxy) to do so.
What the command is is not important so I just used the number one to test it.
I'm not sure I understand what you mean about the mouse position. I have used the mouseEvent purely as a means to send the command.
The if statements in the arduino code have been able to decode commands when I send them over the serial monitor in the arduino application but never over flash. This is the problem.
So I'm thinking that if I can send commands over serial via the serial monitor I need to format them the same as the serial monitor. Any idea how this might be done?
I just need to send over the data which my arduino is looking for in its if statement so it can execute the relevant code.
I hope that makes things slightly clearer...?