If beginIndex and endIndex are equal, the newText is inserted immediately before the specified beginIndex : Text : TextField Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » TextField » Text »

 

If beginIndex and endIndex are equal, the newText is inserted immediately before the specified beginIndex


 

package{
  import flash.display.Sprite;
  import flash.text.*;
  public class Main extends Sprite{
    public function Main(){

        var t:TextField = new TextField(  );
        t.text = "mat";
        t.replaceText(22"s");
        trace(t.text);  // Displays: mast
        addChild(t);
    }
  }
}

        



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


Flash / Flex / ActionScript examples

 Navioo TextField
» Text