Extensions |
boolean class.testRect ( number x, number y, number w, number h, [number layer] )
Tests if any object that is a member of the obejct class is currently overlapping a specific rectangular region in the frame.
If a layer is specified, the test is limited to instances on that layer. By default, layer is equal to mmf.ANY_LAYER.
Parameters
x | X coordinate of left edge of rectangle in the frame |
y | Y coordinate of top edge of rectangle in the frame |
w | Width of rectangular region to test |
h | Height of rectangular region to test |
layer | Optional. 1-based layer index, or constants mmf.ANY_LAYER |
Return Values
boolean | true if an object is overlapping the specified rectangular region, false otherwise |
Copyright 2010 Justin Aquadro