@@ -5,10 +5,10 @@ use crate::avm2::class::Class;
5
5
use crate :: avm2:: method:: { Method , NativeMethodImpl } ;
6
6
use crate :: avm2:: object:: { Object , TObject } ;
7
7
use crate :: avm2:: value:: Value ;
8
- use crate :: avm2:: Error ;
9
8
use crate :: avm2:: Multiname ;
10
9
use crate :: avm2:: Namespace ;
11
10
use crate :: avm2:: QName ;
11
+ use crate :: avm2:: { ArrayObject , ArrayStorage , Error } ;
12
12
use crate :: context:: UpdateContext ;
13
13
use crate :: display_object:: { DisplayObject , TDisplayObject , TDisplayObjectContainer } ;
14
14
use crate :: { avm2_stub_getter, avm2_stub_method, avm2_stub_setter} ;
@@ -569,7 +569,7 @@ pub fn get_objects_under_point<'gc>(
569
569
"flash.display.DisplayObjectContainer" ,
570
570
"getObjectsUnderPoint"
571
571
) ;
572
- Ok ( Value :: Undefined )
572
+ Ok ( ArrayObject :: from_storage ( activation , ArrayStorage :: new ( 0 ) ) ? . into ( ) )
573
573
}
574
574
575
575
pub fn are_inaccessible_objects_under_point < ' gc > (
@@ -582,7 +582,7 @@ pub fn are_inaccessible_objects_under_point<'gc>(
582
582
"flash.display.DisplayObjectContainer" ,
583
583
"areInaccessibleObjectsUnderPoint"
584
584
) ;
585
- Ok ( Value :: Undefined )
585
+ Ok ( false . into ( ) )
586
586
}
587
587
588
588
pub fn mouse_children < ' gc > (
@@ -619,7 +619,7 @@ pub fn tab_children<'gc>(
619
619
avm2_stub_getter ! (
620
620
activation,
621
621
"flash.display.DisplayObjectContainer" ,
622
- "areInaccessibleObjectsUnderPoint "
622
+ "tabChildren "
623
623
) ;
624
624
625
625
Ok ( true . into ( ) )
@@ -633,10 +633,10 @@ pub fn set_tab_children<'gc>(
633
633
avm2_stub_setter ! (
634
634
activation,
635
635
"flash.display.DisplayObjectContainer" ,
636
- "areInaccessibleObjectsUnderPoint "
636
+ "tabChildren "
637
637
) ;
638
638
639
- Ok ( true . into ( ) )
639
+ Ok ( Value :: Undefined )
640
640
}
641
641
642
642
/// Construct `DisplayObjectContainer`'s class.
0 commit comments