Importing images XML Problem

Hey I have an XML file that has images in it.  I am wanting to import the images into flash into arrays then I want place them on the stage. I have it importing corretly I think.  Has anyone done this before and give me any hints at placing the images?  I figure I will have to set a variable to too the function what array to use.  Thanks.
XML CODE
<gallery>
          <image id="image01" category = "Registration" url="DSCN2217.JPG" />
          <image id="image02" category = "Registration" url="DSCN2218.JPG" />
          <image id="image03" category = "Registration" url="DSCN2219.JPG" />
          <image id="image04" category = "Registration" url="DSCN2220.JPG" />
          <image id="image05" category = "Registration" url="DSCN2221.JPG" />
          <image id="image01" category = "Banquet" url="DSCN2222.JPG" />
          <image id="image02" category = "Banquet" url="DSCN2223.JPG" />
          <image id="image03" category = "Banquet" url="DSCN2224.JPG" />
          <image id="image04" category = "Banquet" url="DSCN2225.JPG" />
          <image id="image05" category = "Banquet" url="DSCN2226.JPG" />
</gallery>
AS3 SCRIPT
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.load("images.xml");
//xmlData.onLoad =loadXML;
xmlData.onLoad = function(success:Boolean)
          if (success)
                    if (xmlData.status == 0)
                              regArray = new Array();
                              banArray = new Array();
                              var xmlDataToXMLString:String = new String();// initializes a new string variable
                              xmlDataToXMLString = xmlData.toString();// converts dots XML object to a string and stores it in dotsToXMLString.
                              var xmlDataXML:XML = new XML(xmlDatadotsToXMLString);// creates new XML object with the string contents from above.
                              xmlDataXML.parseXML(xmlDataToXMLString);// parses the string from above.
                              var xmlDataNodes:Object = xmlDataXML.firstChild;// Saves the firstChild (in this case, the outermost element) as an object
                              var xmlDataNodesChildren:Object = xmlDataNodes.childNodes;// Saves the childNodes of firstChild as an object
                              for (i = 0; i < xmlDataNodesChildren.length; i++)
                                        switch (xmlDataNodes.childNodes[i].attributes.category)
                                                  case "Registration" :
                                                            xmlNodeID = xmlDataNodes.childNodes[i].attributes.ID;
                                                            xmlNodeURL = xmlDataNodes.childNodes[i].attributes.url;
                                                            //regArray = new Array();
                                                            regArray.push({id:xmlNodeID, url:xmlNodeURL});
                                                            //trace(xmlDataNodes.childNodes[i]);
                                                            break;
                                                  case "Banquet" :
                                                            xmlNodeID = xmlDataNodes.childNodes[i].attributes.ID;
                                                            xmlNodeURL = xmlDataNodes.childNodes[i].attributes.url;
                                                            //regArray = new Array();
                                                            banArray.push({id:xmlNodeID, url:xmlNodeURL});
                                                            break;
                                        //trace(xmlDataNodes.childNodes[i].attributes.category);
                              trace(regArray);
                              trace(banArray);
                    else
                              trace("Problem parsing XML.");
          else
                    trace("Could not load XML");
