package { import flash.display.Sprite; import flash.events.*; import flash.net.*; public class Main extends Sprite { private var loader:URLLoader = new URLLoader(new URLRequest("http://example.com/huge.xml")); private var total:Sprite = new Sprite(); private var loaded:Sprite = new Sprite();
public function Main() { total.graphics.beginFill(0xff0000, 1); total.graphics.drawRect(0, 0, 200, 10); total.graphics.endFill(); addChild(total); total.y = 200; total.x = 100;