Re: [flexcoders] Grabbing the name of the currently executing function

2006-06-30 Thread Ralf Bokelberg



Though i don't think it works, have yout tried flash.utils.describeType? Cheers,Ralf. On 6/29/06, Clint Modien 
[EMAIL PROTECTED] wrote:















Anyway to do something like this in AS3?



pacakge packageName {

public class className {

private function someFunction():void
{

   trace(arguments.callee)
//???

}

}

}



It doesn't return "packageName.::className.someFunction"
like I was hoping it might…



Is this possible?




 
  
  Clint Modien
  
http://esria.com
  p. 1.877.TRY.ESRIA
  ext 706
  c.
  1.408.489.0750
  f.
  1.877.828.4436
  [EMAIL PROTECTED]

  
  
  

  
 














__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



RE: [flexcoders] Grabbing the name of the currently executing function

2006-06-30 Thread Clint Modien












Ya It doesnt show me the
method name describeType(arguments.callee)



I remember there used to be an
ASSetPropFlags hack to explose the function names in an obj but I
didnt see an equivalent in AS3.













From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Ralf Bokelberg
Sent: Friday, June 30, 2006 2:27
AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Grabbing
the name of the currently executing function











Though i don't think it works, have yout tried
flash.utils.describeType? 
Cheers,
Ralf. 



On 6/29/06, Clint
Modien  [EMAIL PROTECTED]
wrote:







Anyway
to do something like this in AS3?



pacakge
packageName {

public class className {

private function someFunction():void {




trace(arguments.callee) //???

}

}

}



It
doesn't return packageName.::className.someFunction like I was
hoping it might



Is
this possible?




 
  
  Clint
  Modien
  http://esria.com
  p. 1.877.TRY.ESRIA
  ext 706
  c. 1.408.489.0750
  f. 1.877.828.4436
  [EMAIL PROTECTED] 
  
  
  
  
 



















__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






Re: [flexcoders] Grabbing the name of the currently executing function

2006-06-30 Thread Jeremy Lu




I'm pretty sure last time I heard about this the answer is NO, you can't.

but why do you need the name of the function ? maybe there are other workarounds.

Jeremy.On 6/30/06, Clint Modien [EMAIL PROTECTED] wrote:













  













Ya… It doesn't show me the
method name… describeType(arguments.callee)



I remember there used to be an
ASSetPropFlags hack to explose the function names in an obj… but I
didn't see an equivalent in AS3.













From: 
flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] 
On Behalf Of Ralf Bokelberg
Sent: Friday, June 30, 2006 2:27
AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Grabbing
the name of the currently executing function











Though i don't think it works, have yout tried
flash.utils.describeType? 
Cheers,
Ralf. 



On 6/29/06, Clint
Modien  [EMAIL PROTECTED]
wrote:







Anyway
to do something like this in AS3?



pacakge
packageName {

public class className {

private function someFunction():void {




trace(arguments.callee) //???

}

}

}



It
doesn't return packageName.::className.someFunction like I was
hoping it might…



Is
this possible?




 
  
  Clint
  Modien
  
http://esria.com
  p. 1.877.TRY.ESRIA
  ext 706
  c. 1.408.489.0750
  f. 1.877.828.4436
  [EMAIL PROTECTED] 

  
  
  

  
 























  















__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



RE: [flexcoders] Grabbing the name of the currently executing function

2006-06-30 Thread Gordon Smith












arguments.callee gives you a reference to
the Function that is executing. You can't turn a Function reference into a
method name.



What is the use case for knowing its name?



If you need function names only when
running in the debug player, I think you can throw an error and get them from
the getStackTrace() method of the Error class.



- Gordon











From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Clint Modien
Sent: Friday, June 30, 2006 8:48
AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Grabbing
the name of the currently executing function













Ya It doesnt show me the method name
describeType(arguments.callee)



I remember there used to be an ASSetPropFlags hack to explose the
function names in an obj but I didnt see an equivalent in
AS3.













From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com]
On Behalf Of Ralf Bokelberg
Sent: Friday, June 30, 2006 2:27
AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Grabbing
the name of the currently executing function











Though i
don't think it works, have yout tried flash.utils.describeType? 
Cheers,
Ralf. 



On 6/29/06, Clint Modien
 [EMAIL PROTECTED] wrote:







Anyway
to do something like this in AS3?



pacakge
packageName {

public
class className {

private
function someFunction():void {




trace(arguments.callee) //???

}

}

}



It
doesn't return packageName.::className.someFunction like I was
hoping it might



Is
this possible?




 
  
  Clint
  Modien
  http://esria.com
  p. 1.877.TRY.ESRIA
  ext 706
  c. 1.408.489.0750
  f. 1.877.828.4436
  [EMAIL PROTECTED] 
  
  
  
  
 
 



























__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






RE: [flexcoders] Grabbing the name of the currently executing function

2006-06-30 Thread Clint Modien












Ya I guess I could workaround it by
hardcoding a variable in the function with the function name thats
easiest



I was hoping to create some generic
logging/tracing and error handling code that would use a a variable for className.functionName.













From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Jeremy Lu
Sent: Friday, June 30, 2006 11:56
AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Grabbing
the name of the currently executing function












I'm pretty sure last time I heard about this the answer is NO, you
can't.

but why do you need the name of the function ? maybe there are other
workarounds.

Jeremy.



On 6/30/06, Clint
Modien [EMAIL PROTECTED]
wrote:













Ya It doesn't show
me the method name describeType(arguments.callee)



I remember there used to
be an ASSetPropFlags hack to explose the function names in an obj
but I didn't see an equivalent in AS3.













From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com]
On Behalf Of Ralf Bokelberg
Sent: Friday, June 30, 2006 2:27
AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Grabbing
the name of the currently executing function















Though i don't think it works, have yout tried
flash.utils.describeType? 
Cheers,
Ralf. 



On 6/29/06, Clint
Modien 
[EMAIL PROTECTED] wrote:







Anyway to do something like this in AS3?



pacakge packageName {

public class className {

private function someFunction():void {




trace(arguments.callee) //???

}

}

}



It doesn't return
packageName.::className.someFunction like I was hoping it
might



Is this possible?




 
  
  Clint
  Modien
  http://esria.com
  p. 1.877.TRY.ESRIA
  ext 706
  c. 1.408.489.0750
  f. 1.877.828.4436
  [EMAIL PROTECTED] 
  
  
  
  
 











































__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






[flexcoders] Grabbing the name of the currently executing function

2006-06-29 Thread Clint Modien










Anyway to do something like this in AS3?



pacakge packageName {

public class className {

private function someFunction():void
{

   trace(arguments.callee)
//???

}

}

}



It doesnt return packageName.::className.someFunction
like I was hoping it might



Is this possible?




 
  
  Clint Modien
  http://esria.com
  p. 1.877.TRY.ESRIA
  ext 706
  c.
  1.408.489.0750
  f.
  1.877.828.4436
  [EMAIL PROTECTED]
  
  
  
  
 







__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___