package {
import flash.display.Sprite;
import flash.text.TextField;
public class Main extends Sprite {
public function Main() {
var tf:TextField = addChild( new TextField() ) as TextField;
tf.width = 100;
tf.text = "あいうえおかきくけこさしすせそ";
if ( tf.maxScrollH > 0 ) {
tf.appendText( "..." );
while ( tf.maxScrollH > 0 ) {
var words:Array = tf.text.split( "" );
words.splice( words.length - 4, 1);
tf.text = words.join( "" );
}
}
}
}
}