Add URLrequest to Loader : URLRequest : Network Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » Network » URLRequest »

 

Add URLrequest to Loader


 
package {

     import flash.display.Loader;
     import flash.display.Sprite;
     import flash.net.URLRequest;
     
     [SWF(width=550, height=400)]
     
     public class Main extends Sprite {
          
          public function Main() {
               var loader:Loader = new Loader();
               addChild(loader);
               loader.load(new URLRequest("audrey_computer.png"));
          }
          
     }

}

        



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


Flash / Flex / ActionScript examples

 Navioo Network
» URLRequest