Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




How To Get An RSS Feed Into Flash



Hey all,I would like to get an RSS feed into a Flash piece that I am building. I would like to only display the title of the feed(that will be a link) and when the user clicks on the title(link), it will link them to the site with the provided article. I would like title(link) to update as the feed is updated.Does anyone know how to do this or where to start?Thanks.



KirupaForum > Flash > Flash 8 (and earlier)
Posted on: 11-15-2006, 12:27 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Flash And XML RSS Feed
I suppose I'd do better to post this here.

See thread:
http://www.flashkit.com/board/showth...hreadid=477366

Attempting a FLasBlog.

Cheers!
Holiday

RSS Or XML Feed In Flash
I help run a news site, and we're trying to reach a broader audience in our 2nd year online. We want to set up a CNN or ESPN like news ticker that will go on the bottom of several popular websites. We've already gotten clearance from a few sites. The main thing: We run off of Blogger. What we're looking to do is to put an XML or RSS feed and transfer that to a ticker type thing on a Flash document. Again, imagine the ESPN or CNN ticker for a guide. If you need to see our site to see what we're talking about,this is it.

We have an XML feed syndicating our Blogger site to LiveJournal also at this link provided.

I'm thinking that if there is some way to get an XML feed into dynamic text, we should be able to get it to scroll, but you guys are the experts. We just want some type of ticker using XML or RSS, like the ones on ESPN or CNN. Our versions of flash are Flash 8 and Flash MX, both on Macs. Can anyone please help us?

How To Get An RSS Feed Into Flash
Hey all,

I would like to get an RSS feed into a Flash piece that I am building. I would like to only display the title of the feed(that will be a link) and when the user clicks on the title(link), it will link them to the site with the provided article. I would like title(link) to update as the feed is updated.

Does anyone know how to do this or where to start?

Thanks.

RSS XML Feed And Flash
Can you format the text of an RSS XML feed like this one:

http://www.washingtonpost.com/wp-srv...sheadlines.xml

I can connect to this file and display its content in a text field, but do you know how to format the content in terms of each node (i.e: title= Arial, 12, 0x000000 ; link= Arial, 10, 0x0000CC, undeline ; description= Times New Roman, 10, 0x000000)

Any advice will help.

Thanks.

XML Feed To Flash
Hello Forum,
I'm trying to parse a RSS which comes from a page to Flash. But Im having some trouble, I wonder if someone could help me with some input/hits/tips whatever to take out links to picture, texts and attributes from the RSS so I can make flash with dynamic pictures.

I found two components but I cant make them work.
http://code.google.com/p/as3corelib/
http://code.google.com/p/as3syndicationlib/

Also this tutorial but it seems confusing. Can anyone help so I can get on with some articles, tutorials or something.? http://www.ploem.be/blog/?page_id=105

the RSS is here:








Attach Code

<?xml version="1.0" encoding="iso-8859-1"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<atom:link rel="self" type="application/rss+xml" href="http://domain.dk/shop/htc-14c1.rss" />
<title>shop11(HTC)</title>
<link>/shop/htc-14c1.html</link>
<description></description>
<item>
<title>Productname Alpha</title>
<link>domain.dk/shop/productname-alpha-175p.html</link>
<guid isPermaLink="true">domain.dk/shop/productname-alpha-175p.html</guid>
<description>
<![CDATA[
<a href="domain.dk/shop/productname-alpha-175p.html"><img border="0" src="domain.dk/images/produktbilleder/foto-paa-vej-t.jpg" /></a><br /><br />Vi pr&#230;senterer iPhone 3G.Igen.<br />
<br />Pris: 150,00 DKK
]]>
</description>
<pubDate>Wed, 14 Jan 2009 16:53:46 +0200</pubDate>
</item>
<item>
<title>Productname Beta</title>
<link> domain.dk/shop/productname-beta-186p.html</link>
<guid isPermaLink="true"> domain.dk/shop/productname-beta-186p.html</guid>
<description>
<![CDATA[
<a href="domain.dk/shop/productname-beta-186p.html"><img border="0" src="domain.dk/images/produktbilleder/foto-paa-vej-t.jpg" /></a><br /><br />abitur magna. Donec at eros. Sed porta, <br />
<br />Pris: 1.562,50 DKK
]]>
</description>
<pubDate>Wed, 14 Jan 2009 14:50:40 +0200</pubDate>
</item>
<item>
<title>Productname Charlie</title>
<link>domain.dk/shop/productname-charlie-187p.html</link>
<guid isPermaLink="true"> domain.dk/shop/productname-charlie-187p.html</guid>
<description>
<![CDATA[
<a href="domain.dk/shop/productname-charlie-187p.html"><img border="0" src=" domain.dk/images/produktbilleder/foto-paa-vej-t.jpg" /></a><br /><br />m. Curabitur magna. Donec at eros. Sed porta, <br />
<br />Pris: 1.250,00 DKK
]]>
</description>
<pubDate>Wed, 14 Jan 2009 14:50:45 +0200</pubDate>
</item>
<item>
<title>Productname Delta</title>
<link>domain.dk/shop/productname-delta-188p.html</link>
<guid isPermaLink="true">domain.dk/shop/productname-delta-188p.html</guid>
<description>
<![CDATA[
<a href="domain.dk/shop/productname-delta-188p.html"><img border="0" src="domain.dk/images/produktbilleder/foto-paa-vej-t.jpg" /></a><br /><br />c at eros. Sed porta, sapien feugiat dapibus ornare,<br />
<br />Pris: 1.250,00 DKK
]]>
</description>
<pubDate>Wed, 14 Jan 2009 14:50:50 +0200</pubDate>
</item>
</channel>
</rss>

