It's possible to catch all the events received by a Flex application to help extreme debugging.
import mx.core.mx_internal;
private static function hookDispatchEvent():Boolean
{
UIComponent.mx_internal::dispatchEventHook = logEventHook;
return true;
}
private static function logEventHook( event:Event, uic:UIComponent ):void
{
trace(event.toString()+" event dispatched from "+uic.toString()+ " to "+event.currentTarget);
}
private static function hookDispatchEvent():Boolean
{
UIComponent.mx_internal::dispatchEventHook = logEventHook;
return true;
}
private static function logEventHook( event:Event, uic:UIComponent ):void
{
trace(event.toString()+" event dispatched from "+uic.toString()+ " to "+event.currentTarget);
}
Trace contains the names of the Event, the component that sends the Event and the target of the Event.
Very useful.
bonjour, je ne m'y connais pas énormément en la matière. Mais si j'interprète correctement, il serait possible de récupérer en temps réel les données lues par adobe air dans un logiciel ? Si oui, comment procéder svp ? A l'avance merci.
RépondreSupprimerJérôme