package { import flash.display.*; import flash.net.URLRequest; public class Main extends Sprite { private var loader:Loader; public function Main () { loader = new Loader(); addChild(loader); var urlRequest:URLRequest = new URLRequest("sunset.jpg"); loader.load(urlRequest); } } }