RSS Feed In FLASH?
is it possible to get an rss feed into flash? i guess like a dynamic text box or something? i couldn't find any info about his on kirupa...

bry

Rss Feed In Flash
Is it possible to add a live rss sports feed to flash?
How would i get information on how to go about doing it?
What would i need?

thank you for any help..

RSS Feed In Flash Websites?
Hi Everyone,

I am designing a website in Flash and was wondering if it is possible to make an RSS Feed on the site. (This would make it easier for users to check for updates without actually having to log onto the site each time)

Thanks,

Mr_Welfare

[F8] Flash Blogger Feed?
so i have a rss flash reader and it`s working and all.
but i need to make one for blogger. it generates atom.xml file.
how can I do this? where to start?

thank you.

External XML Feed Into Flash
Hi,
I would like to display some parts of the Last.Fm feeds (track names, album pictures) in my Flash movie. I have read some tutorials, but it is not fully clear to me...

So is it possible with Flash 8 and any simple guide ?

Thanks
Peter

External RSS Feed In Flash
Hello

I want to display the feed from my blogspot blog in my Flash site. It works in the deve environment, but when I put it online, I just keep getting load failed.

Is it possible to display external (not on same server) feeds in Flash? If so, could anyone please tell me how I get around that little point? Would be greatly appreciated.

Thank you!!

Display Url Feed Into Flash.swf
Can something please tell me how to load a url (rss) into a flash swf?

note: rss is a straight url. I need to fit it into a 216w x 273h frame within flash.

Any help would be great!

Flash Slideshow + Xml Feed
Hello,

I want to know how to create a flash banner with an external xml file that contains all the information about the images, also the images would have links to different urls. If you have a link to a tutorial, that would be great!

Thank you,

RSS Feed In Flash Site
I am a relatively new Flash user. I am using MX 04. I want to have an RSS Newsfeed to my site and the only way I have seen is by using Data Connection Wizzard 1.0 and DataGrid Column Editor 1.0.

These do not work with my version (MX 04) Has anybody used these Extensions and are they pretty simple to use? I will upgrade if so. Looking for a reason!

Flash Loading From An RSS Feed
I am trying to an RSS feed into a Flash file. Right now, I have the file dependent on a XML file that is not the RSS Feed. The RSS Feed I am trying to load is located here: Jobs RSS Feed

The RSS Feed automated via php and MySQL.

When I try to change my code to work with the RSS feed, I can't get down to <item>. I thought <item> would just be the 9th childnode. When I try that I get a "null" return.

Here is the action script that I have written to put from an XML file that is populated by hand. What do I need to do to change it?








Attach Code

function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;
caption = [];
url = [];
total = xmlNode.childNodes.length;
for (i=0; i<total; i++) {
caption[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
url[i] = xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;
}
first_item();
} else {
content = "Visit IRE's Job Center";
}
}



xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("jobs.xml?blarg="+new Date().getTime());
//
function first_item() {
delay = 4000;
p = 0;
display(p);
p++;
}
function timer() {
myInterval = setInterval(ticker, delay);
function ticker() {
clearInterval(myInterval);
if (p == total) {
p = 0;
}
fadeout();
}
}
function display(pos) {
over = new TextFormat();
over.underline = true;
//
out = new TextFormat();
out.underline = false;
//
newsMC.newsText._alpha = 100;
newsMC.newsText.text = caption[pos];
newsMC.onRelease = function() {
getURL(url[pos], "_self");
};
newsMC.onRollOver = function() {
this.newsText.setTextFormat(over);
};
newsMC.onRollOut = function() {
this.newsText.setTextFormat(out);
};
timer();
}
function fadeout() {
this.onEnterFrame = function() {
if (newsMC.newsText._alpha>=0) {
newsMC.newsText._alpha -= 5;
} else {
display(p);
p++;
delete this.onEnterFrame;
}
};
}

Loading Rss Feed Into Flash
I want to load an RSS feed into flash so it is selectable if that is possible

thanks in advance

Mike

Flash + Xml, Simple Rss Feed
So , here's the deal

I foud this tutorial how to make flash read xml file and display it in dynamic text box. So my plan is to make app that connects to online .xml, reads it and displays it in my dynamic tex box. Txt is solved, including filtering, and all I need to be happy is to be able to add images, from that same xml file. So whenever wanted text appears I would like a little image to appear (on the right), depending on text.

Code (xml)

Code for loading xml file

var xmlLoader:URLLoader = new URLLoader();
var xmlData:XML = new XML();

xmlLoader.addEventListener(Event.COMPLETE, LoadXML);

xmlLoader.load(new URLRequest("

Flash MX XML News Feed (PLEASE HELP)
I am new to all of this, so please bear with me!
I have just got a copy of flash MX, and have been told that it can import and mess around with xml from any source.
I need to get the xml from this source:
http://p.moreover.com/cgi-local/page?c=UK%20news&o=xml
which is in this kind of format:
- <moreovernews>
- <article id="_130300896">
<url>http://c.moreover.com/click/here.pl?x130300896</url>
<headline_text>Labour chief whip calls in Short</headline_text>
<source>BBC</source>
<media_type>text</media_type>
<cluster>moreover...</cluster>
<tagline />
<document_url>http://news.bbc.co.uk</document_url>
<harvest_time>Mar 4 2004 1:04PM</harvest_time>
<access_registration />
<access_status />
</article>
I need to take out the 'headline_text', and 'document_url' sections, and put them into a horizontal scrolling bar across the bottom of the page, with the text scrolling across the bottom, and when the mouse is put over it, the hyperlink accessible.
Any help that i can get would be greatly appreciated, becasue i am really, really struggling with this at the moment. I don't really even know where to start.
With thanks,
Matthew King

RSS News Feed Into Flash - Help ()
Hi all,

I am currently trying to load an RSS news feed into flash. I have managed to get the feed to display in a dynamic text box, but I would ideally like to just display the news headlines and descriptions.

Here is the RSS news feed I would like to use: http://newsrss.bbc.co.uk/rss/newsonl...t_page/rss.xml

Can anyone please, please, please help in providing a script for how to load the feed and display the headlines and descriptions only?

I would really appreciate any help you can provide in this. Oh. by the way - the reason I am trying to load this is for part of a screensaver / standalone news program. If anyone can help to display these items, I will willingly display a credit to yourself, as well as your logo / website link etc etc.

Kind Regards,

Michael Wood

Syndicate Feed Into Flash
Hi,

Can I Syndicate my blog feed: http://obed1983.blogspot.com/atom.xml so it can be displayed in Flash?

If this is possible, how can I do it?

Thanks and God Bless

Obed Brefo

Reading An RSS Feed In Flash AS2.0
I'm trying to read my most recent post from my blog into my flash movie. It seems to work, but sometimes it's delayed, and sometimes it doesn't load at all. Here is my code. If someone can take a look and give me some direction I would be very helpful.

P.S. I'm kind of a newbie to flash still, so my code is probably very messy/inefficient, if anybody has any tips overall, that would be great!


Code:
//this will contain all the event details from the xml file
var titleArray:Array = new Array();
var linkArray:Array = new Array();
var descriptArray:Array = new Array();
var dateArray:Array = new Array();
var rssTotal:Number;

//create the XML object and populate with event details
var rssXML:XML = new XML();
rssXML.ignoreWhite = true;
var rssRootNode:XMLNode;

rssXML.onLoad = function(success:Boolean) {
if (success) {
rssRootNode = this.firstChild.firstChild;
rssTotal = rssRootNode.childNodes.length;

titleArray.push(rssRootNode.childNodes[6].childNodes[0].firstChild.nodeValue);
linkArray.push(rssRootNode.childNodes[6].childNodes[1].firstChild.nodeValue);
dateArray.push(rssRootNode.childNodes[6].childNodes[3].firstChild.nodeValue);
descriptArray.push(rssRootNode.childNodes[6].childNodes[7].firstChild.nodeValue);

populateBlog();
} else {
trace("error loading xml file");
}
};
rssXML.load("http://mav-media.com/blog/?feed=rss2");

function populateBlog():Void {
oldString = dateArray[0];
oldString = oldString.split("2008")[0];

content_mc.body_mc.blog_mc.title_txt.htmlText = "<b>"+titleArray[0]+"</b>";
content_mc.body_mc.blog_mc.desc_txt.htmlText = descriptArray[0].truncate(340);
content_mc.body_mc.blog_mc.date_txt.htmlText = "<b>"+oldString+" 2008</b>";
}

content_mc.body_mc.preloader_mc.onEnterFrame = function() {
content_mc.body_mc.blog_mc._alpha = 0;
var todo:Number = rssXML.getBytesTotal();
var done:Number = rssXML.getBytesLoaded();

if (todo == done) {
trace("XML LOADED");
TweenFilterLite.to(content_mc.body_mc.blog_mc,.3,{_alpha:100});
delete this.onEnterFrame;
this._visible = false;

} else {
if (todo) {

content_mc.body_mc.preloader_mc.mask_mc._xscale = (Math.round(100/todo*done));
trace(content_mc.body_mc.preloader_mc.mask_mc._xscale);
}
}
};

Flash MX XML News Feed (PLEASE HELP)
I am new to all of this, so please bear with me!
I have just got a copy of flash MX, and have been told that it can import and mess around with xml from any source.
I need to get the xml from this source:
http://p.moreover.com/cgi-local/page?c=UK%20news&o=xml
which is in this kind of format:
- <moreovernews>
- <article id="_130300896">
<url>http://c.moreover.com/click/here.pl?x130300896</url>
<headline_text>Labour chief whip calls in Short</headline_text>
<source>BBC</source>
<media_type>text</media_type>
<cluster>moreover...</cluster>
<tagline />
<document_url>http://news.bbc.co.uk</document_url>
<harvest_time>Mar 4 2004 1:04PM</harvest_time>
<access_registration />
<access_status />
</article>
I need to take out the 'headline_text', and 'document_url' sections, and put them into a horizontal scrolling bar across the bottom of the page, with the text scrolling across the bottom, and when the mouse is put over it, the hyperlink accessible.
Any help that i can get would be greatly appreciated, becasue i am really, really struggling with this at the moment. I don't really even know where to start.
With thanks,
Matthew King

RSS News Feed Into Flash - Help ()
Hi all,

I am currently trying to load an RSS news feed into flash. I have managed to get the feed to display in a dynamic text box, but I would ideally like to just display the news headlines and descriptions.

Here is the RSS news feed I would like to use: http://newsrss.bbc.co.uk/rss/newsonl...t_page/rss.xml

Can anyone please, please, please help in providing a script for how to load the feed and display the headlines and descriptions only?

I would really appreciate any help you can provide in this. Oh. by the way - the reason I am trying to load this is for part of a screensaver / standalone news program. If anyone can help to display these items, I will willingly display a credit to yourself, as well as your logo / website link etc etc.

Kind Regards,

Michael Wood

Syndicate Feed Into Flash
Hi,

Can I Syndicate my blog feed: http://obed1983.blogspot.com/atom.xml so it can be displayed in Flash?

If this is possible, how can I do it?

Thanks and God Bless

Obed Brefo

Video Feed In Flash
Hi,

Is there any way to display a live camera feed in Flash?

I'm basically making a project, where I want to be able to use a control panel to view a live feed of a core sample. I'd like to be able to manipulate it - zoom in and out, move it from side to side and up and down.

I would really appreciate it if anyone could help me.

Thanks

How To Display Rss Xml Feed Using Flash?
Hi all . I want to create a page that it pulls dynamic xml data from a remote server (in this case it is from radio station rss that inncludes artist name,song name and ...) and display it page. Here is example of remote rss xml:


CODE- <playlist>
- <song>
  <artist>Artisname1</artist>
  <name>SongName1</name>
  <image>./song_images/artistpic1.jpg</image>
  <rating>3</rating>
  <songid>2624</songid>
  <totalvotes>35</totalvotes>
  </song>
- <song>
  <artist>Artistname2</artist>
  <name>SongName2</name>
  <image>./song_images/artistpic2.jpg</image>
  <rating>3.5</rating>
  <songid>4795</songid>
  <totalvotes>14</totalvotes>
  </song>

</playlist>

Blogger Flash Feed?
so i have a rss flash reader and it`s working and all.
but i need to make one for blogger. it generates atom.xml file.
how can I do this? where to start?

