Use Loader to load a URLRequest
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" initialize="initializeHandler( )"> <mx:Script> private function initializeHandler( ):void { var loader:Loader = new Loader( ); loader.load(new URLRequest("foo")); } </mx:Script> </mx:Application>