Menu

#1 Bug with ActionScript 2

open
nobody
None
5
2004-10-09
2004-10-09
Xav_qc
No

Hello,

printr doesn't work with ActionScript 2.

If you want a compatible script ActionScript 1.0 and 2.0, do this :
In all *.as files, find all 'Math.NaN'.
Math.NaN doesn't exist anymore since AS 2, so you have to
replace it.

------
if you found Math.NaN in a syntax like:
if (variable == Math.NaN)

Change it to have a syntax like:
if (isNaN(variable))
-----
if you found Math.NaN in a syntax like:
return Math.NaN;

Change it to have a syntax like:
return NaN;
-----

After that, printr functions will be OK :)

enjoy it

Discussion


Log in to post a comment.