flash.display.Loader

Out of context: Reply #7

  • Started
  • Last post
  • 10 Responses
  • widget0

    ok, so i used this (from stupidresponse):

    import flash.display.*;
    import flash.net.URLRequest;
    var ldr:Loader = new Loader();
    var url:String = "url";
    var urlReq:URLRequest = new URLRequest(url);
    ldr.load(urlReq);
    addChild(ldr);

    That works fine using absolute URLs. Is there a way i can call the .swf from a local url? i.e not have to put in the 'http://www....'

    • I think relative links should work?

      AS3 freaks me out :(
      slappy

View thread