Unicode characters : MouseEvent « TextField « Flash / Flex / ActionScript






Unicode characters

 
package{
  import flash.display.Sprite;
  import flash.text.*;
  public class Main extends Sprite{
    public function Main(){
      var field:TextField = new TextField(  );
        field.maxChars = 12;
        field.type = flash.text.TextFieldType.INPUT;
        field.border = true;
        field.background = true;
        field.text = "The greek letter delta looks like so: \u0395";
        addChild(field);
    }
  }
}

        








Related examples in the same category

1.Add mouse click listener to TextField
2.Disappearing TextField
3.Working with Advanced Text Layout
4.Highlight a paragraph when the user clicks a character
5.Drag and drop text
6.To remove the highlight when the mouse moves away from both text fields, we would first register both text fields to receive the MouseEvent.MOUSE_OUT event
7.Clickable TextField
8.Using multiLine and TextMetrics: set the characters in the line underneath the user's mouse to red.