thank you.

Flash Movie Loads XML RSS Feed.
Greetings.

I had an idea of having a program like Blosxom create a database for my journal which I would then output into xml RSS feeds. Then I believe I can load them into my Flash movie into various text fields.

Here's my problem:
For my "main entry section" I want the text to show 1 page at a time. A user would click a next button to load the next page. Now if I always and only wrote 2 pages then I could have the flash button load load up page 2 (on release or whatever) replacing page 1. But what if I write only 1 page, or 4? The Flash movie doesn't know how many pages I wrote unless I changed the movie everyday so that the "next" button would load how ever many pages of content there are on any given day.

The only thing I can think of, when I have only 1 page, is when the Flash button calls for an xml page that isn't there (page2) in such case there is no load and the text field remains as is (page 1). If I have multiple pages the flash button will keep loading the next page in continuous succession(page1, page2, etc. until there are no more pages at which the last page remains in the text field.

Am I making any sense here? Somehow I want to use a Blog-program to database my journal, output it in xml, have my Flash movie load up Title, date, entry, archive, etc. into various text fields and for everything to go set size page to set size page no scrollbar.

Any ideas?
Thanks.
Holiday

How To Make A Flash XML/RSS Feed Reader?
How can I make a Flash XML/RSS feed reader?
I have much knowledge of flash but never got to this subject so you may use difficult words
I only want a basic one but I want one that works with this feed:
http://volkskrant.nl/rss/voorpagina.rss


