{"id":1798,"date":"2022-08-30T15:19:32","date_gmt":"2022-08-30T15:19:32","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2013\/12\/02\/how-to-preview-image-using-xml-gallery-in-android-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:19:32","modified_gmt":"2022-08-30T15:19:32","slug":"how-to-preview-image-using-xml-gallery-in-android-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/how-to-preview-image-using-xml-gallery-in-android-collection-of-common-programming-errors\/","title":{"rendered":"How to preview image using xml gallery in android?-Collection of common programming errors"},"content":{"rendered":"<p>I try to make a simple XML gallery in android platform, but I get an error that says:<\/p>\n<blockquote>\n<p>Error #2044: Unhandled IOErrorEvent:. text=Error #2035: URL Not Found.<\/p>\n<\/blockquote>\n<p>I&#8217;m sure that the file location is in the right place <code>\/mnt\/sdcard\/SketchCraft\/MyDrawing 1.png<\/code>.<\/p>\n<p>This is my XML:<\/p>\n<pre><code> \n    \n       \n          \/mnt\/sdcard\/SketchCraft\/MyDrawing 1.png\n       \n    \n<\/code><\/pre>\n<p>This is my actionscript:<\/p>\n<pre><code> import flash.net.URLLoader;\n import flash.events.Event;\n import flash.display.Loader;\n import flash.net.URLRequest;\n\n var xmlRequest:URLRequest = new URLRequest(\"XMLcth.xml\");\n var xmlLoader:URLLoader = new URLLoader(xmlRequest);\n var imgData:XML;\n var imageLoader:Loader;\n var rawImage:String;\n\n var imgNum:Number = 0;\n\n xmlLoader.addEventListener(Event.COMPLETE, xmlLoaded);\n\n function xmlLoaded(event:Event):void{\n    imgData= new XML(event.target.data);\n    rawImage = imgData.image[imgNum].imgURL;\n    imageLoader =new Loader();\n    imageLoader.load(new URLRequest(rawImage));\n    mc_image.addChild(imageLoader);\n }\n<\/code><\/pre>\n<p id=\"rop\"><small>Originally posted 2013-12-02 01:34:39. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>I try to make a simple XML gallery in android platform, but I get an error that says: Error #2044: Unhandled IOErrorEvent:. text=Error #2035: URL Not Found. I&#8217;m sure that the file location is in the right place \/mnt\/sdcard\/SketchCraft\/MyDrawing 1.png. This is my XML: \/mnt\/sdcard\/SketchCraft\/MyDrawing 1.png This is my actionscript: import flash.net.URLLoader; import flash.events.Event; import [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1798","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/1798","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=1798"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/1798\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=1798"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=1798"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=1798"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}