TextEventEx Extensions

package scaleform.gfx
{
    import flash.events.TextEvent;

    public final class TextEventEx extends TextEvent
    {   
        public var controllerIdx : uint = 0;

        public function TextEventEx(type:String) { super(type); }
    }
}

This event is an extension of the standard flash.events.TextEvent. 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 TextEventEx events instead of standard TextEvent. A user can check if the received event is an instance of the TextEventEx and if so cast the event object to the extension type. Example:

import scaleform.gfx.*;
import flash.events.TextEvent;

Extensions.enabled = true;

function ev(e: TextEvent)
{
    if (e is TextEventEx)
    {
        var ee: TextEventEx = e as TextEventEx;
        trace("controllerIdx = "+ee.controllerIdx);
    } 
}
txf.addEventListener(TextEvent.TEXT_INPUT, ev);

controllerIdx property

controllerIdx : uint [read]

Scaleform version: 4.0.12

Indicates which keyboard/controller is used for the event (zero-based index).

LINK_MOUSE_OVER/LINK_MOUSE_OUT events

public static const LINK_MOUSE_OVER:String = "linkMouseOver";
public static const LINK_MOUSE_OUT:String = "linkMouse";

Scaleform version: 4.0.14

Developers are now able to listen for mouse over/out events on TextField links (specified by HTML tags) using the TextFieldEx.LINK_MOUSE_OVER and TextFieldEx.LINK_MOUSE_OUT event extensions. These events behave as other AS3 events and can be listened to using the addEventListener paradigm.

buttonIdx property

buttonIdx : uint [read]

Scaleform version: 4.0.12

Indicates which mouse button was used to initiate the TextEventEx (MouseEventEx.LEFT_BUTTON, MouseEventEx.RIGHT_BUTTON, etc.; see MouseEventEx.buttonIdx).