ActionScript 1/2 :: Load An Rss Feed Thru Xml In Flash 2.0?
May 25, 2010
I have never looked into RSS feeds before, I now have someone that wants Yahoo rss newsfeed embedded in his main.fla. I have an AS 2.0 rss newsreader he sent to me, knowing nothing about RSS I started to look around and eventually got to a point where I went to a Yahoo RSS feed and copied the source page and dropped it in the xml file that came with the feedreader. When saved, published and uploaded to the server the file displays the feed from yahoo fine, but it never update the stories. I would think this has to do with the xml as it is embedded in the page so it can't change so my question is how do I get an rss feed converted to xml to update???
I am trying to load a news feed in xml. It works fine when I run it in flash by clicking ctrl + enter but when I load the .swf in the browser or try to load the .html in the browser I get a Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation:
I have an rss feed where I can grab the image I am trying to get and it works. I can't load it into the loader from there.
[as] var xmlLoader:URLLoader = new URLLoader(); var xmlData:XML = new XML(); xmlLoader.addEventListener(Event.COMPLETE, LoadXML); xmlLoader.load(new URLRequest("[URL]")); [Code] .....
I am trying to parse a RSS feed and load the data into separate labels.
For example i want to pick up all the title values within each item of the RSS feed and place that in a designated label.
I am parsing the feed correctly but i am having trouble trying to load the data into the label's, i've tried using the below but the same Title value is entered for 9 out of the 10 labels[code]...
pull some simple text from an external website's RSS feed into a basic text box in a Flash movie. It would need to be in AS2 to fit with the website. The RSS feed is on a PHP page: [URL]
I understand I need to pull the content via an xml / php page under my own domain in order to get around the Flash security, but I still can't scrape together the right code for it to work.
I made this BlogFeed.swf file. Everything works just fine in Flash IDE. It loads the XML, renders it, displays fine and that's it: the world is filled with love and data.
The problem occurs when I try to use my swf online.
Here's the scenario:
SERVER A (Altervista) hosts the swf file, trying to read the RSS Feed from... SERVER B (my client's server) serves the RSS Feed of his blog
[ things I already tryed ]
1) I wrote a crossdomain.xml file (allowing SERVER B domain to access the swf), place it at the same level of the swf file on SERVER A;
2) Set System.security.allowInsecureDomain("*") in the flash file
3) checked on both servers the server-to-server permissions (Altervista lets you do this via its own control panel; the client's server needed me to email the support: did it and they allowed me to connect)
4) moved the swf on ANOTHER server, on which I am completely sure that server-to-server communications are allowed, since I already did something like that.
Nothing changes: always getting the damn HTTPStatus = 0 and no items are shown.
What I really don't understand is why it does work from Flash IDE connecting to SERVER B and it fails (with NO IOError and HTTPStatus = 0, so no debug hints at all...) when I use it in server-to-server mode.
setting up an RSS feed into my flash site. I've been trying to work with the code below, but when it displays the code includes all the HTML code of the RSS feed (ie image and link tags). I'd also like it to scroll.
Code (AS2):
Code: // create a new XML object var feed:XML = new XML();
I've created this code for an RSS Feed Widget I would like to post on a site. the Widget will pull info from various sites. The code is built on Adobe CS4. When testing I don not get any errors, however, it does not display any information either. Code: var widget //Widget; var rss; var textfield:TextField; addEventListener("widget-loaded",onWidgetLoaded); function onWidgetResize( evt:Event ):void [Code] .....
I'm trying to parse a RSS which comes from a page to Flash. But Im having some trouble, I wonder if someone could 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.[URL] Also this tutorial but it seems confusing. I can get on with some articles, tutorials or something.?[URL]
I am making a website that needs to read a RSS feed from a blog and then place the information into flash. I have gotten as far as getting the information into flash and viewing it. However I can't get the scrolling functions to work nor do anything else with the feed. The goal is to be able to format the feed in the way that it is online so that it is scrollable but only the most recent post on the feed. Do I have to change how the information is being used in flash to better manipulate it such as xml? Or is is something I've overlooked while using the rss feed code?
I'm using FlepStudio's RSS Flash widget to provide a feed from a blog. Whilst I have everything working properly i'm having problems customizing it. I want to alter the size of the feed titles and 'read more' text which is addressed in AS as title_txt. I have tried both changing the font settings in the main.fla and tweaking the variables for title_txt in the .as to no avail.
I'd like to know if you can stream someone's facebook feed in Flash. At the least, it seems you can stream an RSS feed in Flash (I'm not an advanced user, sorry if thats an obvious question), and since Facebook offers an RSS feed for each profile, I'd imagine I could stream that RSS feed.Is there a "standard" way to stream a Facebook feed in a full flash site? Is it possible at all?
I have been creating an rss feed list in flash using the following tutorialI get stuck when trying to make each list item clickable to source url. the Description log isn't needed - just a list item --> url
var rssLoader:URLLoader = new URLLoader(); var rssURL:URLRequest = new URLRequest("http://rssfeedurl");
I'm trying to read a rss feed for a Flash application. It works perfect locally but I get that security error live o n the web. I cannot obviously install a crossdomain file on this server because it's not mine.
I´m working in a rss reader for my website, that has already a rss channel created. I created this in a file that is called news.rss. So I made the interface of the reader in Flash, and then continue inserting a code. But when I try the swf, it just shows the title of my channel, but any of my news. [code]...
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:[code]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?
i have to put a news feed into a small flash app that i use as digital signage for my restaurant. I want to get some local news or maybe some sports news form sky sports.
What i need to know is what actual file i am looking for on the news site server, is it just a rss file or a xml file??Also i be able to automatically update the ticker when the news site updates their news??
I'm trying to use the NetConnection class to connect to a live video feed on an external server. I have it set up to start playing my video when the user clicks a Play button, however, this appears in my output every time I click the Play button:
ArgumentError: Error #2126: NetConnection object must be connected. at flash.net::NetStream/ctor() at flash.net::NetStream() at Over/connectLiveStream()[Over::frame2:31]
Here is the (I think relevant) code: if (playVid.label == "Play") { nc = new NetConnection(); nc.objectEncoding = flash.net.ObjectEncoding.AMF0; nc.connect("rtmp://my.rtmp.server:1935/live/"); nsPlay = new NetStream(nc); nsPlay.play("livestream.flv"); }
I'm creating website which needs video stream from surveillance camera implemented. Camera is GeoVision GV-FD120D 1.3Mpix LowLux IR 2.7-9mm and it is linked to server which I have full access to (I dont have direct access to camera)
I was playing around with settings on this cam and I managed to turn on RTSP protocol access for this camera. Then I used VLC (on server) to open network stream with address: [URL]Works!
Ideally I would like to show the video in player like jwplayer , however it does not support RTSP protocol, but RTMP instead.
So I guess I would need some kind of software on this server to:
1) transcode the video stream from RTSP -> RTMP
2) stream it out from server so I can connect to it with jwplayer later
I heard of Wowza media server but the budget is pretty tight for this project so would rather use free solution here.
I have a Flash Ad which makes use of a JSON feed. The Flash file is hosted within oubleClick Studio.The call works perfectly locally but when I upload it to DC Studio the load Event.COMPLETE does not file neither do any IOErrors which is leaving me with no feed and no errors!I have tried making use of the StudioLoader which is supplied by DC which returns that the file is an unrecognised format. Would it be that DC just wont read JSON at all?
how to call a feed from yahoo pipes into flash? here is the rss feed that yahoo says to reference to obtain the xml: [URL] whenever i try to call that, as if calling any other xml file, flash says the file cannot be opened.
I've made a few sites a few years ago with flash CS3/AS2 and using the TextArea as an output for xml content. that really sucked and looked terrible as it flashed white everytime it was loading (especially on slow connections). so I don't want to go that route again.sir!ok, so I have a banner that has 3 text elements per page (with various graphics per page behind the text) ...all text needs to be live as it is fed by 3 different languages. (referably the image link too)1. consistant big title across 8 pages2. sub-title that changes per page3. paragraph of text per sub-title4. the background imageEach of the 8 "slides" lasts about 6 seconds each (this part im fine with and sorted in AS2...but not AS3). On the top left are 8 numbered buttons that a user can click on to view whichever "slide" they may have missed or whatever. (this part i'm ok with....just the external text and formating are the issue)how would i go about setting this up via dynamic text with either XML or PHP in CS4/AS3? (using dynamic text fields, but so its nicely formated).
I have built a simple twitter feed flash app and it works just fine when accessed directly, but does not work when embedded into the page. I suspect that the answer might be simple, but I just can't find it.
[Code]...
I can't use JavaScript, because I want it to be embedded in my signature on a certain website, and obviously <script> tag is forbidden. EDIT: problem is solved, it's very embarrassing, but like in most cases it was a path error...
Is there a tool, any type of programming library, or a way to capture live feed of Flash video and save it? I don't want to capture the screen but rather like to capture the actual feed.