avm2: Also register EventDispatcher methods in ns "flash.events:IEventDispatcher"

This is needed by "Steambirds: Survival"
This commit is contained in:
Aaron Hill 2023-02-17 20:12:11 -06:00
parent bc165a81ff
commit 071306f107
1 changed files with 5 additions and 0 deletions

View File

@ -275,6 +275,11 @@ pub fn create_class<'gc>(activation: &mut Activation<'_, 'gc>) -> GcCell<'gc, Cl
activation.avm2().public_namespace,
PUBLIC_INSTANCE_METHODS,
);
write.define_builtin_instance_methods(
mc,
Namespace::package("flash.events:IEventDispatcher", mc),
PUBLIC_INSTANCE_METHODS,
);
write.define_instance_trait(Trait::from_slot(
QName::new(activation.avm2().ruffle_private_namespace, "target"),