Problem loading jpg's with xml

I have looked through the forum to see if my problem was
raised but I could not find any topic that could help me out. So
here's my problem.
I have a simple photo viewer that load jpg's via xml.
Everything work perfect when I preview the movie in Flash or on my
desktop but as soon as it's uploaded to the server the jpg's so not
load. And everything is placed correct on the server.
Anyone got a clue why?

Ok I found out that if you go directly to the movie in the
browser (http//www.url.com/name.swf) then it work perfect and the
photos load.
I got two other movies in the same html document. It's surely
here the problem occur. But why and what can I do to solve
it?

Similar Messages

  • Problems loading images dynamically with XML

    Hi Everyone,
    I am working with a project that was build by another
    developer and I have been asked to modify it several ways. This is
    an interactive map for a hotel brand where when you click on the
    USA, you get a list of all the states, click a state and a list of
    all the hotels in that state comes up, click a hotel, the hotel's
    information is displayed. I understand the structure of the files,
    how they make them work, though I couldn't build it myself.
    The problem I am having is this. can't make the hotels'
    photos load into the flash through the XML. I created a target
    movie file that the image could load into but something is not
    happening as far as loading the images. I don't know if the movie
    clip that I created is the right way to go (it was made as an
    object in the library that is exported via AS), or if I should
    create one in the action script file that loads the XML data.
    I looked at some tutorials about how to load images with XML
    but those didn't get into the level of detail that I need for this
    project.
    I've attached some partial code to see if anyone can help me
    work through this.
    Any and all suggestions are welcome.
    Thanks for the help in advance.
    Jeremiah

    I'm a noob at AS3 and trying to learn this XML stuff myself,
    but i have been able to load pictures to the stage...this might
    help you...my xml file photo section is similar to yours, only I
    have it labeled as "href" instead of "source"...
    var imageLoader:Loader;
    var xml:XML;
    var xmlList:XMLList;
    var xmlLoader:URLLoader = new URLLoader();
    xmlLoader.load(new URLRequest("xmldata/images.xml"));
    xmlLoader.addEventListener(Event.COMPLETE, xmlLoaded);
    function xmlLoaded(event:Event) :void {
    xml = XML(event.target.data);
    xmlList = xml.children();
    for (var i:int = 0; i<xmlList.length(); i++) {
    imageLoader = new Loader();
    imageLoader.load(new URLRequest(xmlList
    .attribute("href")));
    imageLoader.x = 0;
    imageLoader.y = 0;
    addChild(imageLoader);

  • I have problem loading all items from XML with for each

    Hi all,
    I'm low level as3 programmer and I need help whit this code:
    I have gallery XML file:
    <gallery>
        <item>
            <id>1</id>
            <strana>0</strana>
            <naslov>Lokacije</naslov>
            <aktuelno>1</aktuelno>
            <slika>1.jpg</slika>
        </item>
        <item>
            <id>2</id>
            <strana>2</strana>
            <naslov>Coaching</naslov>
            <aktuelno>1</aktuelno>
            <slika>2.jpg</slika>
        </item>
        <item>
            <id>3</id>
            <strana>0</strana>
            <naslov><![CDATA[O.Å . Bratstvo - panel]]></naslov>
            <aktuelno>0</aktuelno>
            <slika>3.jpg</slika>
        </item>  
    </gallery>
    And:
    var loader: URLLoader = new URLLoader();
         loader.load(new URLRequest("gallery.xml");
    var xml = new XML(evt.target.data);
        for each(var item in xml..item) {
            centralniText.htmlText = item.slika;
    only shows  last item from XML file:
    3.jpg
    I want all. Please help.

    can adding count item in XML help somehow?
    <gallery>
        <item>
            <id>1</id>
            <strana>0</strana>
            <naslov>Lokacije</naslov>
            <aktuelno>1</aktuelno>
            <slika>1.jpg</slika>
        </item>
        <item>
            <id>2</id>
            <strana>2</strana>
            <naslov>Coaching</naslov>
            <aktuelno>1</aktuelno>
            <slika>2.jpg</slika>
        </item>
        <item>
            <id>3</id>
            <strana>0</strana>
            <naslov><![CDATA[O.Å . Bratstvo - panel]]></naslov>
            <aktuelno>0</aktuelno>
            <slika>3.jpg</slika>
        </item>   
        <last>3</last>
    </gallery>

  • Having problem loading Aol mail with Firefox ver 4. Keep getting error 8 msg. Any ideas?.

    INstalled Firefox 4 and now cannot laod the aol mail website. I can use ms explore with no problem. Get error msg 8 Problem loading application. AOL itself loads fine, just not mail.

    INstalled Firefox 4 and now cannot laod the aol mail website. I can use ms explore with no problem. Get error msg 8 Problem loading application. AOL itself loads fine, just not mail.

  • Problem loading Image data with French accent in file name

    We have a very complex commercial application that has been working perfectly in English for over a year. We have now localized it to French and Spanish, and discovered a serious show-stopping problem. We need help fast, with the scheduled release being less than 2 weeks away...!
    We iterate over a folder to find all the images in it, then display those in a user window.  The code for loading the images is:
                for each (var name:String in filenames){
                    var image:SmoothImageTransformable = new SmoothImageTransformable();
                    var imagePath:String = dir + "/" + name;
                    image.source = imagePath;
                    trace("Adding Item to picture carousel with url " + image.source);
                    image.data = {directory:dir, filename:name};
                    image.isDragEnabled = true;
                    image.setStyle("horizontalCenter", 0);
                    image.setStyle("verticalCenter", 0);
                    _images.push(image);
    Our SmoothImageTransformable class is an internal class that inherits from Image.  This all works fine for image names like 'myFavoritePhoto', 'test', 'photo346', etc.  However, it fails to load the data if the file name is something like 'caméra'  Any name with a UTF-8 character causes the data load to fail.
    To be sure we weren't doing a load somewhere else in the code that I had overlooked, I added a "image.autoLoad = false' line in there.  That did exactly as expected -- all image squares then show a grey blank, with no image shown.  Removing that line (reverting to the original code, as shown above) causes all the images to work perfectly, except for those with French accent characters like the é.
    HELP!  Is this a known bug?  Is there some additional setting I need to make it understand the extended character set?  I can't find any mention about this at all in the documentation.

    @markerline:
    We have a fix!  Almost...   I don't understand one aspect of what I am seeing though.
    We have one test file named "camèra.jpg" that is an example of what I am unable to load into an Image.  I decided to examine the character codes at each letter, and this is what Flex has as the string:
    name = cam?ra.jpg
       [0] = c; 0x99
       [1] = a; 0x97
       [2] = m; 0x109
       [3] = ?; 0x232
       [4] = r; 0x114
       [5] = a; 0x97
       [6] = .; 0x46
       [7] = j; 0x106
       [8] = p; 0x112
       [9] = g; 0x103
    Note that the è prints as gibberish in the trace statement, and shows a numeric encoding of 0x232.  According to
         http://docstore.mik.ua/orelly/web2/action/appb_01.htm
    The unicode equivalent of Latin1 for è is 0xE8, which is equivalent to 0x232. That implies that the string is already Latin1, which I would think would mean that Windoze would recognize the file name and open it properly -- but it does not.
    I then tried taking the "camèra.jpg" string, pasting it into NotePad++ in a UTF8 document, then telling NotePad++ to display as ASCII.  The result is "camèra".  I then tried just forcing the file name within Flex to this new mangled string.  The result then is:
    MAGIC name = camèra
       [0] = c; 0x99
       [1] = a; 0x97
       [2] = m; 0x109
       [3] = ?; 0x195
       [4] = ?; 0x168
       [5] = r; 0x114
       [6] = a; 0x97
       [7] = .; 0x46
       [8] = j; 0x106
       [9] = p; 0x112
      [10] = g; 0x103
    Note this time the trace statement looks proper.  More important, the IMAGE DOES LOAD!  (Our display of the name to the user now looks like crap, but that just means I need to modify our class to have a separate 'name' property, rather than extracting it from the 'image.source')
    So... my remaining question -- what encoding did I just do through that NotePad++ incantation?  That site I quoted above said that it was already Latin1, which is what I thought I was trying to get to.  I clearly need to write a method to map from incoming (UTF8 I thought, but maybe Latin1?) to Windows file system (Latin1 I thought, but maybe ASCII).
    In other words, I am not sure what charcter set to come from or go to...  It turns out the code was already in the character set I had been trying to go to (which is why it wasn't working) and the set I seem to need to go to is not the one I thought...

  • Problem loading jpgs

    Actually, my problem isn't in loading the jpgs, but in
    detecting when one doesn't load. .htaccess on my site redirects bad
    load attempts to the home page, so I don't think flash's load error
    is getting triggered.
    I load with something like...
    mcLoader.loadClip(sPath+nLoadIndex+".jpg", container);
    And the error that is supposed to be triggered on load fail
    is...
    this.onLoadError = function() {
    It works on my desktop, but not on the server.
    Any tips?

    assuming "this" has been assigned to mcLoader's listener,
    you'll need to edit your htaccess file.

  • Anyone have problems loading the forums with Chrome ?

    Since 2 weeks I am having problems in chrome ( don't load sections etc ), if I access with FF all works ok, but with chrome and safari is imposible to navigate to the diferent forums etc...

    Strange... Really... by example whe I come to forums.adobe.com I can select
    AIR Forum in the select box, but when I click the "OK" button nothing
    happends....

  • A problem while using Flash with xml

    Hello,
    I made an earlier post about this but wasn't clear, so here are the details & hopefully someone can help
    I wanted to make a news slideshow for my websiteBut I keep getting this error :
    Error opening URL 'file:///F|/files/undefined'
    I think there is something wrong with the xml structure, I've changed it many times but still the same error.
    The link below have both the .fla file & the Xml file.
    Would be really nice if someone could tell me what's wrong & thanks for your time.
    The Link : http://hotfile.com/dl/42252711/2daa8da/News.rar.html

    To me it suggests that whatever the function is that's supposed to get the XML is looking for a hard link (notice the file path in the error) as opposed to a file path relative to the SWF link. Also the "undefined" suggests that the object you're calling for imay be undefined (i.e. Flash has no data about it and therefore can't do anything with it). This is likely the URL string you're passing to the function that's supposed to retrieve the XML. Double check that and make sure the variable for the URL string is defined before the function that needs it calls for it. Hope this helps you troubleshoot whats happening.

  • Problem loading certain pages with WRT54G2 router

    I recently had to password protect my wireless network (I live in the middle of nowhere and we got new neighbors who decided to leech off my internet), and since then have had trouble loading a handful of websites that I had previously been able to access. The websites also do not load on my mother's computer (same network) or on my phone (unless I use my cellular network and not my home's wifi). I have updated my router's firmware and reset it, but this has not fixed the issue. Could anyone help me with this?

    Make sure the internet thru the router is working. What you can do is hardwired the pc to the router and check if you can open a website then access the router's interface again and double check the wireless settings, personalize if possible the SSID and the wireless channel (3,6,9,11), also for the wireless security use wpa2 personal/ TKIP. If internet wired to the router is not working, connect the pc straight to the modem for isolation.

  • Loading to database with XML Inbound Message

    We need to recibe XML invoices from suppliers using XML Gateway, we have a DTD and Message Map based on the XML structure defined by Treasury, when we process the XML using ECX_INBOUND  the Transaction Monitor shows the processing Status Success but no data is loaded to DB.
    The custum map is calling the action to insert into Database Table as a Post Process Activity on the Target database tables.
    we kindly asking for help because we have no idea what that is failing.

    I have encountered the same situation while following the example:
    Step by Step Guide to Creating an Inbound XML Gateway Transaction for Applications 11i [ID 329903.1]
    My inbound messages were received and en-queued, then they were de-queued, but now they just had "Pending" status in the transaction monitor. The post-process action does not occur at all.
    All the Workflow agent listeners are up and running. However, I do see an error in the log:
    Module: wf.plsql.WF_EVENT.GetSourceAgentGUID.Error
    Message Text: Specified source agent row does not exist in database. Setting to NULL.
    Any thoughts?
    ~Alan

  • Problem loading Cyrillic characters with UTF16

    I am trying to use SQL*Loader to load data into a table that consists of American and Cyrillic columns. The Cyrillic columns are of type NVARCHAR2(300).
    The database NLS params are as follows: NLS_LANGUAGE = AMERICAN, NLS_TERRITORY = AMERICA, NLS_CHARACTERSET =
    WE8ISO8859P1 and NLS_NCHAR_CHARACTERSET = AL16UTF16. The SQL*Loader control file contains the lines:
    CHARACTERSET UTF16
    BYTEORDER BIG
    The data loads but I get question marks in the NVARCHAR2 columns. I tried setting NLS_LANG to AMERICAN_AMERICA.WE8ISO8859P1 and it still loads
    the same way. Do I need to change the NLS_CHARACTERSET to UTF16 as well? What else could I be missing?

    Please check the below. It addresses the same problem as yours:
    http://www.experts-exchange.com/Database/Oracle/10.x/Q_23665329.html

  • Problem loading multiple rows with ADI

    Hello guys. I setup a custom integrator to use with WebADI. Even after unprotecting the sheet, only the rows that are within the border (only 10 records) are uploaded. I have updated the profile option "BNE Upload Batch Size". Before doing this it would give an error saying "Server could not complete the upload". Now it doesn't give an error but it doesn't load the other values in the sheet. Is there a way of increasing the black border where the data fits so it can load more data? Many thanks

    Hi,
    there are two options:
    1/ When you specify and define your layout you can also define how many rows you like to get in your excel sheet.
    2/ If you unprotect your sheet, you can always add rows in between the existing row area. I put always new rows between the existing row 9 and 10. This always works.
    Hope this helps
    br, Volker

  • Problem loading googlemaps v3 with stagewebviewbridge in Ios

    I have developed an application in Flex 4.6, using google maps v3 javascript through a html page on my server and stagewebviewbridge, the problem is that Andorid works perfect, but ios, load the map, but when the map is moved or do zoom only partially loaded, can anyone help me?
    the map is in html http://cellapps.eu/farmacias/mapaG.html
    map displayed in a browser works fine, as viewed from android, ios but when you move the map or zoom does not load completely

    Have you turned the phone off and on again?
    I'm not even kidding - this resolved the same issue for me yesterday.

  • Problem loading Ellen Podcast with 5G ipod

    I have a thirty gig Ipod video (the first release) and itunes says i cannot sync the ellen podcast because my ipod is not compatiable... What is the deal???

    I have the same problem with my fifth generation 80 GB iPod. I called Apple and they said that they cannot help with any specific podcasts because they are not responsible for how the podcasts are made. I expressed my surprise with this statement as the Ellen show is a featured show in the Apple Store Podcast section, but it does make sense. They can't be responsible for every podcast in their directory.
    You could try contacting the Ellen show and letting them know. I'm sure they'd fix it if they knew it was affecting a lot of people.
    PowerMac Dual 1.42 GHz G4   Mac OS X (10.4.7)  

  • Problem Loading an Image with javax Swing from a JApplet

    First of all, i use JCreator as java creater and have the newest version of java sdk version.
    Now i need to load an image from the harddrive on which the JApplet is located. I need to do this from inside the JApplet. I have put my pictures in a map 'images' which is located in the same directory as the classes + htm file. It works from inside JCreator, but as soon as i open the normal htm it just WON'T load that image (grmbl).
    Here is my code for loading the image:
    public BufferedImage loadImage (String filename, int transparency)
         Image image;
         if (app)
              image = Toolkit.getDefaultToolkit().getImage(("./images/"+filename));
         else
              String location = "";
              location = "./images/"+filename;
              image = Toolkit.getDefaultToolkit().getImage(location);
         MediaTracker mediaTracker = new MediaTracker(new Container());
         mediaTracker.addImage(image, 0);
         try
              mediaTracker.waitForID(0);
         catch (Exception e)
    Could anybody help me out here??
    I tried a url already using getCodeBase() or getDocumentBase() but that gives an error because it cannot find those if using a JApplet.

    Why don't you use javax.swing.ImageIcon? If you already have a flag telling if it's an application or applet, use the getDocumentBase() to base the URL in the applet part only.

Maybe you are looking for