3 Replies Latest reply on Jun 13, 2010 2:11 PM by kglad

    Error #2044: Unhandled IOErrorEvent:. text=Error #2035: URL Not Found.

    rage361

      i keep getting this error message, i am trying to make a xml photo gall

      ery, im new to flash and have gotten the code from a tutorial. i am not sure but i think it may be somthing to do with my directoys. i have not changed anything since i put it in. here is my code.

       

      var xml:XML = new XML();

      var img_count:uint;

      var loader:URLLoader = new URLLoader();

      var img_holder:Sprite=new Sprite();

      var sw:Number=stage.stageWidth;

      addChild(img_holder);

      function xmlloaded(e:Event):void {

      xml=XML(e.target.data);

      img_count = xml.img.length()-1;

      for (var i:uint = 0; i<img_count; i++) {
       
        var thumb:Sprite=new createThumb(img_holder,String(xml.img[i].@thumburl),String(xml.img[i].@mainurl));
        thumb.x=205*i;
        img_holder.addChild(thumb);

      }

      stage.addEventListener(Event.ENTER_FRAME,mousescroll);

      }

      function mousescroll(e:Event):void {

      var ihw:Number = (img_holder.width-sw+100)*-1;
      var percent:Number = 50+(mouseX/sw)*(ihw);
      img_holder.x=percent;

      }

      loader.load(new URLRequest('photogallery.xml'));
      loader.addEventListener(Event.COMPLETE,xmlloaded);

       

       

       

      Many thanks Michael Down.