Forked from: 9balls's なんでこれコンパイルエラーなの? diff:11 forked from: なんでこれコンパイルエラーなの? 24、25、26はダメらしい。よくわからない。 shohei909 forked:0favorite:0lines:23license : MIT License modified : 2011-09-28 18:15:24 Embed Tweet // forked from 9balls's なんでこれコンパイルエラーなの? package { import flash.text.TextFieldAutoSize; import flash.text.TextField; import flash.display.Sprite; public class FlashTest extends Sprite { public function FlashTest() { // write as3 code here.. var tf:TextField = new TextField(); tf.autoSize = TextFieldAutoSize.LEFT addChild(tf); // tf.appendText( String( "" + 2 - 1 ) ); //-1 tf.appendText( "\n" ); tf.appendText( String( "1" + 0 - 1 ) ); //9 tf.appendText( "\n" ); tf.appendText( String( 1 + "" + 0 - 1 ) ); //9 tf.appendText( "\n" ); tf.appendText( String( "" + 1 + 0 - 1 ) ); //9 tf.appendText( "\n" ); tf.appendText( String( "" + "" + 1 + 0 - 1 ) ); //9 tf.appendText( "\n" ); tf.appendText( String( new String("") + 2 + 1 ) ); //tf.appendText( String( 1 + "" + "" + 2 - 1 ) ); //tf.appendText( String( "" + 1 + "" + 2 - 1 ) ); //tf.appendText( String( new String("") + 2 - 1 ) ); } } } Code Fullscreen Preview Fullscreen appendText String autoSize TextField addChild Sprite