This solved the problem. Do you know of a way to trace or output the data from the AS3 socket that the Arduino is reading? I want to ensure that the string I am sending is being read correctly.
best Solution PaulS reply
You could write to an LCD, or to an SD card. The SD card isn't exactly real time, but it could work, with patience. Or use a Mega, Leonardo, or Micro with multiple serial ports, and an FTDI cable to connect the other serial port to the PC.
I want to ensure that the string I am sending is being read correctly.
For testing purpose you can even do it by blink a led if you know what your sending.