core: Frame actions should start with `enterFrame`; not `exitFrame`.

This commit is contained in:
David Wendt 2021-12-16 23:07:18 -05:00 committed by kmeisthax
parent 1f0b8bdda4
commit ee2454e09f
1 changed files with 1 additions and 1 deletions

View File

@ -1259,12 +1259,12 @@ impl Player {
self.update(|context| {
if context.is_action_script_3() {
let stage = context.stage;
stage.exit_frame(context);
stage.enter_frame(context);
stage.construct_frame(context);
stage.frame_constructed(context);
stage.run_frame_avm2(context);
stage.run_frame_scripts(context);
stage.exit_frame(context);
} else {
// AVM1 execution order is determined by the global execution list, based on instantiation order.
for clip in context.avm1.clip_exec_iter() {