Mike points out that Macromedia has made available an ActionScript class that will parse the XML feed into a DataProviderClass “which makes it pretty easy to use”, quote Mike Chambers.
There is also an example there of how you make sure that you are able to load the XML newsfeed from the Macromedia site, as far as I can tell what he is doing in CFML is a regular redirect from a local domain url to Macromedia’s URL.
Since Macromedia isn’t showing the code for PHP, ASP or Perl – I thought I would show it..
The workaround to be able to access data from domains outside the security constraints of Flash is to redirect to the source data from your local domain. Here are some examples added to the Macromedia example. First the Macromedia example with ColdFusion:
Make a CF file and then point to this local file, to get access to the remote content on the url shown in the source below:
<cflocation url=” http://www.macromedia.com/desdev/resources/macromedia_resources.xml”/>
print “Location: http://www.macromedia.com/desdev/resources/macromedia_resources.xml\n\n”;
Adding JSP and Python since Mike commented on them (I am not going near Pascal (can it even be done in Pascal?) and assembly), a little unsure about these two – so please let me know if this is the wrong way of doing it – or if there are better ways:
And if you want to do it with ActionScript in ColdFusion MX, Mike has the solution for that.
Its important to note that most of these scripts will only work if they are executed before any other output of the pages they are in.