hello i try to convert a program from vb.net to flash as3
and i cannot figure out how to do this
MsgBox(BitConverter.ToString(Encoding.UTF8.GetBytes("CP0809344834")))
when i execute tis i get: 43-50-30-38-30-39-33-34-34-38-33-34
now i wrote this code in AS3
import flash.utils.ByteArray;
var serial = "CP0809344834";
var a:ByteArray = new ByteArray();
a.writeUTF(serial);
trace(a.length);
for (var i:int = 0; i < a.length; i++)
{
trace(a*);
}
but it doesn’t give me the same value
please help me