Does Actionscript have something like magic constants? -


Yes, I'm new to Action Script / Flex / Flash, but I'm actually new to C / C ++ / PHP / etc. Like magic constants:

  __ function__ __LINE__ __FILE__   

Is there an equivalent in actionscript 3.0? When compiling, I get an error:

  Error: Using the undefined property __FUNCTION__    

The accessible name in each function is a special topic. This can be used to get the argument (as the name already applies):

  logic [0] // first argument   

It can also be used to get a reference to the function you called:

  arguments.callee   

In the first action script there is a Caller was property, but not in AS3

One way to get the name of the function using Kaili Property is:

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

c# - Confused over DLL entry points (entry point not found exception) -