|
|
#1 (permalink) |
|
OYXLUSFlash.com Staff Member
|
How to load a RSS feed
You only have to edit two lines of code: 1. Specify the url from where you want to pull the rss feed: var RSSUrl = "rss url goes here"; this line is located inside the news.fla file, in the first frame. 2. Load the Feed a. If the feed is located on the same domain use:It should test this only on a server that supports php, it will not work locally. Upload both of the swf file and php files on your server. Remove the other xml.load… lines. Don’t use them all at once. It will not work. Leave the domain variable blank ( domain = ""; ). Leave the php file intact, you don't have to edit it in any way. Your server must have php support in order for this to work. Last edited by Adrian; 06-07-2009 at 12:50 PM. |
|
|
|
|
|
#2 (permalink) | ||
|
Junior Member
Join Date: Oct 2008
Posts: 3
|
i ve tried so many times but still didnt figure out how this works...
lets say my domain is: PHP Code:
PHP Code:
Quote:
Quote:
Thanx a lot in advance! Last edited by Adrian; 06-07-2009 at 12:46 PM. |
||
|
|
|
|
|
#3 (permalink) |
|
OYXLUSFlash.com Staff Member
|
The problem is here:
Code:
http://www.adslspeed.com/rss/news.php?url=http://rss.news.yahoo.com/rss/topstories Take a look at this: Code:
http://office.oxylus.ro/~adrian/news/news.php?url=http://rss.news.yahoo.com/rss/topstories Code:
http://office.oxylus.ro/~adrian/news/news.swf Code:
<?php $url = $_GET["url"]; echo readfile($url); ?> Code:
<?php $url = $_GET["url"]; echo readfile($url); ?> Last edited by Adrian; 06-07-2009 at 12:44 PM. |
|
|
|
|
|
#4 (permalink) | ||
|
Junior Member
Join Date: Oct 2008
Posts: 3
|
My problem was solved.
My dedi server didnt allow URL file-access(it was disabled) so i couldnt load the rss feed from external urls. For other people having the same problem i suggest you follow the instructions given in this topic and when done do the following: type in your browser: PHP Code:
if you see the following errors: Quote:
To fix it create a php.ini file and put inside the following line: Quote:
I hope i ve helped a bit.... |
||
|
|
|
|
|
#5 (permalink) |
|
Junior Member
Join Date: Jul 2009
Posts: 4
|
Its me.. just sent you an email. these are very basic instructions yet my file is not working. when i load my page i see that the loader starts to search for the rss but then blank.
http://devicemedia.net/news.swf Do I have to upload the actionscript files? ![]() |
|
|
|
|
|
#7 (permalink) |
|
Junior Member
Join Date: Jan 2009
Posts: 2
|
Hey all,
Being that my server does not support PHP I took the news.php and quickly transformed it to ASP (news.asp). The code is as follows - Code:
<%
Dim strUrl
strUrl = Request.Querystring("url")
set xmlhttp = server.CreateObject("Microsoft.XMLHTTP")
xmlhttp.open "GET", strUrl, false
xmlhttp.send ""
Response.write xmlhttp.responseText
%>
|
|
|
|
|
|
#9 (permalink) |
|
Junior Member
Join Date: Oct 2009
Posts: 1
|
My server also does not support PHP, so I am trying to get this component to work using the ASP file provided. Is there any change to the code in frame 1 of the FLA file that I'd need to make in order to load my RSS feed URL with the ASP code?
So far I am able to get the preloader, and a trace of 'successful' comes through when I test the file locally, but I cannot get the content of the RSS feed to load or show. Please help. Thanks. |
|
|
|
![]() |
| Bookmarks |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|
All times are GMT. The time now is 05:50 AM.









Linear Mode
