flash on 2010-1-2

by foo9
textField.multiline = false;
♥0 | Line 50 | Modified 2010-01-02 17:56:08 | MIT License
play

ActionScript3 source code

/**
 * Copyright foo9 ( http://wonderfl.net/user/foo9 )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/3OAs
 */

package
{
	import flash.display.Sprite;
	import flash.text.TextField;
	
	/**
	* 
	* textField.multiline = false;
	*/
	public class FlashTest extends Sprite 
	{
		public static const SAMPLE_TEXT:String = (
			 <![CDATA[あいうえお
かきくけこ
さしすせそ
11111111
22222222
33333333
aaaaaaaa
bbbbbbbb
cccccccc
AAAAAAAA
BBBBBBBB
CCCCCCCC
アイウエオ
カキクケコ
サシスセソ
亜胃鵜絵尾
11111
22222
33333

★ああああああ

○ああああああ

●ああああああ

◎ああああああ

□ああああああ

■ああああああ

◇ああああああ

◆ああああああ]]>);
			
		private var textField:TextField;
		
		public function FlashTest()
		{			
			textField = new TextField();
			addChild(textField);
			textField.text = SAMPLE_TEXT;
			textField.x = 5;
			textField.y = 5;
			textField.width = 460;
			textField.height = 460;
			textField.background = true;
			textField.backgroundColor = 0xCCCCCC;
			
			//関係なくなるみたい
			textField.multiline = false;
         }
	}
}

Forked