function placeImages() {

To load images using AS2 you can use the loadMovie function.  So what you need to do is loop thru your array and target the image name in itas part of the argument of the loadMovie() function call. 
Here is a link to the help documentation for the loadMovie() function that you should read thru to gain an understanding of how it is used.
http://help.adobe.com/en_US/AS2LCR/Flash_10.0/help.html?content=00000573.html

Similar Messages

  • Import image sequence problem

    Hi. I have Compressor 5.3.5.
    I'm importing a TIF image sequence (1080p 25fps) to get an Apple Pro Res 422 HQ (using presets). I set the fps to 25 and start the conversion. Then I find the resulting Quicktime clip (Apple Pro Res 422 HQ) plays fast (like fast-forward). Also the clip has the expected time duration (length) but the last frame stays freezed till the clip ends, because the video is in fast-forward and freezes the last to fit the time duration. I tried the same with other presets (iPod h264, no presets at all, etc), but all give the same problem.
    Also I tried to get the video file from the TIF sequence using Final Cut Pro and everything looks fine except the color/contrast... that's why I need to use Compressor and not Final Cut.
    Can you help me please? I have googled this issue but found no related topics.
    Thanks.

    In fact, Compressor create an XML file in ~/Library/Application\ Support/Compressor/Scratch/
    In this XML, you've got sound, framerate and field dominance information if you set it in the inspector panel :
    <key>audioLocation</key>
              <string>path://to/audio/file.aif</string>
    <key>fieldOrder</key>
              <integer>2</integer>
    <key>frameRate</key>
              <real>25</real>
    But nothing if you don't set it. So Compressor believe that your image sequence is at 29.97 even if it's a 25 fps sequence...

  • HTML bold text, imported from XML problem.

    I have HTML content defined in an external XML file:
    quote:
    <textBody><p>First line of text containing some
    <b>bold words</b>. More text with some <b>bold
    words</b> and then two line breaks.<br /><br
    />Here's some more text with <b>some more bold
    words</b> in the middle of it. Don't you think there's
    something strange about the spacing around these <b>bold
    words</b>? It seems to get worse with each extra appearance
    of a <b>bold word</b>. Thank you <b>for
    reading</b> my text.</p></textBody>
    Here,
    you can see a screenchot of the text rendered on screen from the
    HTML above.
    Many thanks for any help from anybody.

    We think we've got the source of the problem - because the
    textfield displaying the HTML is in a component. We believe the
    letter spacing issue comes about from the component being resized.
    The solution, as far as we can see is to simply use dynamic
    textfields instead of components - OK for future development, but
    what we've done already will need to be fixed by extra spaces in
    various places.
    Thanks for your suggestion Pal_w_g - guess it was your input
    that provided the seed that led to the idea about the component.

  • HT4101 The SD card reader won't import images to the iPad. I purchase 10 months ago, and haven't had a problem with it until today. How do I remedy this problem? I'm about the go out of town and prefer not a travel with my laptop.

    My SD card reader won't import images from the SD card. I purchased this product 10 months ago and have had no problem with it up to now. How do I remedy this problem. Using the product allows me to travel without a laptop ...Please help!

    Have you tried to give your device a reset? Sometimes that helps with glitches. Hold down the sleep and home keys, past when you see the red power down slider and until you see the silver apple. Let it reboot and try again.
    ALso, the card reader will only see files that are formatted correctly. If you just took the images from your computer and put them onto the card, then it won't work. They have to follow a strict naming convention. There has to be a folder named DCIM on the card and then all those images have to have a file name of exactly 8 characters, DSC_3857 for example. Your camera makes this naming structure but if you manually put the photos on that card you may not have replicated it.
    Is this a card you've used before? If it's a new card and is empty then the iPad won't read it. Also if it's SDXC it won't read those either (XC cards use a file structure that the iPad can't decipher)

  • Wallpaper problem with newly imported images. 1680x1050 displaying @840x525

    Hello,
    I imported some new images into Aperture and I want to use them as Desktop wallpapers for my computer. The images original size are 1680x1050 and they appear to retain they're size upon import.
    I then go to System Preferences -> Desktop and ScreenSaver and find my images in the project I placed them in. All my previous imported images that were imported many months ago still display fine however these new images are displaying 840x525! I know the exact size because after selecting the image I can drag its thumbnail view from the preview area.
    I then tried just specifying the folder in my hard drive where the images are located and the Desktop and Screensaver applet had no problem displaying the images at their original size 1680x1050 so I don't believe anything is wrong with them.
    I tried looking throughout Aperture if there was an import setting that could be affecting this but I didn't find anything. The only thing I've done recently was upgrade my system to 10.5.4 with the Software Update tool. Is there anything else that can be wrong here?
    Note: I tried using this wallpaper as well as still have the same issue, http://ironmanmovie.marvel.com/downloads/desktops/images/desk03_1680.jpg
    I would appreciate any insight to what can be causing my images to display smaller than they really are on my wallpaper. When viewing them in Aperture they are the correct size.
    Thanks,
    - Jake

    bump

  • Aperture 3.0.1 Problem with Importing Images

    The problem I am experiencing with Aperture 3 is that often when I am trying to import images to a project, the images "do not show up" in the import window. In other words, Aperture doesn't "see" the images I am trying to import.
    Here's what I mean, I might have photos on a CF card or on a hard drive which I would be trying to add/import into a project. Sometimes but not all the time, when I select the folder or location where the files are that I am trying to import, no files show up! These are just regular JPEG files. I know they are there because if I look with OS X's Finder, the images are all there. As well, sometimes if I quit Aperture and restart it all over again, the images that I want to import now show up in the import window.
    This problem doesn't change either whether I click on the "do not import duplicate" box or not. Although as a side note, this "do not import duplicate" function doesn't seem to be reliable either.
    Does anyone have any suggestions regarding what I can do to fix this? Can I "reinstall" Aperture? How do I do this? Is this something I can fix by rebuilding the library?

    I didn't even realize that I too had this issue until I came upon this thread. I went into my Import window, selected my hard drive and only the folder structure would show - no images corresponding to those within the folders would appear in the window above.
    Odd, though, all I did was uncheck the 'Do not import duplicates' box and suddenly the images now appear, and continue to appear after a relaunch of Aperture. I've since rechecked the duplicates box but the images still appear.
    I don't know if it's related to the initial toggling of the duplicates button or not. Nor do I know if the problem will appear sometime later, but I do know it was/is an issue.

  • Problems with importing images into Lightroom cc

    Problems with importing images into Lightroom cc
    I have installed lightroom cc and having trouble imortera images from my Canon 1DX.
    Lightroom starting the capture, but then nothing happens more, if I turn off the camera, I get error message photo 100-200 could not be loaded.
    Now I have left lightroom 5 and where the input port works fine.
    What happened to the upgrade from Lightroom 5 to lightroom cc?
    The camera has the latest software.

    I've now tested in various ways.
    First, I have images on both memory cards in the camera.
    Test1) Selects Not all of the photos in the camera at the input port bearings, it seems to work fine.
    Test 2) selects all cards in the camera and then get the following, Lightroom starts inportera short but stops and nothing happens (Fig.1).
    I turn the camera off after a while and get the next meddelnade (picture 1)
    Which can be translated:
    "The following files were not imported because they could not read (351)
    Property 1-100
    etc. "
    Picture 1.
    Picture 2

  • Problems importing images into Livecycle Designer 8.0

    Hello all,
    Recently, I have been having problems importing images into the livecycle forms. I put in the image field and link the image but it would just show a broken link symbol. i usually edit the image in photoshop and save as a jpeg. I can't figure out why Livecycle takes some images but not others.
    Please help anyone

    Never mind, I figured it out, have to save files in RGB format, not CMYK

  • [CS2] Importing XML problem

    Hi All,
    I am trying to import a XML file that used system id with the pointed DTD in another directory where the DTD contains relative paths to other DTDs and entity files.
    For example:
    <!ENTITY % common.ent
    PUBLIC "-//ES//ELEMENTS common element pool version 1.1.3//EN//XML"
    "common113.ent">
    %common.ent;
    When I use other XML editor to write the XML file, it works find. However, when I import the XML to InDesign, it shows an error saying that the public id is not supported and the external file cannot be found.
    I would like to ask why this is happening and how can I fix the problem?
    Any help is appreciate. Thank you.
    Ikki Cheng

    Hi All,
    Just found out that, it seems when importing XML file, if the DTD has relative path in the definition, it is relative to where the current InDesign document resides. I would like to ask if it is possible to change it to be relative where the DTD resides without changing all the relative path to absolute path?
    Any help is appreciate. Thank you.
    Regards,
    Ikki Cheng

  • Problem in importing oracle.xml.sql.query.*

    When i am importing this
    import oracle.xml.sql.query.*;
    it is giving me error that
    "package oracle.xml.sql.query.* does not exist".
    What Should i install or set .

    [from XmlRpc-Java]
    As a result, my XML
    is contained in a String instead of an InputStream.
    It is possible to convert a String to an InputStream using
    StringBufferInputStream, but this class is deprecated in favor of
    StringReader (as StringBufferInputStream does not properly convert
    characters into bytes).
    For the default HTTP transport, an InputStreamReader could be used to
    wrap the InputStream before calling parse().
    Ultimately, the InputStream is converted to an InputSource for use by
    the SAX parser. InputSource will accept a Reader as well.
    [from XmlRpc-Java]
    There should be a way to go from "getXMLString()" to "parse(Reader)" also. In the meantime I'm stuck.
    null

  • Problems importing an XML Schema

    Hello,
    I am trying to import an XML schema using the MDM Console.
    In the Console Hierarchy tree I right-click on the MDM repository into
    which I want to import the XML schema and choose Import
    Repository Schema from the context menu and finally I choose a simple XML file.
    Then an message appears: "MDS Version mismaths. Upgrade the source repository to the latest version and import the original schema again"
    I use the SAP MDM Console for Windows, version 5.5 SP4. There is another way to import an schema in my repository? This Console version really doesn't support it?
    Thank you.
    Could I import my Schema of my repository using MDM Import manager?

    Hi Marta,
    MDM Console will not update the schema.If you select an xml schema in the import manager and try to specify an xml file with different structure,Then it will give you error and will not allow you to import.
    You define xml schema into MDM console so that u can import data into MDM repository from the xml file or files having same structure as defined into xml schema table of repository.
    The XML Schema drop-down list in Import manager includes an entry for each XML schema you define in the MDM Console. For each XML Schema defined in the console, you can select multiple XML source files, each having the same structure.
    Hope it will help you.Let me know the result and further queries if any.
    <b>
    Please remark if it helped you.</b>
    Thanks,<b>
    Shiv Prashant Dixit</b>

  • Problem with importing images from Nikon S60

    I have been using photoshop elements for several years - currently on Version 8.  I've had no issues importing images from my Nikon D70 - I choose the option to store the images in folders by "shot date" and this has always worked.
    My wife has started using a Nikon S60 to take photos - when trying to import these photos they all end up in a folder with today's date.  I've treid a couple of times to be sure that I didn't make a mistake in setting the import options.  I've checked the "properties" of the images and the date their shows the shot date...
    any ideas?

    Seems unusual behavior. I guess the obvious thing to do is to simply rename the folder although that’s a bit annoying.
    Have you tried selecting one of the other shot date formats from the downloader, perhaps to match the camera date format?
    Click image to enlarge.

  • Problem importing init.xml

    Getting this error message when trying to import init.xml.
    Any ideas ? Thanks in advance.
    ErrorError
    An error occurred importing the file, although some of the file data may have been processed. ==> java.lang.NullPointerException:
    Including file 'sample/sysconfig.xml'.

    I am not sure but check few things :
    1. The sample/sysconfig.xml file is there in sample directory .
    2. The sample/sysconfig.xml file is proper .
    3. The inti.xml file is proper.

  • Additional audio channels being imported with XML from FCP. Merged Clips. Out of Sync

    Problem
    When I import an XML Interchange Format V5 file from FCP7 and then import into Premiere Pro CC, my merged clips now have 4 audio channels. 2 from the original file and 2 from the merged audio.
    Versions
    FCP 7
    Premiere Pro CC 7.2
    Workflow
    * Create merged clips in FCP
         * ProRes Video clip with camera audio
         * Stereo audio clip
         * Sync in Timeline
         * Delete unneeded audio tracks, reducing track on video clip to 1 mono track, centered
         * Drag to browser
    * Export XML Interchange V5
    * Open Premiere
    * Import XML Interchange File
    * Clips are imported, HOWEVER
         * Clips now have 4 tracks of audio
         * Tracks 1-2 are audio from the original Video clip
         * Tracks 3-4 are audio from the synced second source audio file    
         * Additionally, tracks 1-2 are now OUT OF SYNC
    I cannot find a way around this. Clips now all have out of sync indicators on them. Merged audio is insync, and original audio is out of sync.
    I do not want to have to resync all of my audio, everything is tagged and organized into bins.
    Anybody know why this happens and a workaround?

    Ha ha, an excellently wry comparison.
    I'm using photo-jpeg because it was reccomended to me as a way to achieve greater image quality when exporting within the confines of youtube.

  • Importing a XML file in my INDD template. I get lots of unwanted paragraph breaks

    Hi,
    I am importing a XML file in my INDD template. I get lots of unwanted paragraph breaks where the closing xml tags for elements appear.
    Can someone guide me please to rectify the problem?
    Regards,
    ~shibu

    Here is the screen shot from INDD: Though I manage to get rid 0f them when i close up the XML tag manually, I want a sure-shot solution. Thanks for helping me out.
    and here is the screen shot of the XML coding:
    <para aid:pstyle="4 body text">Another common alkali is potassium hydroxide, KOH.</para>
    <equation><mathphrase>KOH(aq) &#x2192; K<superscript>+</superscript>(aq) + OH<superscript>&#x2013;</superscript>(aq)</mathphrase></equation>
    <qandaset>
    <title aid:pstyle="7 Questions heading"><emphasis role="underline">Questions A</emphasis></title><qandadiv><qandaentry><question><orderedlist numeration="arabic" startingnumber="1">
    <listitem><para aid:pstyle="7 Question text">Two solutions are tested with universal indicator paper. Solution A has a pH of 8 and solution B has a pH of 14. What does this tell you about the two solutions?</para></listitem>
    <listitem><para aid:pstyle="7 Question text">Methyl orange is added to a solution and the solution turns pink. What does this tell you about the solution?</para></listitem><listitem><para aid:pstyle="7 Question text">What does the &#x2018;basicity&#x2019; of an acid refer to?</para></listitem>
    <listitem><para aid:pstyle="7 Question text">Calcium oxide is an example of a base. How do you know this?</para></listitem>
    </orderedlist>
    </question>
    </qandaentry>
    </qandadiv>
    </qandaset>
    </sect1>
    <sect1>
    <title aid:pstyle="3 Heading">What are salts?</title>
    <para aid:pstyle="4 body text">Previously, it was explained that acids contain <emphasis role="bold" aid:cstyle="4 body bold">replaceable hydrogen atoms</emphasis>, and that when <emphasis role="bold" aid:cstyle="4 body bold">metal atoms</emphasis> take their place, a compound called a salt is formed. The names of salts have two parts, as shown:</para>
    <!-- <equation><mediaobject><textobject><figure href="file:///D:/images/reaction2.tif"><title/><para/></figure></textobject></mediaobject></equation> -->
    <para aid:pstyle="4 body text">The table shows the four most common acids and their salt names.</para>

Maybe you are looking for