Thanks!
- Morku a.k.a Altera

Creating An RSS Marquee Feed For Flash MX Pro
I need to create an RSS feed that marquees' at the bottom of my screen. I have never attempted such a thing and was wondering the easiest way to go about it. I have no access to any server side scripting on the server its being run off of. Thanks!,
Mike

Flash Banner With XML Feed That Updates?
Im running flash CS3 im wondering if its a good idea to make a banner for a website promoting my photography... but have it be a flash banner with an xml feed so i can just update the banner with new pictures without having to touch the flash banner so i can deploy the banner to other websites but control the back end easily without recompiling the flash file?

or just keep it a simple animated GIF and just changed the source file?

which is easier.. plus do flash banners has problems displaying vs an animated gif?

i know this is a n00b question so please forgive my ignorance

thanks
Jacob
http://www.jacobthephotographer.com

Embedding An Rss Feed Into A Flash Movie?
Hi folks,
I have a flash website I have purchased from template monster and I now want to embed my Livejournal rss feed into the movie? Is there a way of doing this? I can do it using xhtml but am a little clueless on how to do this in flash, I am using Flash 8 and also have Flash 2004 on a different machine so if either version does it easier I can use which ever one,

Thanks for looking!

Streaming Audio Feed Through Flash
hiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii,
i need to pick up an audio feed streaming from a URL and play it in the flash player.. any ideas how??

