0 Replies Latest reply on May 15, 2011 10:14 PM by Jessie_Meta

    SecurityError: Error #2000: No active security context.

    Jessie_Meta

      Hi,

       

      I am getting this error when i load a swf file(Image.swf as below) using loader in flex. In the swf file, i have tried loading the image from assets folder in the project.
      I could not find any solution to this.Please share your ideas.

       

      I am using flex builder 4.5 and adobe flash cs5.

       

      Image.fla

      var imageUrl:String = "assets/1.jpg";

      var urlRequest:URLRequest = new URLRequest( imageUrl);

      var loader:Loader = new Loader();

      loader.load(urlRequest);

      addChild(loader);

       

       

      Thanks.