Google
 
Webnews.only-4-geeks.com
Interesting places
news.only-4-geeks.com Forum Index » Flash - ActionScript

display RSS feed in flash - sorry if this has been asked

 
Jump to:  
 
DemonGFish
PostPosted: 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
PostPosted: 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
PostPosted: 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
PostPosted: 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
PostPosted: 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.
 

Page 1 of 1 .:.

Google
 
Webnews.only-4-geeks.com

Windows Update | C++ | C | PHP | JavaScript | Photoshop | Programming | Windows 2000 | Python | Windows XP | Object | Flash | Flash - ActionScript | Paint Shop Pro | Excel | PowerPoint | Access | Word | Windows 98 | Internet Explorer 6.0 | CorelDraw12 | Java | XML | asm x86 | Linux Mandrake | Linux RedHat | Outlook |  | news from newsgroups |_ | s

Web Templates

Awesome Website Templates ©

usługi budowlane warszawa Podczas Świąt - Lipska Ewa poker forum Krynicki Ryszard wiersze poker