Problem With Loading Rss Feed In Flash
I wrote the following simple code to get started with loading rss feed:

var document = new XML();
document.onload = myLoadHandler;
document.load("

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
quote:
var my_xml = new XML();
my_xml.onLoad = function(success){

if (success){

trace(this);

}

}
my_xml.load("http ://www .my site.com/rss.xml");

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!

Loading Streaming Feed Into Flash
I'd like to load a webcam feed like this link into Flash:
http://218.24.161.254/control/faststream.jpg?stream=full&fps=12&rand=393984

Could any one suggest a place to look for answer?

I tried to load the jpg by code. But I'm not sure how I deal with the string, "stream=full&fps=12&rand=393984" after the question mark in the web address bar.

thanks

Loading Streaming Feed Into Flash
I'd like to load a webcam feed like this link into Flash:
http://218.24.161.254/control/faststream.jpg?stream=full&fps=12&rand=393984

Could any one suggest a place to look for answer?

I tried to load the jpg by code. But I'm not sure how I deal with the string, "stream=full&fps=12&rand=393984" after the question mark in the web address bar.

thanks

External XML-RSS Feed In Flash: Problem With AS
Hi all,

I'm moderately advanced in regular Flash (without the AS), but beginner (*very* basic knowledge) of AS.

I've made a Flash ad-banner. I have a dynamic texfield into which I loaded a external RSS-feed from a Dutch newspaper-website. I've searched and read and came up with a basic AS to load the first 8 titles. So I know how to do that now. And it works.

BUT: now I need several thing that I've spent 3 days searching for, but haven't found yet, in a way I can understand it anyway...

- I need the titles displayed to become clickable links each. They need to dynamicly load the suiting url from the xml-file.
Example of 1 item from xml:


Code:
<item>
<title>'Bezuiniging maakt gedetineerden agressief'
<description>
HILVERSUM (ANP) - Door bezuinigingen van het kabinet op het gevangeniswezen blijven gedetineerden te lang in hun cel zitten, waardoor de kans op agressie en op escalaties toeneemt. Dat stelde de voormalig woordvoerder van de Vereniging van Gevangenisdirecteuren (VDPI), P. Scheffelaar Klots, vrijdag.
</description>
<link>http://spitsnet.nl/anp.php?rid=16&id=364427
<category>Binnenland
<author/>
<pubDate>Fri, 13 May 2005 20:43:28 GMT
</item>
I've loaded the nodevalue of the <titel> child, but that text should be clickable and have the url displayed in the <link> child.
Can't figure out how to write the AS so the corresponding url loads to the title.

- Problem 2: I want to style the output links. I know about "Render text as HTML" button , but I don't know what code to add in the AS to control font size and color.
I need to understand how to do this so I can maybe add the corresponding <description> underneath the title/link for another (larger) banner, where the link is bold/red/12pt and the description underneath is regular/black/10 pt, for example.

Last (sorry that it's too much, just see what part you can help me with here...): I chose 8 item titles to be displayed for this banner, after that the swf loops. Problem is, the external rss-feed sometimes has, let's say 2 items (mostly late at night). My banner then displays these 2 titles, and scrools -of course- the whole textfield like it normally would, but it's blank space underneath the 2 items. I've saved the file for Flash Player 6, so the space will be blank. If I save it for 7, it displays the text 'undefined' for the last 6 items (which aren't there in the xml at that moment). Any solutions?

Final notes: I know my AS is childish and too long, I know there are ways to shorten the path to the nodevalues, but I've only just learned this and I'm not sure how to do it.

I so hope anyone of you can get me started again!! Thanks in advance!

NB: for the ultimate version there's graphics etc, I stripped this to the bare essentials for this forum. The ultimate version refers to a proxy.php to be able to load the external rss from the other server. For now, it refers to an example xml on the same server (so no proxy).

Link to banner online

Link to local example xml-file

Link to MX version of FLA (hope it works)

I can also post the relevant AS if more conveniant. Thanks!

Formatting An RSS Feed Date For Flash
I'm attempting to make an RSS feed for my new site's news, and i've looked online at adding a date stamp but i guess you have to make a new namespace or whatever and it confuses me to shambles when i try to read all that. so i have my current rss file as so:


HTML Code:
<rss version="2.0">
<channel>

<title>reintroducing.com News</title>
<link>http://www.reintroducing.com</link>
<description>The news from the portfolio of Matthew Przybylski.</description>
<copyright>Copyright 2005, Matt Przybylski</copyright>

<item>
<title>Test Post 1</title>
<link>http://www.reintroducing.com</link>
<description>I updated my portfolio. Check it out!</description>
<pubDate>Sun, 26 Jun 2005 12:16:00 GMT</pubDate>
</item>

</channel>
</rss>
Anyway, this isn't very friendly to read the date, as seen in the <item> tag. i need to output the date to flash in the form of 6-26-05. how would i go about doing that from the pubDate in the item?

Live Feed From A Site Into Flash?
Hi chaps,

i'm just wondering if this is do-able (i can't try it 'till i get home)

i'd like to have a 'latest-virus info' feed display in flash

i imagine i could maybe set up a plain html page with the feed and perhaps pipe the contents of the textbox into a php variable, which i could then pick up from flash?

Flash Rss Reader From External Feed
i need to build a headline crawler in flash that pulls the data from an external website's rss feed.

the farthest i've gotten is a script i found that will trace the headlines to the output window, but i don't know how to have the variables display in the dynamic text box:

var My_Data:XML = new XML();
My_Data.ignoreWhite = true;
My_Data.onLoad = function(success) {
if(success) {
trace(this);
}
else{
trace("My_Data failed");
}
};


//dataRequest = new LoadVars();
dataRequest.dataURL = "http://feeds.chicagotribune.com/chicagotribune/news/";


any advice would be greatly appreciated.

Accessing RSS Feed From Local Flash Content
HI,

I have made a flash screensaver (Flash 8 but exported as F6/AS1) which loads in an external RSS feed to display some latest news. I did this at work and tested it and it worked on both local and remote feeds but testing it at home the remote feeds do not load, both in the screensaver and also testing in the standalone swf.

here is the code:
code:
// http://www.webreference.com/xml/column82/index.html
// declaring variables
var channelTag = "channel";
var titleTag = "title";
var descTag = "description";
var linkTag = "link";
var itemTag = "item";
/*
xmlDoc : The document to parse. It must be an instance of an Actionscript's XML object.
tagname : The tagname of the elements we want to find. Should be a String.
xmlObjArray : An Array with XML objects that is populated and returned. If this argument is set to null this array is created
inside the method and returns an array of XML objects.
*/
function getElementsByTagName (xmlDoc, tagname, xmlObjArray)
{
var Nodes = null;
//First we assign the XML objects to a new array
if (xmlObjArray == null)
{
Nodes = new Array ();
}
else
{
Nodes = xmlObjArray;
}
if (xmlDoc.hasChildNodes ())
{
for (var i = 0; i < xmlDoc.childNodes.length; i ++)
{
if ((xmlDoc.childNodes [i].nodeType == 1) && (xmlDoc.childNodes [i].nodeName == tagname))
{
Nodes.push (xmlDoc.childNodes [i]);
}
getElementsByTagName (xmlDoc.childNodes [i] , tagname, Nodes);
}
}
return Nodes;
}

/*
myXML.onLoad(success);
Method; invoked by the Flash Player when an XML document is received from the server. If the XML document is received successfully, the success
argument is true. If the document was not received, or if an error occurred in receiving the response from the server, the success argument is false.
*/
function myLoadHandler (success)
{
// document.status == 0 (No error; parse completed successfully)
if (success && document.status == 0)
{
// retrieving the channel element, get the content of the title
// tag and setting the textfield named "channeltitle" in our Movie
var channel = getElementsByTagName (document, channelTag, null)[0];
_root.channeltitle = getTitleText (getFirstTitleElement (channel));
// retrieving all items from the rss file as an array
var itemsArr = getElementsByTagname (document, itemTag, null);
// this the y-position for the first entry generated from items
var yPos = 0;
//iterating over the array
for (var i = 0; i <itemsArr.length; i ++)
//for (var i = 0; i <6; i ++)
{
//insert an instance of the symbol(arg1 = linkage name in lib)(arg2 = instanceName)(arg3 = layerNum)
_root.loaderMC.attachMovie ("itemtemplate", "clip" + i, i + 10);
//_root.attachMovie ("itemtemplate", "clip" + i, i + 10);
with (eval ("loaderMC.clip" +i))
//with (eval ("clip" + i))
{
//setting the textfield of the new movie
textDesc = getTitleText (getDescElement(itemsArr [i]));
textTitle = getTitleText (getFirstTitleElement(itemsArr [i]));
textLink = getLinkText (getLinkElement(itemsArr [i]));
// place the movie
_y = yPos;

//set the position for the next instance of the symbol
yPos += _height;
}
}
}
else
{
// error msg to channeltitle var
_level0.channeltitle = "rss feed failed";
}
}

//returns the node value of the first child of a node,assumption is: first child is a textnode and has a value
// basically this strips text from <title>RSS Feed</title> so it becomes RSS Feed
function getTitleText (titleElement)
{
return titleElement.firstChild.nodeValue;
}

function getLinkText (titleElement)
{
return '<a href="'+titleElement.firstChild.nodeValue+'">'+tit leElement.firstChild.nodeValue+'</a>';
}

//returns the first node including tag title of a xml object e.g <title>Sitemakers RSS Feed</title>
function getFirstTitleElement (xmlObjArray)
{
return getElementsByTagName (xmlObjArray, titleTag, null)[0];
}

function getDescElement (xmlObjArray)
{
return getElementsByTagName (xmlObjArray, descTag, null)[0];
}

function getLinkElement (xmlObjArray)
{
return getElementsByTagName (xmlObjArray, linkTag, null)[0];
}

// FIRST a new empty XML object is created and gets a load handler assigned
var document = new XML ();
//document.onload = myLoadHandler;
document.load ("http://www.mysite.com/rss/index.rss");
document.load ("index.rss");


Within Flash itself i get this error when publishing the file:
"Error opening URL "http://www.mysite.com/rss/index.rss"
but the file is definitely there.

any ideas?

Thanks.

Tutorial: Creating An Feed-Reader With Flash 8
You can find the tutorial here: http://www.cmd.tech.nhl.nl/users/groot406/weblog/?p=11
It includes some nice classes for loading and parsing XML and RSS.

It is my first tutorial, please leave a reply to tell me if you like it or not.

New Line Feed Or Carriage Return In FLash
I want to separate a long string into several paragraphs and want to know what is the syntax to do the job.

I could use word wrap in textfield but since I get data from database, long string looks ugly. It also could be done in html code but i dun save html in database

E.g. in Visual Basic you use this; "a very long string" & vbcrlf & "a very long string"

Could some experts explain how to do the same in FLASH?

Accessing RSS Feed From Local Flash Content
HI,

I have made a flash screensaver (Flash 8 but exported as F6/AS1) which loads in an external RSS feed to display some latest news. I did this at work and tested it and it worked on both local and remote feeds but testing it at home the remote feeds do not load, both in the screensaver and also testing in the standalone swf.

here is the code:

ActionScript Code:
// [url]http://www.webreference.com/xml/column82/index.html[/url]
// declaring variables
var channelTag = "channel";
var titleTag = "title";
var descTag = "description";
var linkTag = "link";
var itemTag = "item";
/*
xmlDoc : The document to parse. It must be an instance of an Actionscript's XML object.
tagname : The tagname of the elements we want to find. Should be a String.
xmlObjArray : An Array with XML objects that is populated and returned. If this argument is set to null this array is created
inside the method and returns an array of XML objects.
*/
function getElementsByTagName (xmlDoc, tagname, xmlObjArray)
{
    var Nodes = null;
    //First we assign the XML objects to a new array
    if (xmlObjArray == null)
    {
        Nodes = new Array ();
    }
    else
    {
        Nodes = xmlObjArray;
    }
    if (xmlDoc.hasChildNodes ())
    {
        for (var i = 0; i < xmlDoc.childNodes.length; i ++)
        {
            if ((xmlDoc.childNodes [i].nodeType == 1) && (xmlDoc.childNodes [i].nodeName == tagname))
            {
                Nodes.push (xmlDoc.childNodes [i]);
            }
            getElementsByTagName (xmlDoc.childNodes [i] , tagname, Nodes);
        }
    }
    return Nodes;
}

/*
myXML.onLoad(success);
Method; invoked by the Flash Player when an XML document is received from the server. If the XML document is received successfully, the success
argument is true. If the document was not received, or if an error occurred in receiving the response from the server, the success argument is false.
*/
function myLoadHandler (success)
{
    // document.status == 0 (No error; parse completed successfully)
    if (success && document.status == 0)
    {
        // retrieving the channel element, get the content of the title
        // tag and setting the textfield named "channeltitle" in our Movie
        var channel = getElementsByTagName (document, channelTag, null)[0];
        _root.channeltitle = getTitleText (getFirstTitleElement (channel));
        // retrieving all items from the rss file as an array
        var itemsArr = getElementsByTagname (document, itemTag, null);
        // this the y-position for the first entry generated from items
        var yPos = 0;
        //iterating over the array
        for (var i = 0; i <itemsArr.length; i ++)
        //for (var i = 0; i <6; i ++)
        {
            //insert an instance of the symbol(arg1 = linkage name in lib)(arg2 = instanceName)(arg3 = layerNum)
            _root.loaderMC.attachMovie ("itemtemplate", "clip" + i, i + 10);
            //_root.attachMovie ("itemtemplate", "clip" + i, i + 10);
            with (eval ("loaderMC.clip" +i))
            //with (eval ("clip" + i))
            {
                //setting the textfield of the new movie
                textDesc = getTitleText (getDescElement(itemsArr [i]));
                textTitle = getTitleText (getFirstTitleElement(itemsArr [i]));
                textLink = getLinkText (getLinkElement(itemsArr [i]));
                // place the movie
                _y = yPos;
               
                //set the position for the next instance of the symbol
                yPos += _height;
            }
        }
    }
    else
    {
        // error msg to channeltitle var
        _level0.channeltitle = "rss feed failed";
    }
}

//returns the node value of the first child of a node,assumption is: first child is a textnode and has a value
// basically this strips text from <title>RSS Feed</title> so it becomes RSS Feed
function getTitleText (titleElement)
{
    return titleElement.firstChild.nodeValue;
}

function getLinkText (titleElement)
{
    return '<a href="'+titleElement.firstChild.nodeValue+'">'+titleElement.firstChild.nodeValue+'</a>';
}

//returns the first node including tag title of a xml object e.g <title>Sitemakers RSS Feed</title>
function getFirstTitleElement (xmlObjArray)
{
    return getElementsByTagName (xmlObjArray, titleTag, null)[0];
}

function getDescElement (xmlObjArray)
{
    return getElementsByTagName (xmlObjArray, descTag, null)[0];
}

function getLinkElement (xmlObjArray)
{
    return getElementsByTagName (xmlObjArray, linkTag, null)[0];
}

// FIRST a new empty XML object is created and gets a load handler assigned
var document = new XML ();
//document.onload = myLoadHandler;
document.load ("http://www.mysite.com/rss/index.rss");
document.load ("index.rss");

Within Flash itself i get this error when publishing the file:
"Error opening URL "http://www.mysite.com/rss/index.rss"
but the file is definitely there.

any ideas?

Thanks.

Flash Line Feed Email Issue
Hi, can anyone help me with a code for sending an email from flash.
I have created an email to send 5 x input text fields to an email address.

The issue I am having is the text comes through on one line instead of creating separate lines to deliver the text to the mail recipient - when placed live on the server.

I have attached the code i have used and it is working within the flash document and when exported is working fine.

Just to eliminate these ideas i have already tried the codes listed below.

If any one can help me to figure this out I would greatly appreciate it.

Could it be a problem with the server?

Cheers,
Kirst











Attach Code

on (release) {
var sendto = "me@myemail.com.au";

var strName = "User Name: = " + Name + chr(10);
var strComputer = "Computer Name: = " + Computer + chr(10);
var strDepartment = "Department: = " + Department + chr(10);
var strPhone = "Phone: = " + phone + chr(10);
var strDetails = "Details: = " + Details + chr(10);

var strMessage = strName + strComputer + strDepartment + strPhone + strDetails;

getURL("mailto:" + sendto + "?subject=Intranet - " + Details + "&body=" + strMessage);
}



also tried the following codes to try to separate the fields:


<
>


vbCrLf
Chr(10)
Chr(13)

Tutorial: Create An Feed-Reader With Flash 8
A very nice tutorial with some handy scripts to parse xml an rss files.. check it out at
http://www.cmd.tech.nhl.nl/users/groot406/weblog/?p=11
I hope you like it.

How To Create A Feed Back Form In Flash
Hi Friends,Can Any Body Help Me In Creating Contact Form In Flash?

How To Make Feed Back In Flash 8. Anybody Has Idea
How to make a submit or feed back form with actions in flash 8

Copyright © 2005-08 www.BigResource.com, All rights reserved