What about adding unit tests?
This would allow you to verify the signatures without running the actual
application.

Another possibility is to use a parameter object, so that all the callbacks
have the same parameter.
(this is basically how event handlers work)

function myCallback( payload : Object )
{
     var specificPayload : SpecificPayloadClass = SpecificPayloadClass (
payload );
     specificPayload.specificProperty ...
}

Cheers
Ralf.


On 10/17/07, wwwpl <[EMAIL PROTECTED]> wrote:
>
>   We would like to get rid of callbacks in our project. Recently I had
> to change about 15 different callback function signatures. It took a
> long time to get everything working again because the problems had to
> be found at run time instead of compile time. Does anyone out there
> have a good solution to replace callbacks? It would be nice if Flex
> did signature checking at compile time for callbacks.
>
>  
>



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

Reply via email to