avm2: Preload dynamically created movie clips

If we don't preload every movie clip we make, then they'll indicate themselves as not having been fully loaded yet, even though they are.
This commit is contained in:
David Wendt 2021-07-28 19:27:51 -04:00 committed by kmeisthax
parent 0f2237e171
commit f96017e6f3
1 changed files with 2 additions and 0 deletions

View File

@ -33,6 +33,8 @@ pub fn instance_init<'gc>(
let new_do = let new_do =
MovieClip::new_with_avm2(movie, this, class_object, activation.context.gc_context); MovieClip::new_with_avm2(movie, this, class_object, activation.context.gc_context);
new_do.preload(&mut activation.context, &mut Default::default(), None);
this.init_display_object(activation.context.gc_context, new_do.into()); this.init_display_object(activation.context.gc_context, new_do.into());
} }
} }