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:

here is one that I got from a tutorial and modified, that you
can use that that has a list, picture, and a picture comment
section.
on stage you will need:
a list component instance name liLog
a text box with instance name taLog
a UIloader component with the instance name ldLog
[rss]
<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Menue</title>
<link>
http://www.not up yet/</link>
<description>menue</description>
<language>en-us</language>
<item>
<title>Newwave - Media Creator</title>
<link>images/2.jpg</link>
<description>
Designer of this WebSite
</description>
</item>
<item>
<title>Newwave - Media Creator</title>
<link>images/2.jpg</link>
<description>
Designer of this WebSite
</description>
</item>
</channel>
</rss>
[/rss]
[code]
import fl.managers.StyleManager;
var xmlLoader:URLLoader = new URLLoader();
var logURL:URLRequest = new URLRequest("npsolo.rss");
xmlLoader.addEventListener(Event.COMPLETE, xmlLoaded);
xmlLoader.load(logURL);
var logXML:XML = new XML();
logXML.ignoreWhitespace = true;
var logFormat:TextFormat = new TextFormat();
logFormat.font = "Verdana, Arial, Helvetica";
logFormat.size = 12;
logFormat.bold = true;
StyleManager.setStyle("textFormat", logFormat);
function xmlLoaded(evt:Event):void {
logXML = XML(xmlLoader.data);
for (var item:String in logXML.channel.item) {
trace(logXML.channel.item[item].title);
liLog.addItem({label:logXML.channel.item[item].title});
function selectLog(evt:Event):void{
taLog.htmlText =
logXML.channel.item[evt.target.selectedIndex].description;
if (logXML.channel.item[evt.target.selectedIndex].link ==
undefined){
trace("no link");
ldLog.unload();
}else{
trace("image");
ldLog.source =
logXML.channel.item[evt.target.selectedIndex].link;
liLog.addEventListener(Event.CHANGE, selectLog);
[/code]
hope it helps

Similar Messages

  • 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

  • Parameter is not working in HTTP( XML FEED) dataset in bi publisher 11g

    Hi,
    I have used parameter in BI Publisher 10g for HTTP(XML Feed) dataset to have dynamic url which worked by using ${p_url} where p_url is the parameter.
    The same procedure when I use in BI Publisher 11g is not working.It does not consider the parameter ${p_url} and throws the following exception
    *oracle.xdo.dataengine.datasource.plugin.DataAccessException: java.lang.Exception: java.net.MalformedURLException: no protocol: ${p_url}*
    Has anyone faced this issue?
    Please let me know if am doing something incorrect here.
    Thanks &Regards,
    Balaji

    Thanks for your reply.
    In BI Publisher 10 g we are using it this way ${p_url}.
    p_url is the parameter which gives us the entire URL for the XML feed.
    e.g. p_url=http://rss.news.yahoo.com/rss/topstories
    The p_url takes the entire url.
    Please let me know if this can be done the same way in 11g.
    Thanks,
    Balaji

  • Reg : Weather XML Feed service application - urgent please.....!

    Hi All,
    I hv created a sample weather application which was published in weblog by Prakash with topic "Create a weather magnet using xml feed from weather.com"
    Everything works fine....But, when I deploy this one I get foll. error :
    Portal Runtime Error
    An exception occurred while processing a request for :
    iView : com.ust.weather.display
    Component Name : com.ust.weather.display
    xoap.weather.com.
    Exception id: 04:16_03/03/07_0773_1198650
    See the details for the exception ID in the log file
    I donno where iam going wrong but still.....not able to figure-out exact problem.
    I also, added the foll. jars :
                com.sap.portal.runtime.application.contentconversion_api.jar
                com.sap.portal.runtime.application.contentconverter_api.jar
    I request you all gurus.....plz provide me with solution where I went wrong.
    Appreciate your time and valuable inputs.
    Thanks in advance,
    Ravi Kumar.

    Hi Swathi,
    Thanks for your valuable inputs and reply.
    I checked in Javadeveloper >> Tools >>> Logviewer.
    I don;t find logviewer option under Tools of Java developer role.
    I am rightnow logged in to server via remote server desktop...checking for the logfiles.
    Please, let me know any other options/suggestions.
    Regards,
    Ravi Kumar.

  • How to overwrite  the xml file by  flash using Php

    Hi
    i am creating getting data from the xml file ... and i am
    doing some Alteration in the xml file by flash after that flash
    producing the xml file i finished upto this process...
    nw i neeed to overwrite the xml file.... using Php.....
    can any one give me some idea ... to solve this issue
    ~~SK

    Flash Player cannot write XML files at all. but using
    php+flash we could do it .

  • Tutorial needed: Nivo Slider powered by Photo Gallery XML feed

    I'm in need of some help.  I've setup my Photo Gallery, generated the xml feed.  I went to the Nivo slider site, but don't see instructions of how to make it read the xml file.

    So this is the information that I'm using which leads me to believe I can use the xml feed to populate the slider.
    http://forums.adobe.com/docs/DOC-1780
    . You can now style this using your own CSS or use one of the many free, jQuery-based Gallery/Slideshow plugins available on the web, such as Galleria, the jQuery Cycle plugin, or InnerFade.
    When using a seperate jQuery plugin on top of this set up, make sure you place and execute the plugin script after the code we just inserted, so that our LI items are generated before it attempts to process and manipulate them.
    Am I right and it just takes the proper coding?

  • Need to get rss/xml feed from itunes

    I need to get an rss/xml feed of the albums I am selling on itunes -- to insert into an iphone app I am working on.
    Any one know how to get this feed?

    If you had iTunes Match before all this happened, yes. Just log in, activate iTM and download the music. If you did not have iTunes Match prior to these incidents, no, it can not help you.
    You should also be doing regular backups of your personal data to an extnal HDD. If you had a backup hue could simply restore it.

  • No Preview or Download With My XML feed

    I have created an XML feed for my podcasts per the Apple specs and everything is working great EXCEPT my mp3's are uploaded to a streaming server. My feed reflects the URL of the mp3 file on the streaming server.
    The itunes store will not play these podcasts. No preview or anything. So, I moved the mp3 off from the streaming server to a regular web server. Updated the feed....and all is good!
    So, the problem is now I will have to have these files in two locations. One on my streaming server and one on my web server. Not good joo joo. So, is it possible for itunes to use the streaming server URL? Do I need to change something in my feed or will I be stuck with having the files in two locations?

    iTunes does not stream podcast files. So I think you are stuck unless you can make one server do both.
    Message was edited by: camoracer

  • Changing the custom XML for a flash chart dynamically

    Hello
    I am wondering if anyone has found a way to change the custom XML
    for a flash chart dynamically.
    For instance.
    On the www.anychart.com website their is a gallery with charts.
    I have studied one called "2Dlinetimechart. It has hours on the X-axis.
    When I view the XML for this chart.
    I found this enrty
    - <block color="0x0080C0" border_color="0x0080C0" name="Sales dept.">
    <set value="0" argument="0" name="00:00" />
    <set value="1" argument="0" name="01:00" />
    It uses the tag value to set the position on the X-axis. But the tag name to set the labels on the X-axis.
    I have not found a way to do this in application express 3.0.
    Therefore I wonder if I can change to XML dynamically, and build my own block based on the input I have.
    Or even build a chart, based on a xml that I create first then sends to the object that renders the chart.
    Hope this makes sence ?
    Ulf
    PS this is related to my question about
    http://forums.oracle.com/forums/thread.jspa?messageID=1887210?
    using dates on the x-axis.
    But would by nice to know a general method to rebuild the xml-file dynamically so I can change the chart within the limits of the xml-definition.

    String value = ResultSet.getObject("myfield").toString();
    String opvalue = "15";
    <OPTION Value=15 <%=((opvalue.equals(value))?"selected":"")%>>

  • Disabling the xml feed as a canonical workaround

    Hi I have a question and wondered if anyone can advise.
    I am working on a jewellery site with 150ish products and multiple catalogs - 4 main ones (necklaces, earrings, bracelets & rings) and then many less important ones (beaded necklace, stretch bracelet etc)
    Each product resides in many catalogs (eg 'Necklace A' can be found in catalog 'necklace' and 'beaded necklace' and 'sale jewellery). I want the main catalogs and subsequent products in these catalogs (eg necklace) to be the ones that google use (to avoid duplocate content etc).
    I would have liked to use a Canonical tag but dont think BC supports these. My workaround was to disable the xml feed of all the 'less important' catalogs so that google only sees the 4 main catalogs.
    Is this a good idea? Does anyone have any other suggestions? etc
    Suggestions will be warmly recieved.
    Thanks

    <cffeed>.
    For example, run the following
    <cffeed action="read"
    query="rssQuery"
    source="
    http://rss.news.yahoo.com/rss/topstories">
    <cfdump var="#rssQuery#">

  • RSS/XML Feed Portlet

    Under 4.5WS we had a number of portlets that were fed directly from internet XML feeds, such as moreover. Having upgraded to G6 it would appear that we can no longer do this in the same way.
    I have been reading various posts referring to sample RSS feed portlets but cannot appear to find them either in these discussions or in the CodeSample area.
    Can anybody provide a clearer pointer where we can get some sample/shared code to do this as we would rather not start from scratch. Ideally code that allowed for multiple feeds into the same portlet.
    Thanks,
    Ross Ellard

    Thank you Eric. Flattery will get you everywhere. ;-)
    <marketing>Maybe we can discuss this further at BEAWorld. Are you going? If so, stop by our booth.</marketing>
    If your time frame is more urgent, then let's talk on the phone soon. You have my number, I'm sure.
    I like the idea of a general XML/Web crawler that uses XSTL to convert to some intermediate format and then crawls it into ALUI. That could work with almost any data source because you could go DB->XML+XST->Crawler->ALUI. If we insist upon the intermediate format being standard RSS (RDF), then we actually kill two birds with one stone. We just implement an RSS crawler and then tell clients of the service that if their XML is not in RDF, then they must provide an XST that transforms their XML to RDF and then we're good . . . .
    I already have some nice RDF parsing code in C# -- you cool with that for our language/platform?
    Best,
    Chris Bucchere | bdg | [email protected] | http://www.bdg-online.com
    Message was edited by:
    bucchere (I changed XSD to XST -- got my acronyms confused.)

  • XML editing from flash, any idea, suggestion

    Hello,
    I have created for a client a website dynamically loaded with
    XML formatted content (XML Files), now the client wants to be able
    to edit the contents of its site (CMS), the site displays several
    things but more specifically a list of products, which you can see
    by browsing the "PRODUCT RANGE" section of
    http://www.cellap.com/.
    I planned to use a php to rewrite the XML with the edited
    data sent from the flash (oldData, newData), it works fine, except
    that there are several problems:
    -I use the "ereg_replace" command of PHP, which seems not to
    handle correctly special charachters such as "*"...
    -If the php is told to replace i.e. "FACE" with "FIGURE", it
    will replace it everywhere on the XML, which is not what I want; so
    maybe I'm not using the right technique; I know it'd be more easy
    to do if the content was on a MySQL database, but the client wanted
    XML, to be able to browse the site offline...
    Any help or suggestions would be greatly appreciated!
    Tks

    loading yes. editing no.
    you need some sort of server script to do the editing(php,
    asp, cmf)
    Dan Mode
    *THE online Radio*
    http://www.tornadostream.com
    *Must Read*
    http://www.smithmediafusion.com/blog
    *Flash Helps*
    http://www.smithmediafusion.com/blog/?cat=11
    "ELTIGRE" <[email protected]> wrote in
    message
    news:e94vsk$fjb$[email protected]..
    > is it posible Loading and Editing xml data from flash
    without any
    > programing language using actionscript only?

  • Is there a set maximum number of item s in the xml feed?

    Is there a limit to the maximum number of <item>s allowed in the .xml feed for publishing on iTunes?
    That is, does there come a point where old items have to be deleted before new ones can be added?
    PC   Windows XP  

    I would imagine most people submitting such a large number of jobs are using something more robust like Qube:
    http://www.pipelinefx.com/products/qube-film.php
    Qmaster is very buggy and would need a complete rewrite before it could be qualified for use in such an environment.

  • Update XML files with Flash

    Hi,
    I would like to know if its possible to insert or update
    existing data of a XML file with flash?
    And how can I do it?

    This code have two procedures or functions the createXML is
    called first this one asks for the variable send using get called
    fileName (Append this variable to the page request). The function
    called writeToFile opens the file and writes to it.
    Form flash you need to create the xmlfile and call the
    sendAndLoad method.

  • Validating HTML with an XML feed

    I'm having difficulty getting my home page to validate with
    its XML
    feed. Here's the w3 validator's erros:
    http://tinyurl.com/39kmg2
    Basically the validation errors I get are:
    there is no attribute "xmlns:dc".
    there is no attribute "xmlns:content".
    there is no attribute "xmlns:wfw".
    This is from the beginning of my XSL file:
    <xsl:stylesheet version="1.0"
    xmlns:xsl="
    http://www.w3.org/1999/XSL/Transform"
    xmlns:wfw="
    http://wellformedweb.org/CommentAPI/"
    xmlns:content="
    http://purl.org/rss/1.0/modules/content/"
    xmlns:dc="
    http://purl.org/dc/elements/1.1/">
    I tried taking out those three links but then my page
    displays a
    MM_XSLTransform error.
    How can I get my page to validate?

    ryansebiz wrote:
    > I'm having difficulty getting my home page to validate
    with its XML
    > feed. Here's the w3 validator's erros:
    http://tinyurl.com/39kmg2
    >
    > Basically the validation errors I get are:
    >
    > there is no attribute "xmlns:dc".
    > there is no attribute "xmlns:content".
    > there is no attribute "xmlns:wfw".
    >
    > This is from the beginning of my XSL file:
    >
    > <xsl:stylesheet version="1.0"
    > xmlns:xsl="
    http://www.w3.org/1999/XSL/Transform"
    > xmlns:wfw="
    http://wellformedweb.org/CommentAPI/"
    > xmlns:content="
    http://purl.org/rss/1.0/modules/content/"
    > xmlns:dc="
    http://purl.org/dc/elements/1.1/">
    >
    > I tried taking out those three links but then my page
    displays a
    > MM_XSLTransform error.
    >
    > How can I get my page to validate?
    Anybody?

Maybe you are looking for

  • No System Information in Service Desk message creation

    Hello, I'm trying out all the ways to use de message creation in service desk. When i try to create a message directly from SOLMAN_WORKCENTER\Incident Management No infos are filled in System Information and so i can't send the message. I can't even

  • User exit / badi to change engine serial-number of vehicle in ie02 ??

    hi all , does anybody familier with user exit/badi that can handle the screen called : vehicle technology in transaction ie02 for fleet management . i need it in order to update the field : engineserialno that appears in this screen. thanks in regard

  • HP Web OS Tablet

    HP Web OS Tablet Problem HP tech support referedme to this site for expert level technician help for my HP Web OS Tablet. The problem is that it does not open and play photos and videos transfered to it from a PC. You can see the files have actually

  • Stored Procedure Call from Bean Error - PLS-00201

              Hello all,           I am using the java stored procedure code in the examples dir of weblogic51/examples/jdbc/...           with one exception. I created the stored procedure as another user with more           permissions than           t

  • Calling syntactically incorrect remote function module triggers short dump

    Hi, I have some Z Function modules in ABC system and i need to call them remotely from XYZ. There are some syntax errors in the FM's of ABC system so in the call of XYZ I am getting dump. Can I know how to capture if there is any syntax error in the