2 Replies Latest reply on Aug 1, 2010 8:26 PM by TapEstes

    Security Issue?


      I'm having what I think are security issues in CS5 related to AIR. When I set the publish setting in CS5 for Flash 9/10, the code below works as it should. But, when I set the publish setting as Adobe AIR 2 and test in CS5, I receive the following error...


      Error #2044: Unhandled ioError:. text=Error #2032: Stream Error. URL: http://myMachineName.codomain.org:8000/data
      at loading_fla::MainTimeline/frame1()[loading_fla.MainTimeline::frame1:4]


      If I leave the publish setting as Adobe AIR, but preview the file in my browser (File>Publish Preview>HTML) I'm given the Flash Manager option of allowing the .swf to run and everything proceeds as it should.


      Finally, if I comment out the myMachine address in the code below and use the black address, everything works regardless of my settings. This leads me to believe is has something to do with the fact that the file is local to my machine. I've scoured the interwebs, but just haven't found anything that answers my question. If anyone has some thoughts, I'd be very grateful.




      import flash.net.URLLoader;
      import flash.events.Event;
      var loader:URLLoader = new URLLoader();
           loader.addEventListener(Event.COMPLETE, onComplete);
      var url:URLRequest = new URLRequest("http://myMachineName.codomain.org:8000/data");
      //var url:URLRequest = new URLRequest("http://black.ea.com");
      function onComplete(e:Event):void