diff --git a/core/src/avm2/globals/flash/display/displayobjectcontainer.rs b/core/src/avm2/globals/flash/display/displayobjectcontainer.rs index 0f3e6ba2e..b9476575b 100644 --- a/core/src/avm2/globals/flash/display/displayobjectcontainer.rs +++ b/core/src/avm2/globals/flash/display/displayobjectcontainer.rs @@ -578,6 +578,24 @@ pub fn are_inaccessible_objects_under_point<'gc>( Err("DisplayObjectContainer.areInaccessibleObjectsUnderPoint not yet implemented".into()) } +pub fn mouse_children<'gc>( + _activation: &mut Activation<'_, 'gc, '_>, + _this: Option>, + _args: &[Value<'gc>], +) -> Result, Error> { + log::warn!("DisplayObjectContainer.mouseChildren getter: not yet implemented"); + Ok(Value::Undefined) +} + +pub fn set_mouse_children<'gc>( + _activation: &mut Activation<'_, 'gc, '_>, + _this: Option>, + _args: &[Value<'gc>], +) -> Result, Error> { + log::warn!("DisplayObjectContainer.mouseChildren setter: not yet implemented"); + Ok(Value::Undefined) +} + /// Construct `DisplayObjectContainer`'s class. pub fn create_class<'gc>(mc: MutationContext<'gc, '_>) -> GcCell<'gc, Class<'gc>> { let class = Class::new( @@ -607,7 +625,14 @@ pub fn create_class<'gc>(mc: MutationContext<'gc, '_>) -> GcCell<'gc, Class<'gc> &str, Option, Option, - )] = &[("numChildren", Some(num_children), None)]; + )] = &[ + ("numChildren", Some(num_children), None), + ( + "mouseChildren", + Some(mouse_children), + Some(set_mouse_children), + ), + ]; write.define_public_builtin_instance_properties(mc, PUBLIC_INSTANCE_PROPERTIES); const PUBLIC_INSTANCE_METHODS: &[(&str, NativeMethodImpl)] = &[ diff --git a/core/src/avm2/globals/flash/filters/BlurFilter.as b/core/src/avm2/globals/flash/filters/BlurFilter.as index 38dc2b85a..edfc09608 100644 --- a/core/src/avm2/globals/flash/filters/BlurFilter.as +++ b/core/src/avm2/globals/flash/filters/BlurFilter.as @@ -7,7 +7,7 @@ public function BlurFilter(blurX: Number = 4.0, blurY: Number = 4.0, quality: int = 1) { this.blurX = blurX; this.blurY = blurY; - this.quality = qualty; + this.quality = quality; } override public function clone(): BitmapFilter { diff --git a/core/src/avm2/globals/flash/text/textfield.rs b/core/src/avm2/globals/flash/text/textfield.rs index 2e9854e20..c5aa2d2eb 100644 --- a/core/src/avm2/globals/flash/text/textfield.rs +++ b/core/src/avm2/globals/flash/text/textfield.rs @@ -874,6 +874,24 @@ pub fn set_text_format<'gc>( Ok(Value::Undefined) } +pub fn anti_alias_type<'gc>( + _activation: &mut Activation<'_, 'gc, '_>, + _this: Option>, + _args: &[Value<'gc>], +) -> Result, Error> { + log::warn!("TextField.antiAliasType getter: not yet implemented"); + Ok(Value::Undefined) +} + +pub fn set_anti_alias_type<'gc>( + _activation: &mut Activation<'_, 'gc, '_>, + _this: Option>, + _args: &[Value<'gc>], +) -> Result, Error> { + log::warn!("TextField.antiAliasType setter: not yet implemented"); + Ok(Value::Undefined) +} + /// Construct `TextField`'s class. pub fn create_class<'gc>(mc: MutationContext<'gc, '_>) -> GcCell<'gc, Class<'gc>> { let class = Class::new( @@ -923,6 +941,11 @@ pub fn create_class<'gc>(mc: MutationContext<'gc, '_>) -> GcCell<'gc, Class<'gc> ("textWidth", Some(text_width), None), ("type", Some(get_type), Some(set_type)), ("wordWrap", Some(word_wrap), Some(set_word_wrap)), + ( + "antiAliasType", + Some(anti_alias_type), + Some(set_anti_alias_type), + ), ]; write.define_public_builtin_instance_properties(mc, PUBLIC_INSTANCE_PROPERTIES);