It is possible to define a public variable of type Function
and to assign a external function to it. Generally, events
are preferred in AS3/Flex 2 though

Cheers
Ralf.


On 3/11/07, Alex <[EMAIL PROTECTED]> wrote:

  Hi there,

I'm very new to Flex 2, and was wondering if this was possible.

1. Create a basic widget or application
2. Use that widget inside of a main mxml file
3. Set a callback function on that button

For example, let's say the widget is just a plain button that has
some complex AS inside of it. I'd like at some point, after the
button is clicked and the functions performed, that a certain callback
function be performed. Something like a function pointer, or Java
AbstractAction.

This way, I could assign individual functions to the individual
buttons... Possible?

Thanks.
Alex




--
Ralf Bokelberg <[EMAIL PROTECTED]>
Flex & Flash Consultant based in Cologne/Germany
Phone +49 (0) 221 530 15 35

Reply via email to