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