diff --git a/core/src/avm2/globals/flash/display/bitmapdata.rs b/core/src/avm2/globals/flash/display/bitmapdata.rs index 0414681ff..2aea6e672 100644 --- a/core/src/avm2/globals/flash/display/bitmapdata.rs +++ b/core/src/avm2/globals/flash/display/bitmapdata.rs @@ -198,6 +198,8 @@ pub fn create_class<'gc>(mc: MutationContext<'gc, '_>) -> GcCell<'gc, Class<'gc> write.set_attributes(ClassAttributes::SEALED); write.set_instance_allocator(bitmapdata_allocator); + write.implements(QName::new(Namespace::package("flash.display"), "IBitmapDrawable").into()); + const PUBLIC_INSTANCE_PROPERTIES: &[( &str, Option, diff --git a/core/src/avm2/globals/flash/display/displayobject.rs b/core/src/avm2/globals/flash/display/displayobject.rs index d6fb55e5c..33787e196 100644 --- a/core/src/avm2/globals/flash/display/displayobject.rs +++ b/core/src/avm2/globals/flash/display/displayobject.rs @@ -604,6 +604,8 @@ pub fn create_class<'gc>(mc: MutationContext<'gc, '_>) -> GcCell<'gc, Class<'gc> mc, )); + write.implements(QName::new(Namespace::package("flash.display"), "IBitmapDrawable").into()); + const PUBLIC_INSTANCE_PROPERTIES: &[( &str, Option,