Re: [Flashcoders] Function => String

2008-08-30 Thread Ian Thomas
You might be able to get something out of flash.utils.describeType() HTH, Ian On Mon, Aug 25, 2008 at 6:57 PM, Rob Sampson <[EMAIL PROTECTED]> wrote: > I've been working with ExternalInterface.addCallback, and I think it's a > drag that you have to send the name of a function as a String - it

Re: [Flashcoders] Function => String

2008-08-30 Thread Arka Roy
I'm pretty sure there is no reflection-type functionality in AS3 to return a method name. Maybe you can define a bunch of string constants (perhaps even as static members in a class you create for this purpose, to hold them in one place) and use them as parms to addCallback(). Then you would stil

[Flashcoders] Function => String

2008-08-25 Thread Rob Sampson
I've been working with ExternalInterface.addCallback, and I think it's a drag that you have to send the name of a function as a String - it seems like there should be a way to get the name of a function dynamically the same way Event uses public static constants for their strings – so the compiler