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:
parent
0f2237e171
commit
f96017e6f3
|
@ -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());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue