dcsimg
A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Confused about MX 2004 XML, components

  1. #1
    Senior Member
    Join Date
    Apr 2001
    Posts
    162

    Confused about MX 2004 XML, components

    I've looked at the tutorials that came with MX 2004 and, as I might have expected, they were absolutely useless. I followed an online tutorial provided by Macromedia that stepped through the process of integrating XML data into a Flash movie - and it worked! - but their methods seem so odd and unconventional that it's starting to become rather frustrating to really absorb what is really going on underneath the complicated web of components.

    What I want to do is dead simple: have my movie send arguments to a PHP file that would grope a database and return results in XML format, which the movie would then parse and display for the user. I have the entire process mapped out but now all I need to do is figure out how these darn components work. In the tutorial I read the XML data seemed totally out of this world. The code they provided looked something like this:

    PHP Code:
    <dataset>
      <
    row name="name" age="10".../>
    </
    dataset
    Now I don't know about you but in my experience with XML I've always tried to limit my use of attributes and stick with leaf nodes instead. It just makes for much more readable and, frankly, sensible code. Just imagine what a single element with 20 attributes might look like - scary! :O

    The problem here is that I can't seem to modify their example to parse a file that might look something like this:

    PHP Code:
    <people>
      <
    person id="pers.00001">
        <
    name>John Doe</name>
        <
    age>12</age>
      </
    person>
      ...
    </
    people

    I'm starting to get the impression that this new data component feature of MX 2004 isn't all that I had anticipated it to be. Then again, I await a response that will hopefully clear things up and get me going once again

    - ptolemy
    Using: Flash MX
    http://www.dynamitron.com

  2. #2
    Mod cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,448
    Go to www.ultraschock.com they have excellent tutorials on all components.
    - The right of the People to create Flash movies shall not be infringed. -
    | www.Flashscript.biz | Flashscript Biz Classes/Components |

  3. #3
    Senior Member tupps's Avatar
    Join Date
    Jan 2001
    Location
    Melbourne
    Posts
    2,035
    I think that is suppose to be www.ultrashock.com

    Thanks

    Luke
    Flash-XML FAQ
    http://www.tupps.com/flash/faq/

  4. #4
    Mod cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,448
    Thanks Tupps! I guess that is my german which is coming to the surface.
    - The right of the People to create Flash movies shall not be infringed. -
    | www.Flashscript.biz | Flashscript Biz Classes/Components |

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center