Amol Bhandari SJ Amol Bhandari SJ - 1 month ago 7
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
()+1
. I am trying to convert to javascript.

Answer

My only guess would be (a bit simplified):

num = Math.ceil(num);

if(num % 2 == 0)
    num++;

Basically making sure the number is always uneven

Comments