Flex/actionscript 3 equivalents for __FILE__ and __LINE__

Posted by Douwe on Stack Overflow See other posts from Stack Overflow or by Douwe
Published on 2010-04-27T17:01:35Z Indexed on 2010/04/27 17:03 UTC
Read the original article Hit count: 240

Filed under:
|

Hi all,

I'm quite new to flex/actionscript and I was wondering if there is an equivalent for php's (and other languages) FILE and LINE identifiers?

Basicly I want to do some custom error logging and would like to something like:

 var mymessage:String = 'Oops, a hiccup occured at ' + __FILE__ + ', line: ' + __LINE__; 

Where file and line would ofcourse be substituted for their values at compile time.

Is this possible?

© Stack Overflow or respective owner

Related posts about flex

Related posts about actionscript-3