Results 1 to 4 of 4

Thread: How to read XML data generated by PHP in FLash

  1. #1
    Join Date
    Apr 2008
    Posts
    240

    How to read XML data generated by PHP in FLash

    I have been trying to write AS3 that can read xml which is dynamically generated by php. I have generated the xml in several ways -- all of which seem to work but I keep getting the error, I have a normal XML file which I chucked together that works fine with the code I have below - this is obviously saved as an xml file as well. What I'm trying to do is generate an XML page using PHP.

  2. #2
    Join Date
    Oct 2008
    Posts
    57

    Re: How to read XML data generated by PHP in FLash

    Everything works great! but why? if i replace videos.php with a static xml file, videos.xml the local path works fine. The pocketRFlash.php (in PocketReader) and the Rss.php (in the Reader) handles the XML output to build the string flow. The xmlclass.php is the base class for both. Any ideas about why it doesn´t work with a php script? That is because xml is declared anywhere. Either declare the xml at the top to make it accessible by all the code or inside the event handler.

  3. #3
    Join Date
    Dec 2008
    Posts
    120

    Re: How to read XML data generated by PHP in FLash

    XML (EXtensible Markup Language) is a way of structuring information in a text-based file using tags that are similar to HTML tags, but not predefined as HTML tags are. XML was conceived as a means of regaining the power and flexibility of SGML without most of its complexity. Although a restricted form of SGML, XML nonetheless preserves most of SGML's power and richness, and yet still retains all of SGML's commonly used features. Instead, you make up the tags (or use one of the evolving XML application standards) which best define your data structure, or use the XML file generated by conversion from spreadsheet or database content.

  4. #4
    Join Date
    Oct 2008
    Posts
    117

    Re: How to read XML data generated by PHP in FLash

    Flash with PHP/XML and I'll be darned, my own post shows up in the search results. I'm (maybe was) having trouble with the XML not loading in time for when it's needed in scrolling content area. Essentially this means that all elements must either have closing tags or be written in a special form (as described below), and that all the elements must nest properly. I think I figured it out, it's all about loading the XML as far up front as I can. Hopefully next time the client tries it out, everything will be fine, no missing content.

Similar Threads

  1. Replies: 5
    Last Post: 05-07-2011, 09:40 PM
  2. USB flash drive became read only
    By Liam Roche in forum Vista Help
    Replies: 14
    Last Post: 20-08-2009, 11:10 PM
  3. To read data from dataset in VB
    By Chandrakant81 in forum Software Development
    Replies: 2
    Last Post: 03-02-2009, 05:06 PM
  4. USB pen drive - can't read the data
    By Snehasis in forum Portable Devices
    Replies: 1
    Last Post: 22-08-2008, 05:25 PM

Posting Permissions

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