|  | display RSS feed in flash - sorry if this has been asked |  | |
| | | DemonGFish |  |
| Posted: Wed Jul 09, 2008 9:48 am Post subject: display RSS feed in flash - sorry if this has been asked |  |
hey hey! new here and have what is hopefully [but unlikely] and easy question.
i am trying to display the contents of an RSS feed within a .swf i have found several places with instructions on how to do this.
so far i have [Q] var my_xml = new XML(); my_xml.onLoad = function(success){
if (success){
trace(this);
}
} my_xml.load("http ://www .my site.com/rss.xml"); [/Q] is this correct? or am i way off.
secondly once i have done this how do actually get the feed to display within the movie? [everyone seems to leave that out]
this is probably way more complicated than i had hoped. thanks in advance for the help! |
| |
| | | DMennenoh **AdobeCommunit |  |
| Posted: Wed Jul 09, 2008 12:44 pm Post subject: Re: display RSS feed in flash - sorry if this has been asked |  |
Looks good so far. How you display is up to you - it's just text... stick the data in fields, move clips around based on some value, etc. FWIW the onLoad method of the XML class, in Help, has a nice example of doing something with the incoming data.
-- Dave - LINK Head Developer LINK Adobe Community Expert LINK |
| |
| | | DemonGFish |  |
| Posted: Wed Jul 09, 2008 3:12 pm Post subject: Re: display RSS feed in flash - sorry if this has been asked |  |
| the bit that confuses me is how exactly do i "stick the data in fields"? |
| |
| | | DMennenoh **AdobeCommunit |  |
| Posted: Wed Jul 09, 2008 5:33 pm Post subject: Re: display RSS feed in flash - sorry if this has been asked |  |
Like I said, have a look at the onLoad method of the XML class.
In the example is something like: if ((myLoginReply_xml.firstChild.nodeName == "packet") {
So, you test to see if the nodeName is "packet". You could just as well place it in a field:
myRoot.myField.text = myLoginReply_xml.firstChild.nodeName;
-- Dave - LINK Head Developer LINK Adobe Community Expert LINK |
| |
| | | DemonGFish |  |
| Posted: Fri Jul 11, 2008 3:42 am Post subject: Re: display RSS feed in flash - sorry if this has been asked |  |
thanks!
to be honest i am still a little confused as to where i actually put that code, but i'll see what i can do. |
| |
|
|