core: Use catchup_display_object_to_frame in Loader

This commit is contained in:
Aaron Hill 2022-08-24 18:15:21 -05:00 committed by kmeisthax
parent 2c93da9a70
commit 61d0f73fdb
1 changed files with 5 additions and 1 deletions

View File

@ -20,6 +20,7 @@ use crate::display_object::{
Bitmap, DisplayObject, TDisplayObject, TDisplayObjectContainer, TInteractiveObject,
};
use crate::events::ClipEvent;
use crate::frame_lifecycle::catchup_display_object_to_frame;
use crate::player::Player;
use crate::string::AvmString;
use crate::tag_utils::SwfMovie;
@ -558,13 +559,16 @@ impl<'gc> Loader<'gc> {
);
// FIXME - do we need to call 'set_place_frame'
mc.preload(&mut activation.context);
mc.construct_frame(&mut activation.context);
mc.post_instantiation(
&mut activation.context,
None,
Instantiator::Movie,
false,
);
catchup_display_object_to_frame(
&mut activation.context,
mc.into(),
);
if let Some(loader_info) = loader_info {
// Store the real movie into the `LoaderStream`, so that