A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: reading XML to flash

  1. #1

    reading XML to flash

    Ok here's what im doing.

    1. Flash calls php file which executes a SQL query.
    2. The query returned is an multi-Dimensional array.
    3. Array is converted into XML format using php.

    Here is what the formatted xml looks like.
    PHP Code:
    <post postTitle="some title1" postDate="0000-00-01">
      <
    postBody>Lots of text goes here</postBody>
    </
    post>

    <
    post postTitle="some title2" postDate="0000-00-02">
      <
    postBody>Lots of text goes here2</postBody>
    </
    post>

    <
    post postTitle="some title3" postDate="0000-00-03">
      <
    postBody>Lots of text goes here3</postBody>
    </
    post
    without the white space. Its formatted as one long string.
    So my question is How do i read in this XML varible into flash. I'd like to not create an xml doc before reading it in.

    What commands in flash are needed to See the postTitle atribute as well as the post body? Sorry im a complete noob when it comes to xml and flash. Been reading up but still very confused.

    Jesse

  2. #2
    Senior Member tupps's Avatar
    Join Date
    Jan 2001
    Location
    Melbourne
    Posts
    2,035
    Have a dig around on my site:

    http://www.tupps.com/flash

    I have a tutorial, some examples and a FAQ that should help you along.

    Everything you want is supported by Flash's XML classes.

    Here is another good article on what the XML Object can do:

    http://actionscript-toolbox.com/xmlobject.php

    Thanks

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

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