Function | Defined By | ||
---|---|---|---|
isBetterFocusForRelativePosition(object1:IFocusDisplayObject, object2:IFocusDisplayObject, focusedRect:Rectangle, relativePosition:String):Boolean
Determines if object1 is a better choice than
object2 when changing focus to the specified position
relative to the current focus. | feathers.utils.focus |
isBetterFocusForRelativePosition | () | function |
public function isBetterFocusForRelativePosition(object1:IFocusDisplayObject, object2:IFocusDisplayObject, focusedRect:Rectangle, relativePosition:String):Boolean
Determines if object1
is a better choice than
object2
when changing focus to the specified position
relative to the current focus.
Note: it's acceptable pass in null
for
object2
to check if an item is at the relative position to
the focused rectangle.
Parameters
object1:IFocusDisplayObject | |
object2:IFocusDisplayObject | |
focusedRect:Rectangle | |
relativePosition:String |
Boolean |
See also