Re: function caller reference

2013-09-06 Thread Alex Harui
On 9/6/13 2:24 AM, "Tom Chiverton" wrote: >On 05/09/2013 17:44, Alex Harui wrote: >> The stack trace >> idea isn't guaranteed to work on release players. >I thought all recent release players could generate a stack trace with >recent versions of the SDK ? >http://renaun.com/blog/2012/09/getti

Re: function caller reference

2013-09-06 Thread Tom Chiverton
On 05/09/2013 17:44, Alex Harui wrote: The stack trace idea isn't guaranteed to work on release players. I thought all recent release players could generate a stack trace with recent versions of the SDK ? http://renaun.com/blog/2012/09/getting-the-stack-trace-in-a-release-flash-player/ Tom

Re: function caller reference

2013-09-05 Thread Alex Harui
Original Message- >From: Alex Harui [mailto:aha...@adobe.com] >Sent: Thursday, September 05, 2013 10:19 PM >To: users@flex.apache.org >Subject: Re: function caller reference > >BTW, even if trace(name) works, I would caution that I believe it doesn't >work in JS and will po

RE: function caller reference

2013-09-05 Thread Raj U. Shaikh
users@flex.apache.org Subject: Re: function caller reference BTW, even if trace(name) works, I would caution that I believe it doesn't work in JS and will pose a porting problem if you ever need to port that code to JS. On 9/5/13 9:44 AM, "Alex Harui" wrote: >He's trying to dete

Re: function caller reference

2013-09-05 Thread Alex Harui
BTW, even if trace(name) works, I would caution that I believe it doesn't work in JS and will pose a porting problem if you ever need to port that code to JS. On 9/5/13 9:44 AM, "Alex Harui" wrote: >He's trying to determine who called this shared method. The stack trace >idea isn't guaranteed t

Re: function caller reference

2013-09-05 Thread Alex Harui
He's trying to determine who called this shared method. The stack trace idea isn't guaranteed to work on release players. And as the error suggested, it is best to pass in the caller. But just trace(name) may also work. On 9/5/13 8:38 AM, "Tom Chiverton" wrote: >Throw an error, catch it, and

Re: function caller reference

2013-09-05 Thread Tom Chiverton
Throw an error, catch it, and look in the stack trace. What are you trying to achieve that can't be done, as the message suggests, by some other means ? Tom On 05/09/2013 16:04, Raj U. Shaikh wrote: Hi, I wanted to access caller of function, For example: var object:Object = new Object();

function caller reference

2013-09-05 Thread Raj U. Shaikh
Hi, I wanted to access caller of function, For example: var object:Object = new Object(); object["name"] = "First Object"; object["fun"] = myFun;