Welcome, Guest
  • Author Topic: Actionscript XML and multi images / links.  (Read 3863 times)

    bulfen

    • Server what's that
    • *
    • Posts: 2
      • View Profile
    Actionscript XML and multi images / links.
    « on: 03/12/09, 14:06 »
    Hi guys,

    I'm pretty new to flash but "know" how most of the things works in general. I'm a webmaster who just go tierd of useing other people finish products so I decided to make my owns but kinda need some help.  :P

    Here is alittle info about my project.
    The XML is used to get remote feed for my website. What I want it to do is to get the images in X numbers of rows and columns
    with the image ( or button) to open the link.

    The XML file
    Code: [Select]
    <?xml version="1.0" encoding="UTF-8"?>
    <online_stat version="1.4">
     <category name="Main">
      <info>
       <category><![CDATA[Main]]></category>
       <subcategory><![CDATA[Sub]]></subcategory>
       <name><![CDATA[Some_name]]></name>
       <images><![CDATA[image1.jpg]]></images>
       <thumbnail><![CDATA[thumb1.jpg]]></thumbnail>
       <link><![CDATA[http://www.something.com]]></link>

      </info>
      </category>
    </online_stat>

    What I need from this XML is "name",thumbnail" and "link"
    and what I need help with is setting up a ActionScript for this. The rest I think I should be able to do myself. :P

    Hopefully someone understand what I'm talking about, If not let me know.  ;D

    mmm.. Sorry if it was posted in the wrong section.  :-\
    « Last Edit: 03/12/09, 14:09 by bulfen »

    Ronald Wernecke

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 6203
      • View Profile
      • Professional Support
      • Email
    Re: Actionscript XML and multi images / links.
    « Reply #1 on: 03/13/09, 01:09 »
    if you have more than one object of the same type, you just loop through them, and create the needed movieclips (load the containers) at stage.

    I would create a general movieclip as a basic container and load the display containers into this.
    happy flashing
    8)
    Ronald

    bulfen

    • Server what's that
    • *
    • Posts: 2
      • View Profile
    Re: Actionscript XML and multi images / links.
    « Reply #2 on: 03/13/09, 09:29 »
    Hi Ronald,

    I made a version earlyer but it did work as I had "dreamed" it would do. I'm still new when it comes to useing xml with flash and being able to generate a output with it. But I'm learning. :D Right now.  ;D