Rss Feeds in flash

I'm working with different flash movies for a client. she has several flash movies playing back to back as advertisement for different retailers. Now she wants me to add Rss Feeds for local weather on the flash movies. Now i never done this before and I'm not really that familiar with AS. I've also googled for the past hours and kept finding how to add Rss feeds to flash WEBSITES not MOVIES (.swf)  if anyone could help me out, that would be greatly apreaciated.
-T.Jin

Here's a link to a tutorial that should help you.  Also, a flash site is a swf file.
AS3 - RSS XML feed
http://www.gotoandlearn.com/play?id=64

Similar Messages

  • Intergrating RSS Feeds into Flash Builder 4...

    I am very new to Flash builder 4 and I want to make an application where the app user can read through all the RSS Feeds and get updates everytime their connected to the internet. I am making this for the BlackBerry Playbook if that makes a difference and also can it be really simple instructions like I said I'm very new to this.

    Ok, I think you might have your message title worded wrong. I think you want RSS feeds in a FLEX application, not Flash Builder 4 itself??
    I, myself, am trying to implement an RSS feed into my application but have other priorities unfortunately.
    The only bookmark I find in my list is this:
    http://insideria.com/2009/04/flex-101-consuming-a-simple-rs.html
    ^ That might help you get started. I cant find any other examples in my bookmarks, but if I do I'll post them here.
    OR, if I get my own code up and working (which should be within the next week hopefully), I'll post that up too. Cheers!

  • RSS Feed in Flash: is it possible?

    Can RSS Feeds be inserted into Flash?
    I would like to create an animation whose sole purpose is to scroll a feed (like CNN), and that would change the source feed every 10 minutes.
    Is this possible in Flash?

    But of course RSS Feeds are possible to load in Flash.
    You can load the RSS XML as an XML file and work with it that way.
    A couple of things to mention:
    1. You need to work with a crossdomain poilcy file if you are loading the RSS from a different domain than the SWF (IE - RSS is on feeds.mywebsite.com, and the SWF is on www.mywebsite.com)
    Look up how to work with XML files, and crossdomain policies (if necessary).

  • 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("
    http://www.nytimes.com/services/xml/rss/nyt/Business.xml");
    trace(document.status);
    trace(document.loaded);
    trace(success.toString());
    But the result I got is always this:
    0
    false
    undefined
    It is the same even for local xml files saved in the same
    directory as the flash file.
    Could someone please help me?
    Thanks so much~

    It's necessary to discard the white spaces.
    Set the ignoreWhite property to true.
    document.ignoreWhite = true;
    Regards,
    Erick Souza | ericksouza.com

  • RSS feeds to DMP4400G

    Hello,
    I have DMM 5.3 setup to manage up to 5 DMP4400G with 5.3 firmware.
    How do i setup the DMM to display/scroll  RSS feeds on the DMPs.
    Do i need to create XML files for this.
    I really new to Video
    Thanks for the anticipated support

    The DMM has a set up for this. If you are using the DMD, you can click on the RSS icon to set up a feed. Content will need to follow the RSS specs. You may also have to set a crossdomain policy for your feed, if you use the built-in functionality of the DMM. The reason is that the DMM renders all rss feeds in flash, and flash is restrictive in terms of what content it allows to be served out. A cross domain policy can be set by putting crossdomain.xml in your root folder of your web server. It should look something like this:
    <?xml version="1.0"?>
    http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">
    Good luck!
    -Michael

  • RSS Feeds display in Flash but not browser

    I have a Flash application that pulls an RSS feed and
    displays the top 5 titles and descriptions. Everything works fine
    when I test the application in Flash but when I try to publish the
    file I get the security msg in IE (To help protect your security,
    Internet Explorer has restricted this webpage from running scripts
    or ActiveX controls that could access your computer...blah blah).
    When I test in Firefox the movie clips containing the feeds
    simply don't appear (everything else does though). I'm using an
    external class file to parse the xml from the feeds and populate
    the movie clips with the content. Is there another way I should be
    doing it, or is there a publish setting I'm unaware of that will
    block external content from being displayed in the player?
    Any advice would be appreciated - thanks!

    sorry :(
    just figured some people would only check certain favorite parts of the forums
    public class MyApplet extends JApplet{
    JPanel myPanel = null;
    Graphics2D _gfx = null;
    init(){
    _gfx = (Graphics2D)myPanel.getGraphics();
    // The usual constructor, initializes / adds components
    private void restart(){
    drawThread = new DrawThread( gfx );
    _drawThread.start();
    private class ButtonListener implements ActionListener {
    public void actionPerformed(ActionEvent e)
    if( e.getActionCommand() == "Restart" ){
                        restart();
    public class DrawThread extends Thread{
    Graphics2D _gfx = null;
    public DrawThread( Graphics2D gfx ){
    _gfx = gfx;
    run(){
    // setColor()
    // drawString()
    // drawRect()
    // etc.
    // pretty straight forward. not sure what could be wrong...

  • Rss Feeds, Real Player Videos, and  flash player videos

    Hi all,
    Has anyone implemented Rss Feeds, Videos supported by real player, and flash videos on APEX application. Can anyone help me in this regard pls.
    With Regards,
    Sunil Bhatia

    Sunil
    Please search the forum before posting: [there is lots of information on RSS feeds|http://forums.oracle.com/forums/search.jspa?threadID=&q=rss&objID=f137&dateRange=all&userID=&numResults=15]. There's probably stuff about video too...
    Can anyone help me in this regard pls.In what regard? You have to be more specific.

  • Flash Deal Of The Day RSS Feed Reader

    I need to design a flash widget for MySpace that reads an rss feed and just shows the latest entry. I have seen flash rss feed widgets before but they show all the listings. I need it to check every day at 1:00am for the new one and load it automatically from a third party site (feedburner). I have some knowledge of flash but none in actionscript. I use the Creative Suite CS4. I am a fast learner so please explain in depth so I get the concept.
    Thank you in advance for any help.

    Ok I went through the tutorial in the video and everything seems to be working alright except I need to include links.
    Here is a portion of theXML file that is read:
    <?xml version="1.0" encoding="UTF-8"?>
    <?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><!-- generator="WordPress/2.7.1" --><rss version="0.92">
    <channel>
    <title>SizzleTwist</title>
    <link>http://blog.sizzletwist.com</link>
    <description>Sizzling Hot Prices on Lots of Cool Stuff!!</description>
    <lastBuildDate>Tue, 25 Aug 2009 13:47:54 +0000</lastBuildDate>
    <docs>http://backend.userland.com/rss092</docs>
    <language>en</language>
    <atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/Sizzletwist" type="application/rss+xml" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com" /><item>
      <title>Home Surveillance System: Mini Wireless Security Camera</title>
      <description>We invest a lot for our luxury to make life comfortable but while investing in luxury we often forget to protect it and make the life unsafe and unsecure.
    Homeland Security 2.4 Ghz Wireless Motion Activated Security Camera and Receiver is a perfect solution to bring the safest and most ...</description>
      <link>http://blog.sizzletwist.com/index.php/home-surveillance-system-mini-wireless-security-came ra/</link>
       </item>
    <item>
      <title>National Geographic Egana Watch Yellow Chrono NG712GKSY</title>
      <description>You are right; National Geographic did not manufacturer this watch. This high quality watch was made by Egana for National Geographic. Egana is the manufacturer of brands such as Pierre Cardin, PUMA, and Carrera. When I first saw these watches I was not only impressed by the looks but also pleasantly ...</description>
      <link>http://blog.sizzletwist.com/index.php/national-geographic-egana-watch-yellow-chrono-ng712g ksy/</link>
       </item>
    <item>
      <title>High Quality Light Weight Electric Blaster Sunglass</title>
      <description>Quality of sunglasses includes high quality of lens and frame. But the benefit gets multiplied if it is design by the well-known artist.
    The Electric Blaster Sunglasses Trans Brown Stripe with Bronze Lens has high quality of polycarbonate lens, 8-Base Grylamide frame and it is design by the well-known artist- Ozzie Wright.
    Pro-surfer, musician, and ...</description>
      <link>http://blog.sizzletwist.com/index.php/high-quality-light-weight-electric-blaster-sunglass/</link>
       </item>
    The AS code just loads the description when clicked on. I need it to include the link located in the link tags.
    Here is the As code:
    var loader:URLLoader = new URLLoader();
    loader.addEventListener(Event.COMPLETE, onLoaded);
    lb.addEventListener(Event.CHANGE, itemChange);
    function itemChange(e:Event):void
    ta.text = lb.selectedItem.data;
    var xml:XML;
    function onLoaded(e:Event):void
    xml = new XML(e.target.data);
    var il:XMLList = xml.channel.item;
    for(var i:uint=0; i<il.length(); i++)
      lb.addItem({data:il.description.text()[i],
          label:il.title.text()[i]});
    loader.load(new URLRequest("http://feeds2.feedburner.com/SizzleTwist"));
    I want it to display the description then the blog link. As I mentioned I am just beginning with action script so I have no iead what to do.

  • How can i embed a rss feed to a Flash site?

    I already made a rss feed. That means i have created a xml file with the rss elements and save it. This is the code:
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <rss version="2.0">
      <channel>
       <title>RSS Guia Facil</title>
       <link>
    http://es.geocities.com/rss_guia_facil.html
       </link>
       <description>Guia fácil y sencilla sobre el formato RSS</description>
       <item>
        <title>Qué es el RSS</title>
        <link>http://es.geocities.com/rss_guia_facil/que_es_rss.html</link>
        <description>Visita la Guía Fácil del RSS para saber qué es el
                    formato RSS</description>
       </item>
       <item>
        <title>Para qué sirve el RSSl</title>
        <link>
           http://es.geocities.com/rss_guia_facil/para_que_sirve_rss.html
        </link>
        <description>
        Visita la Guía Fácil del RSS y conoce para qué sirve el
        formato RSS
        </description>
       </item>
       <item>
        <title>Cómo se usa el RSS</title>
        <link>
           http://es.geocities.com/rss_guia_facil/como_se_usa_rss.html
        </link>
        <description>
        Visita la Guía Fácil del RSS para saber cómo usar el
        formato RSS
       </description>
      </item>
    </channel>
    </rss>
    Now i wanna embed the option of rss feed in my website, but it is made in Flash. I have already the code in html for this, it would be like this:
       <a type="application/rss+xml" href="nombre de tu canal RSS.xml">
    <img src="imagen que quieres que sirva de enlace.gif">
       </a>
    But I don't know how to "translate" this code into an actionscript....can anybody help me please!!!???
    Thak u for reading

    normally, an rss feed is loaded from another domain.  it looks like you've copied an rss feed and saved it as a local file.
    if you want to use as2 to load a local xml file, use the xml class.  if you want to load the cross-domain rss feed, use the loadvars class to load the return from a server-side script (eg, php) that loads the cross-domain rss feed.

  • Newbie here trying to load an rss feed thru xml in Flash AS 2.0

    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 gotta be missing something here, I hope this isn't too dumb of a question.
    RD

    Yep, as I suspected a dumb question. All I had to do was replace the xml file name with rssurl and it worked.
    sorry guys. I have another question regard this I will post separate.
    rd

  • Why is this RSS Feed not working?

    Here is the code I used on the RSS Parser file. Yet when I
    open the flash viewer no changes have been made from the original
    example I pulled this from. Sorry, the code is listed twice. The
    second version is when I used "attach code" and I can't seem to
    delete the original cut & paste.
    Mind you, I'm just getting through the latter stages of a
    beginner Flash course, so if possible, please keep explanations
    relatively understandable to a newbie. :)
    package com.example.programmingas3.rssViewer {
    import flash.net.URLRequest;
    import flash.net.URLLoader;
    import flash.events.*;
    * RSSParser includes methods for
    * converting RSS XML data into HTML text.
    public class RSSParser extends EventDispatcher {
    * The text to use as the title of the application
    public var sampleTitle:String = "Raw Story: Breaking News";
    * The text to use as the description of the application
    public var sampleDescription:String = "Bringing you the news
    the supposed liberal media won't";
    * The URL of the source RSS data. Alternate URLs are listed
    as comments.
    * Note that in order to use RSS data from a network address,
    the source server
    * needs to impliment a cross-domain policy file. For
    details, see the "Flash Player
    * Security" chapter in the Programming ActionScript 3.0
    book.
    public var url:String = "
    http://feeds.feedburner.com/rawstory/gKpz"
    //"./RSSData/ak.rss"
    http://feeds.feedburner.com/rawstory/gKpz"
    * The XML object containing the source RSS data
    public var rssXML:XML;
    * The string that will contain the converted HTML version of
    the RSS topic data.
    public var rssOutput:String;
    * The title of the RSS feed.
    public var rssTitle:String;
    * Used to load RSS data.
    private var myLoader:URLLoader;
    * An event used to signal that the HTML version of the RSS
    data has been written.
    private var dataWritten:Event;
    * Initiates loading of the RSS data.
    public function RSSParser() {
    var rssXMLURL:URLRequest = new URLRequest(url);
    myLoader = new URLLoader(rssXMLURL);
    myLoader.addEventListener("complete", xmlLoaded);
    * Invoked when the RSS data is loaded. This method parses
    through the
    * XML data by looping through each item element in the XML,
    extracting
    * the title description and link elements in the item
    element.
    * The buildHTML() method returns HTML in the form of an
    XMLList
    * object, which is converted to the rssOutput string.
    * The channel.title property of the rssXML is used as the
    * title for the RSS feed. When the method is complete, it
    dispatches
    * a dataWritten event, which notifies the host application
    of the
    * completion.
    public function xmlLoaded(evtObj:Event):void {
    rssXML = XML(myLoader.data);
    var outXML:XMLList = new XMLList();
    /* The source RSS data may or may not use a namespace to
    define
    * its content.
    if (rssXML.namespace("") != undefined) {
    default xml namespace = rssXML.namespace("");
    for each (var item:XML in rssXML..item) {
    var itemTitle:String = item.title.toString();
    var itemDescription:String = item.description.toString();
    var itemLink:String = item.link.toString();
    outXML += buildItemHTML(itemTitle,
    itemDescription,
    itemLink);
    XML.prettyPrinting = false;
    rssOutput = outXML.toXMLString();
    trace(rssOutput);
    rssTitle = rssXML.channel.title.toString();
    dataWritten = new Event("dataWritten", true);
    dispatchEvent(dataWritten);
    * Builds an XMLList object that represents a segment of HTML
    code,
    * based on the three string parameters that define the
    title, description,
    * and link information from an RSS item.
    * The return text is of the following form:
    * <p>itemDescription<br/><a
    href="link"><font
    color="#008000">More...</font></a></p>
    private function buildItemHTML(itemTitle:String,
    itemDescription:String,
    itemLink:String):XMLList {
    default xml namespace = new Namespace();
    var body:XMLList = new XMLList();
    body += new XML("<b>" + itemTitle + "</b>");
    var p:XML = new XML("<p>" + itemDescription +
    "</p>");
    var link:XML = <a></a>;
    link.@href = itemLink; // <link
    href="itemLinkString"></link>
    link.font.@color = "#008000"; // <font
    color="#008000"></font></a>
    // 0x008000 = green
    link.font = "More...";
    p.appendChild(<br/>);
    p.appendChild(link);
    body += p;
    return body;

    Please when you have a question post the feed URL, not its contents. For reference, your feed is at
    http://gamersscope.emachine08.com/podcast.rss
    You have failed to close the category tag, which renders the feed unreadable. You need to add a line as here:
    <itunes:category text="Games &amp; Hobbies">
    <itunes:category text="Video Games"/>
    </itunes:category>
    <itunes:owner>
    Though it doesn't affect the validity of the feed, your link tag:
    <link>http://gamersscope.emachine08.com</link>
    leads to a server directory, not a page.

  • How do I get the RSS feeds to work in iWeb'08 when published to FTP server?

    There are so many unresolved questions because I have published to an FTP server (Netfirms). HOWEVER, my next task at hand is to resolve the issue of a non-working RSS feed and download capabilities.
    The published website is www.vibrationalvoyages.com.
    When using Cyberduck to upload to Netfirms, I have to call the file name vibrationalvoyages.com because Netfirms organizes my files under a main folder called www (I also purchased the .org and .net extensions along with the singular spelling of the title, have forwarded those url's to the .com extension, which means I have different website names under Netfirm's main folder www, all pointing to www.vibrationalvoyages.com).
    I have to drop the www. in front of vibrationalvoyages.com when publishing to a folder on my computer so, when Cyberduck uploads the files into the main www folder, they are read correctly and published as www.vibrationalvoyages.com. In Cyberduck, the ftp address to upload is vibrationalvoyage.netfirms.com
    Before uploading, I use iTweak to insert the Statcounter tracking codes. Then, I use Rage to optimize the site to cut down on the weight (lots of photos). Then, finally, I get to upload which takes about an hour and a half.
    SO, HOW DO I GET THE RSS FEEDS TO WORK AS WELL AS THE OPTION TO DOWNLOAD AN MP3 RECORDED MEDITATIONS? I eventually also want to include the download option of podcasts.
    Please help! I am doing the best I can to stay in love with Mac but he is turning out to be a pot load of work and the love affair is wearing a little thin.
    I haven't even asked about why iWeb still calls some pages 'The family picnic" or why it switches the url addresses to the individual pages. Probably because in the early stages, I copied an entry rather than just do a new one... but I'll worry about that later. I want to get this 'fixed' first and then I'll address the issue, following Roddy's advice to another writer about installing a flash player, for easy download of the MP3 meditations and for when I record the lessons as podcasts. Until I get this RSS issue resolved, however, podcast downloads are out of the question!

    Thank you for checking, Tom,
    I'm confused. What do YOU get when you push the feed button? And why is it working on yours and not either of my machines?
    Today, my Mac (w/Safari 4) gets the same error message: Safari can’t open the page Safari can’t open the page “feed:http://vibrationalvoyages/vibrationalvoyages.com/DivineLight_Vibrations_Principles_andApplications/rss.xml”. The error is: “The feed could not be loaded because the content is not in a known feed format.”
    My little ASUS (with a Linux operating system) gets a screen that says "The requested URL was not found". The URL on that page is http://vibrationalvoyages./vibrationalvoyages.com/DivineLight_Vibrations_Principles_andApplications/rss.xml
    On both error messages, the URL I was checking was:
    http://www.vibrationalvoyages.com/DivineLight_Vibrations_Principles_and_Applications/Divine_Light_Vibrations_Principles_ andApplications.html
    The last URL was, of course, the URL generated by iWeb.
    So, my question still is:
    HOW CAN I GET MY FEEDS TO WORK PROPERLY? If the problem is there shouldn't be an http:// after feed: then, how do I get iWeb to set it up properly?
    Any ideas?
    GG

  • How to display a simple rss feed?

    Hi,
    I've build a simple application that has a httpservice called rss that calls "http://www.nytimes.com/services/xml/rss/nyt/GlobalBusiness.xml" and retrieves the rss feed. Under test operation I can see it returning the feed.
    When the init() function is called the httpservice is called and passed to a datagrid.
    However, when I run it I get the following fault.
    Security error accessing url
    Destination: DefaultHTTP
    In the console I get the following messeage:
    Warning: Domain www.nytimes.com does not specify a meta-policy.  Applying default meta-policy 'master-only'.  This configuration is deprecated.  See http://www.adobe.com/go/strict_policy_files to fix this problem.
    Error: Request for resource at http://www.nytimes.com/services/xml/rss/nyt/GlobalBusiness.xml by requestor from http://localhost:8888/Newsroom-debug/Newsroom.swf/[[DYNAMIC]]/4 is denied due to lack of policy file permissions.
    *** Security Sandbox Violation ***
    Connection to http://www.nytimes.com/services/xml/rss/nyt/GlobalBusiness.xml halted - not permitted from http://localhost:8888/Newsroom-debug/Newsroom.swf
    [Unload SWF] /Newsroom-debug/Newsroom.swf
    I have checked different posts online and in this forum describing crossdomain.xml and settings in the flash player global settings to resolve this issue, but I can for some reason not get it to work.
    I want to be able to take rss feeds from any site and display them in a simple datagrid?
    Any suggestions?
    Below is the application code.
    Br,
    Karsten!
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600"
              creationComplete="init();" xmlns:rss="services.rss.*">
    <fx:Script>
            <![CDATA[
                import mx.controls.Alert;
                import mx.events.FlexEvent;
                import mx.rpc.events.ResultEvent;
              protected function init():void
                    getDataResult.token = rss.getData();
            ]]>
        </fx:Script>
        <fx:Declarations>
            <s:CallResponder id="getDataResult"/>
            <rss:Rss id="rss" fault="Alert.show(event.fault.faultString + '\n' + event.fault.faultDetail)" showBusyCursor="true"/>
        </fx:Declarations>
        <mx:DataGrid id="rssGrid" width="500" dataProvider="{getDataResult.lastResult.channel.item}" >
            <mx:columns>
                <mx:DataGridColumn headerText="Feed" dataField="headline" />
                <mx:DataGridColumn headerText="description" dataField="description"/>
            </mx:columns>
            </mx:DataGrid>
    </s:Application>

    OK.
    Tried out your suggestion and it works!
    Thanks saisri2k2
    1) I created an http service which calls a php file:
    <mx:HTTPService
                id="rssNewYorkTimes"
                url="php/newyorktimes.php"
                result="rssNewYorkTimes_resultHandler(event)"
                resultFormat="e4x" />
    2) The php file then gets the feed and passes it back to the rssNewYorkTimes_resultHandler:
    <?php
      $feed = 'http://www.nytimes.com/services/xml/rss/nyt/GlobalBusiness.xml';
      $rawfeed = @file_get_contents($feed);
      print $rawfeed; 
    ?>
    3) the resulthandler then processes the feed and puts it in an arraycollection that can be passed to the datagrid:
    protected function rssNewYorkTimes_resultHandler(event:ResultEvent):void
                    var xmlList:XMLList = event.result.channel.item as XMLList;
                    for each(var item:XML in xmlList)
                        rssCollection.addItem({title: item.title, description:item.description, source:item.link});
                    buildRss();
    Thanks also to Chris Black for his post which explains in detail how this trick is done!
    http://www.blackcj.com/blog/2008/10/04/flexfeed-integrate-twitter-rss-feeds-into-flex/

  • Rss feed in my movie

    hey guy's i am using 2 component's from flashloaded...
    flashticker and rss feed... i am presently on a linux server at
    godaddy... for some reason it is not working... on a hunch i just
    put the url of my website with the php file and this is the error i
    am getting....this is a valid xml fee....i tried 2 ( one being on a
    different site of mine working fine )... from looking at the info
    below - i need to get with godaddy right and have them enable the
    server to allow the calling of the feed ...right ?
    Warning: readfile(): URL file-access is disabled in the
    server configuration in
    /home/content/d/g/g/dggowen/html/mortgagedaily.php on line 6
    Warning: readfile(
    http://MortgageDaily.com/rss.xml):
    failed to open stream: no suitable wrapper could be found in
    /home/content/d/g/g/dggowen/html/mortgagedaily.php on line 6

    This points out the need for a robust XSLT library or
    component. Does anyone know of such an animal? Having to write code
    to parse XML nodes and wrap formatting tags around the returned
    data seems fairly ... hmmm ... archaic. And sorting and filtering
    that data ... again, just more manual coding for what should be
    routine functionality. Sometimes it just isn't possible or
    appropriate to flip the data back for a serverside transformation
    (particularly desktop AIR apps running offline). Having at least
    some minimal set of XSLT functionality would make Flash a much more
    appealing medium for me. Anyone have recommendations beyond "code
    it yourself"?

  • How to parse RSS Feed - Different URL for each button

    I'm making an app with AS3 and I want to be able to load a different RSS Feed when the user clicks on each button. This is the code I have so far, has anyone any idea how I can modify my code to do this?
    here's my code so far:
    //IMPORT CLASSES
    import fl.controls.List;
    import flash.net.URLLoader;
    import flash.events.Event;
    import flash.net.URLRequest;
    cGOSSIP.addEventListener(MouseEvent.CLICK, doClick);
    function doClick (e:MouseEvent):void
    cGOSSIP.gotoAndStop ("GOSSIP"); 
    wNEWS.addEventListener(MouseEvent.CLICK, doClick2);
    function doClick2 (e: MouseEvent):void
              wNEWS.gotoAndStop ("WORLD NEWS");
    eNEWS.addEventListener(MouseEvent.CLICK, doClick3);
    function doClick3 (e: MouseEvent):void
              eNEWS.gotoAndStop ("ENT NEWS");
    fbNEWS.addEventListener(MouseEvent.CLICK, doClick4);
    function doClick4 (e: MouseEvent):void
              fbNEWS.gotoAndStop ("FB NEWS");
    //NEWSLIST FORMATTING
    var newsListTf:TextFormat = new TextFormat();
    newsListTf.font = "Verdana";
    newsListTf.color = 0xFFFFFF;
    newsListTf.size = 18;
    newsListTf.align = "left";
    newsList.setRendererStyle("textFormat", newsListTf);
    newsList.rowHeight = 100;
    newsList.allowMultipleSelection = false;
    //newsList.wordWrap = true;
    //NEWSDISPLAY TEXT AREA FORMATTING
    var rssStoryTf:TextFormat = new TextFormat();
    rssStoryTf.font = "Verdana";
    rssStoryTf.color = 0x6699CC;
    rssStoryTf.size = 22;
    rssStoryTf.align = "left";
    rssStory.setStyle("textFormat", rssStoryTf);
    //READMORE BUTTON FORMATTING
    var buttonTf:TextFormat = new TextFormat();
    buttonTf.font = "Verdana";
    buttonTf.color = 0xFFFFFF;
    buttonTf.size = 22;
    btn_ReadMore.setStyle("textFormat", buttonTf);
    //RSS FEED
    var rssLoader:URLLoader = new URLLoader();
    var rssURL:URLRequest = new URLRequest
    ("http://rssfeeds.tv.adobe.com/adobe-higher-education-solutions.xml");
    rssLoader.addEventListener(Event.COMPLETE, rssLoaded);
    newsList.addEventListener(Event.CHANGE, selectRssStory);
    btn_ReadMore.addEventListener(MouseEvent.CLICK, goToURL);
    rssLoader.load(rssURL);
    var newsXML:XML = new XML();
    var currentStoryURL:URLRequest = new URLRequest();
    newsXML.ignoreWhitespace = true;
    function rssLoaded(evt:Event):void
    newsXML = new XML(rssLoader.data);
    //trace(newsXML);
    for(var item:String in newsXML.channel.item) {
    //newsList.addItem({label: newsXML.channel.item[item].pubDate.substr(0, 16)
    //+": " + newsXML.channel.item[item].title } );
    newsList.addItem({label: newsXML.channel.item[item].title.substr(0, 40)
    +" ..." } );
    newsList.selectedIndex = 0;
    //FIRST LOAD
    currentStoryURL = new URLRequest(newsXML.channel.item[0].link);
    rssStory.htmlText = newsXML.channel.item[0].description;
    function selectRssStory(evt:Event):void
    rssStory.htmlText = newsXML.channel.item[evt.target.selectedIndex ].description;
    currentStoryURL = new URLRequest(newsXML.channel.item[evt.target.selectedIndex
    ].link);
    function goToURL(event:MouseEvent):void
    navigateToURL(currentStoryURL);

    I copied the wrong code, it works and loads the feed but I have a number of buttons in the main menu and I want to be able to load a different rss feed for each button?
    Here's the code.
    btn_Home.addEventListener(MouseEvent.CLICK, clickHome);
    function clickHome(e:MouseEvent):void
              gotoAndStop ("START");
    //NEWSLIST FORMATTING
    var newsListTf:TextFormat = new TextFormat();
    newsListTf.font = "Verdana";
    newsListTf.color = 339999;
    newsListTf.size = 18;
    newsListTf.align = "left";
    newsList.setRendererStyle("textFormat", newsListTf);
    newsList.rowHeight = 100;
    newsList.allowMultipleSelection = false;
    //newsList.wordWrap = true;
    //NEWSDISPLAY TEXT AREA FORMATTING
    var rssStoryTf:TextFormat = new TextFormat();
    rssStoryTf.font = "Verdana";
    rssStoryTf.color = 0x6699CC;
    rssStoryTf.size = 22;
    rssStoryTf.align = "left";
    rssStory.setStyle("textFormat", rssStoryTf);
    //READMORE BUTTON FORMATTING
    var buttonTf:TextFormat = new TextFormat();
    buttonTf.font = "Verdana";
    buttonTf.color = 0xFFFFFF;
    buttonTf.size = 22
    btn_ReadMore.setStyle("textFormat", buttonTf);
    //RSS FEED
    var rssLoader:URLLoader = new URLLoader();
    var rssURL:URLRequest = new URLRequest
    ("http://www.tmz.com/rss.xml");
    rssLoader.addEventListener(Event.COMPLETE, rssLoaded);
    newsList.addEventListener(Event.CHANGE, selectRssStory);
    btn_ReadMore.addEventListener(MouseEvent.CLICK, goToURL);
    rssLoader.load(rssURL);
    var newsXML:XML = new XML();
    var currentStoryURL:URLRequest = new URLRequest();
    newsXML.ignoreWhitespace = true;
    function rssLoaded(evt:Event):void
    newsXML = new XML(rssLoader.data);
    //trace(newsXML);
    for(var item:String in newsXML.channel.item) {
    //newsList.addItem({label: newsXML.channel.item[item].pubDate.substr(0, 16)
    //+": " + newsXML.channel.item[item].title } );
    newsList.addItem({label: newsXML.channel.item[item].title.substr(0, 40)
    +" ..." } );
    newsList.selectedIndex = 0;
    //FIRST LOAD
    currentStoryURL = new URLRequest(newsXML.channel.item[0].link);
    rssStory.htmlText = newsXML.channel.item[0].description;
    function selectRssStory(evt:Event):void
    rssStory.htmlText = newsXML.channel.item[evt.target.selectedIndex ].description;
    currentStoryURL = new URLRequest(newsXML.channel.item[evt.target.selectedIndex
    ].link);
    function goToURL(event:MouseEvent):void
    navigateToURL(currentStoryURL);

Maybe you are looking for

  • How to change font size in Interactive report

    Hi I am using Apex 4.02 version I need to get all reports into single page but it displayed excess the page limit. Example If report having more than 15 columns it should display in single page so I tried "break" option in all report column headers s

  • More Guru Winners for February 2015 in the Windows Phone category and many others!

    It's been a busy week that also saw the TECHNET WIKI SUMMIT 2015 Then we had the results for February's TechNet Guru competition ALSO posted! http://blogs.technet.com/b/wikininjas/archive/2015/03/19/technet-guru-february-2015.aspx Below is a summary

  • Download data from cube to excel

    Hello gurus. I need to download data from a cube to excel... but is not possible to download all the data, because excel restrictions. Do you know a way to download all the data? Thanks in advance, Vitor Ramalho

  • Using stp 2.0.2, transporter disappeared -any ideas?

    using stp 2.0.2, transporter disappeared. No where to be found -any ideas?

  • User provisioning with Sun Directory Server

    I'm migrating from the internal user data store to external with Sun Directory Server as the LDAP backend and I'm unable to provision new users. I use unidssearch to list the unprovisioned accounts and it lists the user I'd like to provision. I then