package scaleform.gfx { import flash.events.FocusEvent; public final class FocusEventEx extends FocusEvent { public var controllerIdx : uint = 0; public function FocusEventEx(type:String) { super(type); } } }
This event is an extension of the standard flash.events.FocusEvent. It adds a ‘controllerIdx’ member that indicates a zero-based index of the controller that caused the event. When Extensions.enabled property is set to true Scaleform always generates FocusEventEx events instead of standard FocusEvent. A user can check if the received event is an instance of the FocusEventEx and if so cast the event object to the extension type. Example:
import scaleform.gfx.*; import flash.events.FocusEvent; Extensions.enabled = true; function ev(e: FocusEvent) { if (e is FocusEventEx) { var ee: FocusEventEx = e as FocusEventEx; trace("controllerIdx = "+ee.controllerIdx); } } stage.addEventListener(FocusEvent.MOUSE_FOCUS_CHANGE, ev);
controllerIdx property
controllerIdx : uint [read]
Scaleform version: 4.0.12
Indicates which keyboard/controller is used for the event (zero-based index).