Public Methods
 FunctionDefined 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
Function detail
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

Returns
Boolean

See also