OpenFL event lifecycle is missing stages that exist within the Flash player runtime.
For example, two events I use extensively are EVENT.FRAME_CONSTRUCTED
and EVENT.EXIT_FRAME
.
Event lifecycle, per Flash runtime:
-
EVENT.ENTER_FRAME
dispatched - Constructor code of children MovieClips is executed
-
EVENT.FRAME_CONSTRUCTED
dispatched - MovieCip frame actions executed
- Frame actions of children MovieCips executed
-
EVENT.EXIT_FRAME
dispatched -
EVENT.RENDER
dispatched
Frame constructed was new in Flash Player 10. Within a frame, this indicates when it’s safe to reference newly added display list children.
Exit frame was also new in Flash Player 10. Within a frame, this provides an opportunity to manipulate the display list after all script has executed.
Do these events not translate well? Is there an equivalent?