Amol Bhandari SJ Amol Bhandari SJ - 1 year ago 129
ActionScript Question

Need help on decoding ActionScript syntax

I need help on decoding below syntax line:

(((math.ceil(num) % 2) == 0) ? (num = math.ceil(num++)num = (()+1)math.ceil()) : (math.ceil(num = math.ceil(num))));

I got the SWF script decoded using tool and found this line which our team could no decode further. specially
. I am trying to convert to javascript.

Answer Source

My only guess would be (a bit simplified):

num = Math.ceil(num);

if(num % 2 == 0)

Basically making sure the number is always uneven

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download