prevent pretty printting
♥0 |
Line 20 |
Modified 2010-11-04 23:43:25 |
MIT License
archived:2017-03-20 13:36:59
ActionScript3 source code
/**
* Copyright 9re ( http://wonderfl.net/user/9re )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/4DBW
*/
package {
import flash.text.TextField;
import flash.display.Sprite;
public class FlashTest extends Sprite {
public function FlashTest() {
XML.prettyPrinting = false;
var someone:String = "Mr.xxx";
var tf:TextField = new TextField;
tf.wordWrap = true;
tf.width = tf.height = 465;
tf.text = <chapter title="hello" nr="111" src="">
<page>
<text>To {someone} <br/><br/>. . .</text>
<text>To adjust <br/><br/>. . .</text>
</page>
</chapter>;
addChild(tf);
}
}
}