OK, so while the control doesn't write the 0 if you use \x00, it will write it if you use StringStream like so:
Instead of this:
commx.writeStr("\xFE\x00");
You use this:
var ss = new StringStream;
ss.put('\xFE');
ss.put(0);
commx.write(ss);
Works a treat! Thanks to SwfKit's support for the answer! Really cool being able to turn on/off electrical devices from Flash!
|