how do i convert this C++ code to AS3
void myFunc(BYTE type)
{
//send type to the network server..
}
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There is no such type as BYTE in ActionScript 3 but you can use ‘int’ instead.
It will looks something like this:
As it said in Socket docs: “The low 8 bits of the value are used; the high 24 bits are ignored.” So only 8 bits will be written to socket just like it is expected with BYTE in C++.