Is there a line number constant or way to dynamically trace the line number in actionscript?
Does actionscript have the equivalent of
__LINE__
in PHP?
Is there a line number constant or way to dynamically trace the line number in actionscript?
Does actionscript have the equivalent of
__LINE__
in PHP?
Hi,
This is not a CONSTANT but this line of code will give you the line number:
trace(">",new Error().getStackTrace().match(/(?<=:)[0-9]*(?=])/g)[0]);
PS: this will only work if the swf is compiled in debug mode