Importing Images via XML

  • Belk Media Group
  • Graphic Monk
  • Professor
  • User avatar
  • Posts: 778
  • Loc: In the heart of California, Fresno.

Post 3+ Months Ago

I want to import images into my .swf using an external xml file. I have found many tutorials regarding this but they are for creating image galleries. I dont want an image gallery, I just want to learn how to import an image via XML without all the extra hub-bub. I have my xml file set up like so:
Code: [ Select ]
<images>
  <pic>
    <image>images/newyorknights.jpg</image>
    <caption>People crossing the street on West 3rd.</caption>
  </pic>
 </images>
  1. <images>
  2.   <pic>
  3.     <image>images/newyorknights.jpg</image>
  4.     <caption>People crossing the street on West 3rd.</caption>
  5.   </pic>
  6.  </images>


Thank you in advance.
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • classified
  • Expert
  • Expert
  • User avatar
  • Posts: 540
  • Loc: Bahrain

Post 3+ Months Ago

its called loading ...
and what happens is you dont actually import anything , the XML file has the location of the jpegs which then you should write a script that has an array to store all the data ...

just like the image gallery tutorials ...


need help with that ?
  • Belk Media Group
  • Graphic Monk
  • Professor
  • User avatar
  • Posts: 778
  • Loc: In the heart of California, Fresno.

Post 3+ Months Ago

Nevermind I found a tutorial.

http://www.actionscript.org/resources/articles/571/2/How-to-Load-Data-and-Use-it-From-XML/Page2.html

Post Information

  • Total Posts in this topic: 3 posts
  • Users browsing this forum: No registered users and 14 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.