I have an application written and compiled with an older version of flex sdk. Now i have to port this application to run on mobile devices, so i changed the sdk to air sdk 3.5. I'm using hurlant library for encryption/decryption. bu on Hex class there is a line that throws an error.
if (hex.length&1==1) hex="0"+hex;
I dont know what (hex.length&1==1) means. So how should i have to change the line or is there any other solutions for that problem?
I've seen that error too, it happens when you compile with the new ASC2.0 compiler of Flash Builder 4.7.
I changed if (hex.length&1==1) hex="0"+hex;
into
if ((hex.length&1)==1) hex="0"+hex;
and that fixed it.