Es decir, que lo que aparentemente parece más complejo, la gestión de eventos, una vez que se entiende se convierte en una normalización que puede ahorrar mucho tiempo.ActionScript 3 completely revamped the way events were handled in ActionScript. There are two major themes that define ActionScript 3 events:
- Consistent event handling with a new, native EventDispatcher class
- Support for event propagation within display objects
Though the EventDispatcher class is not entirely new having existed with the V2 component architecture present in Flash MX 2004 components, with ActionScript 3 EventDispatcher has been updated and made a native part of the ActionScript language responsible for essentially all event handling. What does this mean for events in ActionScript 3?
- no on(event){}
- no onClipEvent(event){}
- no adding scripts on selected objects. Period.
- no object.onEvent = function(){} (for native events)
- no addListener
- no object-based listeners (now only using methods/functions)
El resto del tutorial está muy bien, aún está en desarrollo, por cierto.
Actionscript 3 with Flash 3 Tutorial
Está en inglés.
No hay comentarios:
Publicar un comentario