5 Replies Latest reply: Apr 19, 2012 9:46 AM by artchangel RSS

    UI Loader in Flash will not locate my images

    msjodip Community Member

      Im trying to create a portfolio page on flash but when I use a UI Loader it will not locate my image. I get an error like this...

       

      Error #2044: Unhandled ioError:. text=Error #2035: URL Not Found. URL: /Volumes/Macintosh HD/Users/XYZ/Documents/Website/Index.swf/images/photo1.jpg

       

      It seems as though it's trying to find the image within the swf file???

       

      If you can't help me solve this problem that would be AMAZING!

        • 1. Re: UI Loader in Flash will not locate my images
          Ned Murphy CommunityMVP

          What code are you using to specify the files to load and where are the files located relative to the swf file?  If you are testing in an html page, where is the swf relative to the html page folder-wise?

          • 2. Re: UI Loader in Flash will not locate my images
            msjodip Community Member

            I'm testing in Flash and my swf file is located in the same folder as my images. My folders look like this....

             

            website folder ------->swf file

                                           imges folder ------->image.jpg

            • 3. Re: UI Loader in Flash will not locate my images
              adninjastrator Community Member

              If you are testing directly in Flash, the path from the .swf to the images would simply be:

              photo1.jpg

              no folders, no nothing... they are in the same folder (according to what you said).

              While that path will work fine from testing, it WILL NOT WORK once you place that .swf on a Web page in a different folder.

              Then you must path from the .swf to the images as though the .swf is in the same folder as the Web page... not it's actual, physical location.

              Once the .swf is places on the Web page, the path from the .swf to the images would be:

              images/photo1.jpg

              Once correctly pathed relative to the Web page and not it's physical location, clicking directly on the .swf in the images folder WILL NOT WORK!  And that's not a bad thing... it simply means that the .swf was created to work from the Web page and not in the "images" folder.

              Also do not use "machine" relative paths such as

              /Volumes/Macintosh HD/Users/XYZ/Documents/

              doing so will be nothing but trouble once you upload your website to a sever, since none of that path exists on the server.

              Best wishes,

              Adninjastrator

              • 4. Re: UI Loader in Flash will not locate my images
                Ned Murphy CommunityMVP

                And what is the code you are using?

                • 5. Re: UI Loader in Flash will not locate my images
                  artchangel Community Member

                  I had the same problem recently. Using your finder window find what the EXACT path to photo1.jpg is and make sure it is exactly the same as the the path you input for the UI Loader source. That will take care of it when you preview it. When you post it to the web you need to make sure you're asetts can be found.

                   

                  If you have a folder actually called index.swf that will really mess you up. Check for a typo in your source.