Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



How to read XML data generated by PHP in FLash

Software Development


Reply
 
Thread Tools Search this Thread
  #1  
Old 15-09-2009
Member
 
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.

Reply With Quote
  #2  
Old 15-09-2009
Member
 
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.
Reply With Quote
  #3  
Old 15-09-2009
Member
 
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.
Reply With Quote
  #4  
Old 15-09-2009
Member
 
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.
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "How to read XML data generated by PHP in FLash"
Thread Thread Starter Forum Replies Last Post
Adobe Flash Player 10.3 block sites from storing Flash data on your computer Pransukh Windows Software 5 05-07-2011 09:40 PM
USB flash drive became read only Liam Roche Vista Help 14 20-08-2009 11:10 PM
To read data from dataset in VB Chandrakant81 Software Development 2 03-02-2009 05:06 PM
USB pen drive - can't read the data Snehasis Portable Devices 1 22-08-2008 05:25 PM


All times are GMT +5.5. The time now is 07:51 AM.