ps this is a very old article, the new reflection package is done, if you
are interested let me know
On Wed, Jul 16, 2008 at 7:22 PM, Hans Wichman
[EMAIL PROTECTED] wrote:
http://objectpainters.com/blog/2007/07/16/argumentscallee_name/
HTH
JC
On Wed, Jul 16, 2008 at 6:06 PM, Leonardo Scattola - New Vision srl
[EMAIL PROTECTED] wrote:
Hi list!
I apologize in advance if this question has already been asked... it is my
little Wednesday puzzle :D
Given this sample code (AS2):
myFunction=function() {
// call the second one:
trace(Now calling secondFunction);
secondFunction();
trace(End.);
}
secondFunction=function() {
// who summoned me?
trace(arguments.caller= +arguments.caller);
}
The question is simple: secondFunction traces (of course)
arguments.caller= [type Function].
Is there a method to return the name of the caller function (in this case
myFunction)?
Thank you.
--
* Logo New Vision Leonardo Scattola*
/Research Development/
New Vision Group
tel.049.8841146fax049.8840366
videoconf. newvision.comunicarepro.it http://newvision.comunicarepro.it
web site www.newvision.it http://www.newvision.it
Le informazioni contenute in questa e-mail e nei suoi eventuali allegati
sono da intendersi confidenziali e riservate esclusivamente ai destinatari.
Ne sono proibiti l'utilizzo e la divulgazione a qualunque fine senza previa
autorizzazione del mittente.
Se avete ricevuto questa e-mail per errore, vi preghiamo cortesemente di
notificarlo (via e-mail, fax, o telefono) al mittente e di distruggerla.
Tutti i messaggi elettronici sono suscettibili di alterazioni. I dati
personali vengono trattati esclusivamente per le finalità della presente
comunicazione in conformità con la legislazione vigente (D.L. 196/2003
Codice Privacy).
Per qualunque informazione si prega di fare riferimento a
[EMAIL PROTECTED] mailto:info:@newvision.it
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders