which is better?
type A or type B
♥0 |
Line 18 |
Modified 2011-05-15 20:22:50 |
MIT License
archived:2017-03-20 00:46:47
ActionScript3 source code
/**
* Copyright 0xABCDEF ( http://wonderfl.net/user/0xABCDEF )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/xmUL
*/
package {
import flash.text.TextFieldAutoSize;
import flash.text.TextField;
import flash.display.Sprite;
public class LineAlignment extends Sprite {
public function LineAlignment() {
var a:String = "which\n"+
"is\n"+
"better?";
var b:String = "which\n\
is\n\
better?";
var logField:TextField = addChild( new TextField ) as TextField;
logField.autoSize = TextFieldAutoSize.LEFT;
logField.text = "a :\n"+a+"\n\nb :\n"+b;
}
}
}