How can I import external xml

Please i want to call a HTTPService to populate markers from external .xml file  instead of populating it directly in the main.mxml. Thank you!
[Embed(source="image/cinemaMarker.png")]
  protected var MarkerImage:Class;
  private var srcXML:XML =
  <root>
  <location>
  <name>Pen Cinema Agege</name>
  <lat>6.6278426</lat>
  <long>3.324914700000022</long>
  <description>Pen cinema Agege</description>
  </location>
  <location>
  <name>SilverBird Galleria</name>
  <lat>6.427690000000000000</lat>
  <long>3.3.408909999999991700</long>
  <description>SilverBird Galleria</description>
  </location>
  </root>;
private function addMarkers():void
  for each (var resort:XML in srcXML.location){
  resortMarker = new PointMarker();                                             
  var markerImage:Bitmap = new MarkerImage() as Bitmap;
  markerImage.x = -markerImage.width/2
  markerImage.y = -markerImage.height/2
  resortMarker.addChild(markerImage);
  resortMarker.resortName = resort.name;
  resortMarker.resortDesc = resort.description;
  resortMarker.addEventListener(MouseEvent.CLICK, handleMouseClick);                     
  _map.putMarker(new Location(resort.lat, resort.long), resortMarker);                                                           

You can create folders on iCloud Drive, like you create folders in Finder on your hard drive.
Just open iCloud Drive in Finder and enter ⌘N to create a new folder. Then drag your photos to that folder and rename the folder.
Only the special folders created by the standard apps do not allow to create deeply nested folders inside  these folders.
The unfortunate thing is that i have an Macbook Air, and not enough memory to put all the folders back in iPhoto to have them uploaded to iCloud.
If you want to move the photos to iCloud Drive to save space on your MacBook Air, that will not work.  For any file you store on iCloud Drive there will be a shadow copy on your Mac, so you cannot save space on your MacBook Air this way. You need as much spce on your MAcBook Air as you are using in iCloud.  Maybe this will change in future MacOS X versions, but right now you will have all iCloud files stored locally as well.
See:   iCloud Drive FAQ

Similar Messages

  • How can I import an XML DOM document into another?

    Dear all,
    I'm using the following bit of code:
         public static Node replaceNode(Document replacedDocument,
                        Document replacingDocument,
                        Node replacedNode)
         //Create a documentFragment of the replacingDocument
         DocumentFragment docFrag = replacingDocument.createDocumentFragment();
         Element rootElement = replacingDocument.getDocumentElement();
         docFrag.appendChild(rootElement);     
         //Import docFrag under the ownership of replacedDocument
         Node replacingNode =
         ((replacedDocument).importNode(docFrag, true));
              //In order to replace the node need to retrieve replacedNode's parent
         Node replaceNodeParent = replacedNode.getParentNode();
         replaceNodeParent.replaceChild(replacingNode, replacedNode);
         return replacedDocument;
    to import a DOM document into another DOM document, so that it converts something like this:
    <?xml= .... etc>
    <Data></Data
    to:
    <?xml= .... etc>
    <Data>
    <Yellow>Butter</Yellow>
    <White>Marzipan</White>
    </Data>
    Instead, what it is doing is:
    <?xml= .... etc>
    <Yellow>Butter</Yellow>
    <White>Marzipan</White>
    I know that it is stripping out the <Data> elements because of the call to the replaceChild
    function, after getting the element's parent, but if I change
    Node replaceNodeParent = replacedNode.getParentNode();
    to
    Node replaceNodeParent = replacedNode;
    I get an error about node node being accessible.
    Please help!
    Paul

    http://forum.java.sun.com/thread.jsp?forum=34&thread=208596

  • How can i import external data into folders in iCloud?

    I currently have all my iPhoto folders stored on a external harddrive (removed from iPhoto) and would like to put them in iCloud. The unfortunate thing is that i have an Macbook Air, and not enough memory to put all the folders back in iPhoto to have them uploaded to iCloud.
    - i have tried iCloud Drive, but this doesn't create folders..
    Thanks!

    You can create folders on iCloud Drive, like you create folders in Finder on your hard drive.
    Just open iCloud Drive in Finder and enter ⌘N to create a new folder. Then drag your photos to that folder and rename the folder.
    Only the special folders created by the standard apps do not allow to create deeply nested folders inside  these folders.
    The unfortunate thing is that i have an Macbook Air, and not enough memory to put all the folders back in iPhoto to have them uploaded to iCloud.
    If you want to move the photos to iCloud Drive to save space on your MacBook Air, that will not work.  For any file you store on iCloud Drive there will be a shadow copy on your Mac, so you cannot save space on your MacBook Air this way. You need as much spce on your MAcBook Air as you are using in iCloud.  Maybe this will change in future MacOS X versions, but right now you will have all iCloud files stored locally as well.
    See:   iCloud Drive FAQ

  • How can I import my music CD from an external drive (other PC) via LAN?

    How can I import my music CD from an external drive (other PC) via LAN?
    I have tried by "add..." but without success.

    Hello DIRP,
    Thanks for using Apple Support Communities.
    For more information on this, take a look at:
    iTunes: About the Add to Library, Import, and Convert functions
    http://support.apple.com/kb/ht1347
    Best of luck,
    Mario

  • How can I import file of photos from external drive into photoshop elements 11 organizer?

    I just started with elements 11 after many years of El., 10. How can I import files from external disk to elements 11 organizer? My files were stored on the external drive.

    Hi,
    The Canon S100 wasn't supported until version 6.6 of camera raw and that isn't supported by pse 8.
    You options are to either upgrade to pse version 10 or use the DNG converter
    for windows http://www.adobe.com/support/downloads/detail.jsp?ftpID=5310
    or
    for mac http://www.adobe.com/support/downloads/detail.jsp?ftpID=5309
    Brian

  • How  can I import my DVD into extern Hardisk to save them?

    How can I import my Dvd  (iM ovie) into extern Harddisk to save them?

    Hi
    Disk Utility tool should be able to make a DiskImage of Your DVD (only work for non commercial DVDs)
    Yours Bengt W

  • Can't import an xml file

    Hi,
    I am using Captivate 5.5 on Windows. I have an .swf file which needs to have an xml file with it in order for it to behave the way in which it was intended. The developer has said that the two files need to be included in the same folder.
    I have no problem importing the swf file however I can't import the xml file which is called flashParams.xml. I have been editing the xml file in windows notepad and it is working perfectly outside Captivate. However when i try to import the xml, I get the message 'Cannot import XML'. I have been using File/Import/from xml to get the file loaded but no luck. I have also tried dragging it into the library but no luck here either.
    Can anyone suggest what I might be doing wrong and how they would approach what surely must be a very simple task.
    Thanks,
    Nick

    Hi Rod,
    Thanks for the reply.
    I think what I could do is to launch the swf by clicking on a link in the Captivate session to an external url (it will be hosted on Moodle). The one problem I have is that when I do this in Captivate, the slide refuses to pause and moves onto the next slide. What I would like is for the user to be able to click on the link for the url and for the slide to pause until the user clicks on a next button to go to the next slide.
    Nick

  • Not enough space on my new SSD drive to import my data from time machine backup, how can I import my latest backup minus some big files?

    I just got a new 256GB SSD drive for my mac, I want to import my data from time machine backup, but its larger than 256GB since it used to be on my old optical drive. How can I import my latest backup keeping out some big files on the external drive?

    Hello Salemr,
    When you restore from a Time Machine back up, you can tell it to not transfer folders like Desktop, Documents. Downloads, Movies, Music, Pictures and Public. Take a look at the article below for the steps to restore from your back up.  
    Move your data to a new Mac
    http://support.apple.com/en-us/ht5872
    Regards,
    -Norm G. 

  • I have many of those lost photos on my iPod.  How can I import those to my MacBook Pro without the iTunes synchronization kicking in and removing them?

    I lost rather a lot of photos on a corrupted external storage device.  I have many of those photos on my iPod.  How can I import those
    photos into my MacBook Pro without the iTunes synchronization function kicking in and effectively deleting those photos I want to
    import from that iPod?  Any assistance would be greatly appreciated as those photos now only reside on that iPod...

    The photos you synced to your iPod through iTunes are no longer in their full resolution, but instead are scaled down thumbnails of those photos.  So if you do manage to get them off your iPod, they will be quite small in size compared to the original ones you lost.
    In order to get them off of your iPod, you'll need the help of some sort of 3rd party software. Here is one option.
    http://www.macroplant.com/podtopc/
    B-rock

  • How can I import SMS / MMS from old phone to iPhone?

    Greetings. I wonder, how can I import messages (SMS and MMS) from my old phone to a new iPhone? I have my current phone for about five years and I have there many important messages I can't afford to lose. I know, that exporting messages is often tricky (my old phone is using Windows Mobile 6), but there are some programs that can export messages to various formats (.xml, .txt, .sms etc.). But the question is, how to import these messages into iPhone.
    Is it possible via iTunes? Is there an app? Sould I visit Apple Store or support? Thank you for any ideas.
    Johny

    Well, I am thinking about iPhone for the first time. My five years old phone is smartphone, but very early one (HP iPAQ 514, running Windows Mobile 6). I know that transfering data between different systems might be difficult, but on the other hand, we have the end of 2011, so I believe in interoperability (at least via third party apps).
    Anyway, I've discovered few softwares that can export my messages from my old phone and put it into a file on a computer (in different formats, such as .sms, .txt., .xml or .csv; depends on software and options). But the question is, how to import it into new iPhone.
    I've also noticed (from various discussions), that iPhone-related messages are usually saved somewhere in iTunes (something.mdbackup), but again, the question is, how to import it back to phone..
    To be honest, I am quite surprised that there is not some easy on-click way (or at least tons of how-to or tutorials). The iPhone is quite a new product (since 2007) and before it there was already quite a large mobile and smartphone market - so "transferring data" should be already solved.. (similar to transferring contacts, calendars and so on).

  • How can i import my color editing from apple color to fcp x

    Hello mates,
    I edited my project in FCPX 10.0.8 than i export XML file and open it with DaVinci Resolve to export it again for Apple Color. So far so good no problem. I edit my color in that program but when i said send to final cut pro it was opening with the old projects. I mean i can't see my color editing in that project. I can't figure out how can i import that file in fcp x. I tried to export an XML from color, but i couldn't open it with Davinci nor FCPX.
    So i will be very glad if you help me..

    FCPX does not read Color XML exports. You would need to export the finished footage in Color and reimport that into X. Resolve is free and offers a far more integrated workflow with X than Color ever will (as it's long been discontinued).

  • How can I import Outlook for Mac mail into Lion Mail?

    How can I import mail from Outlook for Mac into Lion Mail?

    It is not Outlook that needs to be sync'd; it is the Exchange Server.  Find out from the System Administrator of the Exchange Server the EXTERNAL name and use that to setup a new mail account in Lion Mail.  I highlight the "external" because the URL used for Window's Outlook Clients will not work.  Try the webmail URL first.

  • HT4910 how can I import my contacts from my Iphone 5 device to the Icloud?

    how can I import my contacts from my Iphone 5 device to the Icloud?

    To get the contacts from your Hotmail and exchange accounts into iCloud, do the following:
    Go to Settings>iCloud, turn Contacts to Off, choose Delete from My iPhone when prompted (any iCloud contacts will still be in iCloud).
    Download the app My Contacts Backup.  (If you have more than 500 contacts to transfer from your external accounts you will need the “Pro” version.)  Use the app to back up the remaining contacts on your phone as a vCard attachment to an email that you send to yourself.  Confirm that you have received the email.
    Go to Settings>iCloud and turn Contacts back to On.
    Go to Settings>Mail,Contacts,Calendars>Default Account (in the Contacts section), and set this to iCloud.
    Go to Settings>Mail,Contacts,Calendars...tap your Hotmail and exchange accounts and turn off contacts syncing with with these accounts.  If you don't you will see duplicates of your contacts (one from the external account and one from iCloud).
    Open the My Contacts Backup email and tap the attachment to import the contacts from the external accounts back to your phone, and to iCloud.  Go to icloud.com to confirm they are there.

  • How can i import mpeg files into iMovie?

    how can i import mpeg files into iMovie?

    Where are your MPEG stored?
    I have hundreds of old MPEGs stored in my nexternal drive, but unfortunatly i was not able import them into iMovie. I did the following trick: I created a new set of a folder and subfolder and called it "Virtual_CAM/DCIM" and saved it on my desktop. Then went to Disk Utilities>File Menue>New>Disk Image from Folder. Then selected the folder on my desktop and clicked enter. I moved the .dmg file to my external (or just keep it on your desktop). I clicked on the .dmg file. It shoud be visible on the Finder. Open your Imovie and import as you do from your camera.

  • How can I import mpeg files downloaded into itunes?

    How can I import mpeg song files downloaded into itunes?

    Where are your MPEG stored?
    I have hundreds of old MPEGs stored in my nexternal drive, but unfortunatly i was not able import them into iMovie. I did the following trick: I created a new set of a folder and subfolder and called it "Virtual_CAM/DCIM" and saved it on my desktop. Then went to Disk Utilities>File Menue>New>Disk Image from Folder. Then selected the folder on my desktop and clicked enter. I moved the .dmg file to my external (or just keep it on your desktop). I clicked on the .dmg file. It shoud be visible on the Finder. Open your Imovie and import as you do from your camera.

Maybe you are looking for

  • How do you get purchased songs from Touch to itunes?

    Hi, I purchased a few songs of of the itunes app on my ipod touch. My question now is, How do I get those songs to show up in my itunes library on my computer? Thanx

  • Dynamically adjust table row height based on data in column

    Hi all, I'm using JDeveloper 11.1.1.5.0 and have a requirement for a table to adjust the height of its rows depending on the data in the columns. One of the columns in the table is a rich text description field and I have the 'rows' property set to 1

  • Home hub 3 - Sudden loss of connection after havin...

    I have been with BT for about a week now and over the last 6 days the internet has been working fine. Today I had to do some eletrical work so cut the power to the whole house, obviously this turned off the router. I did this on several occisions not

  • VPN 3005 and Microsoft AD authentication

    I would like to use Microsoft Active Directory (AD) to authenticate remote access users connecting to the VPN3005 concentrator. Everything is working fine but I want the VPN3k to use microsoft ds (tcp port 445) instead of netbios (tcp port 139) when

  • SALRT_CREATE_API with CBMA and/or Central Monitoring using Solman

    Hi, Does anyone know if function SALRT_CREATE_API can be used to raise alerts in Component Based Message Alerting (CBMA) and/or Centralised Monitoring in Solman? I understand SALRT_CREATE_API worked with the classic Alert Framework. Che