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

Home
Flash / Flex / ActionScript
1.Animation
2.Array
3.Class
4.Data Type
5.Development
6.Function
7.Graphics
8.Language
9.Network
10.Regular Expressions
11.Statement
12.String
13.TextField
14.XML
Flash / Flex / ActionScript » TextField » MouseEvent 
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.
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.