package { import flash.display.Sprite; import flash.text.TextField; import flash.text.TextFieldAutoSize; import flash.net.URLLoader; import flash.net.URLRequest; import flash.events.Event; import flash.printing.PrintJob; public class Main extends Sprite { private var _printableContent:Sprite = new Sprite(); private var _textField:TextField = new TextField(); private var _loader:URLLoader = new URLLoader();
public function Printing() { _loader.load(new URLRequest("http://www.navioo.com/sum.txt")); _loader.addEventListener(Event.COMPLETE, completeHandler); _textField.width = 400; _textField.multiline = true; _textField.wordWrap = true; _textField.autoSize = TextFieldAutoSize.LEFT;