Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import flash.sampler.getSavedThis;
- import flash.utils.describeType;
- static public function getReference(f:Function):String
- {
- var t:Object = getSavedThis(f);
- var methods:XMLList = describeType(t)..method.@name;
- for each (var m:String in methods)
- {
- if (t.hasOwnProperty(m) && t[m] != null && t[m] === f)
- return t.toString() + "::" + m;
- }
- return null;
- }
- // only public functions
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement