Importing RSS with HTML in AS3

I succesfully imported RSS in Flash... now in flash i have
<title>
<link>
and <description>
I want to Display in a List component the Title and the Description, and on click a textfield displays the HTML text grabbed from the Link...
Here's my code
var rssLoader:URLLoader = new URLLoader();
    var rssURL:URLRequest =
         new URLRequest("http://www.parliamocidicalcio.it/rss/xml/RSS2.0/category/34-seriea.html");
    rssLoader.addEventListener(Event.COMPLETE, rssLoaded);
    rssLoader.load(rssURL);
    var rssXML:XML = new XML();
    rssXML.ignoreWhitespace = true;
    function rssLoaded(evt:Event):void {
        rssXML = XML(rssLoader.data);
        for(var item:String in rssXML.channel.item) {
            liLog.addItem(
                      {label: rssXML.channel.item[item].pubDate.substr(0, 16) +
                    ": " + rssXML.channel.item[item].description } );
    function selectLog(evt:Event):void {
        var list:XMLList =
                    rssXML.channel.item[evt.target.selectedIndex ].children();
   var item:XML;
        for(var i = 0; i<list.length(); i++)
            if(list[i].name() == "description")
            { i++; break; }
    item = list[i].children()[0];
    var LinkLoader:String = rssXML.channel.item[evt.target.selectedIndex].link;
    var textLoader:URLLoader = new URLLoader();
    var textReq:URLRequest = new URLRequest(LinkLoader);
    textLoader.load(textReq);
        taLog.htmlText =  textLoader.data;
        //taLog.htmlText = item.toString();
    liLog.addEventListener(Event.CHANGE, selectLog);
    liLog.rowHeight = 90;
And there's another problem... the <description> contains an <img src="xxx">... AS doesn't read HTML so it displays the code... is there a solution to remove <img src"xx"> from <description> when importing in flash? And to remove it and display the image?

Yout cannot put an iframe into a Flash file.
Dan Smith > adobe community expert
Flash Helps >
http://www.smithmediafusion.com/blog/?cat=11
twitter:
http://twitter.com/dmode
"tziady" <[email protected]> wrote in
message
news:g58bqj$o0q$[email protected]..
> Hello all; I am looking to embed a google calendar into
a flash file. Has
> anyone attempted this successfully. The embedding code
looks like this:
>
> <iframe
> src="
http://www.google.com/calendar/embed?src=40j2e2qt3efr2rblk8r08fv530%40group
> .calendar.google.com&ctz=America/New_York"
style="border: 0" width="800"
> height="600" frameborder="0"
scrolling="no"></iframe>
>
> Any help with this problem would be greatly appreciated.
>
> Cheers
> Tamer
>

Similar Messages

  • Cannot import SWF with document class (AS3)

    When I try to import a SWF-file (published from a FLA-file with a as3 document class) via the mx:SWFLoader into Flash Builder, the imported SWF is not showing up (as3 build a cube from papervision3d). Which way do you have to import such a SWF-file?
    Regards, Sjoerd

    Shitf+Ctrl+Enter:
    Attempting to launch and connect to Player using URL preloader.swf
    [SWF] preloader.swf - 9591 bytes after decompression
    [SWF] big.swf - 1785015 bytes after decompression
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
        at DocumentlClass()
    Cannot display source code at this location.
    My document class (simplyfied):
    package {
        import flash.display.Sprite;
        import flash.display.MovieClip;
        import flash.events.Event;
        import flash.events.MouseEvent;
        import fl.transitions.Tween;
        import fl.transitions.TweenEvent;
        import fl.transitions.easing.*;
        import flash.events.ProgressEvent;
        public class CarouselClass extends MovieClip {
            private vars...
            public function CarouselClass() {
                trace("document class triggered");
                    this.addEventListener(Event.ADDED_TO_STAGE,init);
            private function init(evt:Event):void{
                 texts = new Texts();
                carouselSprite = new Sprite();
                addChild(carouselSprite);
                topContainer = new Sprite();
                carouselSprite.addChild(topContainer);
                hitBar = new HitBar();
                hitBar.x = stage.stageWidth / 2 - hitBar.width /2;
                hitBar.y = 245;
                addChild(hitBar);
                downContent = new DownContent();
                addChild(downContent);
                downContent.y = 325;
                downContent.title_txt.text = "Learning Carousel";
                downContent.description_txt.text = "Click on one of images above to view further details";
                createSections();
            } ... (more functions)

  • Importing XML with html style tags

    I have an xml with an element <description> that contains some styling like, <em> or <b>. What do I need to do in order for me to import the xml into ID and see the italicized words?
    I appreciate any help.

    I have an xml with an element <description> that contains some styling like, <em> or <b>. What do I need to do in order for me to import the xml into ID and see the italicized words?
    I appreciate any help.

  • Importing and Exporting Data with a Clob datatype with HTML DB

    I would like to know what to do and what to be aware of when Importing and Exporting data with a Clob Datatype with HTML DB?

    Colin - what kind of import/export operation would that be, which pages are you referring to?
    Scott

  • Excel issues with importing CSV or HTML table data from URL - Sharepoint? Office365?

    Greetings,
    We have a client who is having issues importing CSV or HTML table data as one would do using Excel's Web Query import from a reporting application.  As the error message provided by Excel is unhelpful I'm reaching out to anyone who can help us begin to
    troubleshoot problems affecting what is normal standard Excel functionality.  I'd attach the error screenshot, but I can't because my account is not verified....needless to say it says "Microsoft Excel cannot access  the file https://www.avantalytics.com/reporting_handler?func=wquery&format=csv&logid=XXXX&key=MD5
    Where XXXX is a number and MD5 is an md5 code.  The symptoms stated in the error message are:
    - the file name or path does not exist
    -The file is being used by another program
    -The workbook you are trying to save has the same name as a currently open workbook.
    None of these symptoms are the case, naturally. The user encountered this with Excel2010, she was then upgraded to Excel2013 and is still experiencing the same issue. The output of this URL in a browser (IE, Chrome, Firefox) is CSV data for the affected
    user, so it is not a network connectivity issue.  In our testing environment using both Excel2010 or 2013 this file is imported successfully, so we cannot replicate.  The main difference I can determine between our test environment and the end-user
    is they have a Sharepoint installation and appear to have Office365 as well.
    So,  my question might more appropriately be for Sharepoint or Office365 folks, but I can't be sure they're  a culprit.  Given this - does anyone have any knowledge of issues which might cause this with Sharepoint or Office365 integrated with
    Excel and/or have suggestions for getting more information from Excel or Windows other than this error message?  I've added the domain name as a trusted publisher in IE as I thought that might be the issue, but that hasn't solved anything.  As you
    can see its already https and there is no authentication or login - the md5 key is the authentication.  The certificate for the application endpoint is valid and registered via GoDaddy CA.
    I'm at a loss and would love some suggestions on things to check/try.
    Thanks  -Ross

    Hi Ross,
    >> In our testing environment using both Excel 2010 and 2013 this file is imported successfully, so we cannot replicate.
    I suspect it is caused by the difference of web server security settings.
    KB: Error message when you use Web query to a secure Web page (HTTPS://) in Excel: "Unable to open"
    Hope it will help.
    By the way, this forum is mainly for discussing questions about Office Development (VSTO, VBA and Apps for Office .etc.). For Office products feature specific questions, you could consider posting them on
    Office IT Pro forum or Microsoft Office Community.
    Regards,
    Jeffrey
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Hello, I just reinstalled Firefox 8.0 and imported my bookmarks.html backup file but the bookmarks toolbar didnt changed with my old bookmarks. Is that a problem or I have to manually add each bookmark again?

    dunno what details to tell you, everything important is written in the question. thanks.

    You'll have two Bookmarks Toolbar folders now. One from the installation of Firefox (the main one) and a 2nd folder from importing a bookmarks.html file.
    Locate the '''''Bookmarks Toolbar''''' folder that is under the '''Bookmarks Menu''' folder and copy or drag'n'drop those bookmarks into the '''Bookmarks Toolbar''' folder that is above the '''Bookmarks Menu''' folder.

  • Problem with HTML viewer

    Dear All ,
    I am facing a problem with HTML Viewer . My senario is as follows :
    1. I have created one HTML page . On that page there are 4 Images
    2. I imported that HTML page in SAP with the help of transaction SMW0
    3. I Called that HTML page in my ABAP program using the method "load_html_document" of class cl_gui_html_viewer
    4. This is happening perfectly ok on the machine on which all this developement was done.
    But the issue is when I execute my ABAP program on a different machine , those Images on that HTML page are not displaying.
    Can you please guide me how to remove that machine dependancy?
    Regards,
    Nikhil

    Hi Nikhil,
    Please check if the image is properly imported properly. Also check if there is any option which you might have forgotten while imported like dependeency.
    Regards
    Abhii...

  • When importing photos with iBooks Gallery widget, is anyone aware of a technique for simultaneously importing the photo's description (or jpeg file name) and writing it into the iBook Author caption field for the imported photo?

    When importing photos with the iBooks Author Gallery widget, is anyone aware of a technique for simultaneously importing the photo's description (or jpeg file name) and writing it into the iBook Author caption field for the corresponding imported photo? I have 4,800 stills to import and can't imagine it's necessary to copy and paste the description for each.

    As always, feel free to use the 'Provide iBooks Author Feedback' menu item for features you'd like added in the future, etc.
    http://www.apple.com/feedback/ibooks-author.html
    As for AS, I'm not sure anyone has sniffed iBA's dictionary yet...google is you friend for hot prospects, I'm sure

  • Please help to send an email with html page in body

    I need an html page on the body of an email to send an email blast to our customers.

    HTML Emails can be a bit tricky. You can design them in Dreamweaver, but you really shouldn't send mass email through your personal email account (or your company account). That could get you blacklisted by corporate spam filters and make your email addresses pretty much useless.
    For mass email campaigns (over a few hundred email addresses) I use http://www.icontact.com.
    You can build the email right through their site (without DW) or you can import your html from DW to their service.
    Some things to keep in mind with HTML email...
    1. Use absolute links to images and files on a server you control
    2. Use a limited amount of inline css (no external or embedded css)
    3. Use table based layouts, css support is spotty at best with email clients
    4. The <head> will be stripped from a number of email clients, don't rely on anything between the <head> tags making it to your recipients
    5. Don't use an image-only email. HTML text is very important to keep it from being labeled spam, make the images secondary to the message, many email clients will not download images without the user's say-so
    6. Include an opt-out link so people can get off your list
    There are more things to watch out for, but those are the big ones. Here is some more good info: http://alt-web.com/Articles/HTML-Emails.shtml

  • Importing songs with foreign languages

    i have imported japanese songs with japanese titles before on this computer. the japanese characters and titles were imported along with the songs, but it suddenly stopped working. not only do the titles not import, but the songs are not imported correctly, resulting in choppy songs. please...help!
    sony laptop   Windows XP  

    i have imported japanese songs with japanese titles
    before on this computer. the japanese characters and
    titles were imported along with the songs,
    For the titles to imported correctly you need to make sure that you still have Asian language support activated in your OS and also that the ID3 tags are correctly encoded.
    http://homepage.mac.com/thgewecke/mlingos9.html#itunes

  • Problems with html content in box

    Hi! I have a problem with html content. For example photoswipe. If I import the folder with the index.html of photoswipe as an article all works fine. If I link it trough the folio overlay creator/webcontent) into a box in indesign dps, it stays empty. Seems like it doesnt find the images/paths??
    Klaus

    This sounds familiar. PhotoSwipe doesn't seem to like working in a web content overlay unless the JavaScript and other source files are uploaded within HTMLResources. This means editing your local HTML file so that paths to the JavaScript, images and CSS files begin by pointing to HTMLResources virtual folder (../../../HTMLResources/) before their subfolder and filenames. It's worth a try.

  • Importing Audiobooks with alternative to Track 1, Track 2, Track 3, ...

    I have an audiobooks with 7 Disc.
    I want to import them with the Track name with Disc 1->1a, 1b, 1c,...., Disc 2->2a, 2b, 2c, 2d, ..., Disc 3->3a, 3b, 3c, 3d...
    I do not want to import as (default): Track 1, Track 2, Track 3 for each of the 7 Disc. I am not interested in using Get Info to manually change the Track name. Is there some type of Itunes Add on for Itunes Windows or something to change in the configuration.
    Otherwise, is there a program that automates the ID3 Track name renaming and maybe the file name too.
    I am sick of importing Audiobooks with several Disc, each with Track 1...X for each Disc.

    I wrote a program to help with importing audiobooks and renaming tracks. It doesn't do quite what you want. First, it only names tracks on import -- there's currently no way to rename existing tracks in your Library. Also, the names don't exactly match what you want. Instead, you can do something like: <disc num><track num>, e.g.:
    For Disc 1:
    0101
    0102
    0103
    For Disc 2
    0201
    0202
    Or you can use letters
    01a
    01b
    01c
    02a
    02b
    The program is free. If you want to try it you can get it here:
    http://www.pobox.com/~teridon/audiobook_helper/index.html
    The forum TOS requires me to say: "I may receive some form of compensation, financial or otherwise, from my recommendation or link" because I have a paypal donation link on my webpage, but the program is free (donation totally optional).
    HTH,
    Rob

  • Distributed programming with HTML DB?

    Hi!
    Has anyone done any distributed programming with HTML DB? If so, are there any crucial factors to be taken into account?
    I thought of extracting the original application, importing it into my DB, changing and creating pages, exporting the single pages and re-importing them into the original application.
    I suspect that creating new pages will cause trouble, but what about changing existing ones? Can they be overwritten without any problems?
    Thanks for sharing your experiences!
    Sabine

    Sabine,
    Do you want to make changes to you application only on a development machine then update production?
    If so then you can make a new version of the application and simply import the entire application back into production. My personal preference is to pick a new application id for the updated application when I re-import. That way my current production app is sitting there unchanged. I then point users to the new version and update the proprieties of the old one to stop users running it (with a message to log into the new application) It also allows me to back out easily if there are problems.
    Chris

  • Passing html from AS3 to Javascript

    I am using WebStageView to pass html from AS3 to a Javascript function in a webpage.
    I do this like:
    var urltext:String = "javascript:setText('aaa','vvv')"
    webView.loadURL(urltext);
    This successfully calls a function in JS named setText  which in turn sets the value of a div  or whatever else I want to do.
    Here is the problem:
    If I want to pass:
    var urltext:String = "javascript:setText('<p>aaa</p>','vvv')"    the formatted text works fine and I get no errors  however,
    if I pass it like this:  
    var txt:String = '<p>aaa</p>';
    var urltext:String = ""javascript:setText('+txt+','vvv')"       then I get a parse error;
    It traces out to look like this:
    urltext: javascript:setText('<p>aaaaa</p>
    ','vvv')
    Notice that there is a return after the   </p>     which is apparently causing the parse error.
    I am loading text from a file and passing it via the above call to JS.
    In short, is there a way to format the text so it doies not cause the parse error?
    Or, is there a better way to pass html strings in a call to Javascript?
    ExternalInterface does not seem to work anymore  and I am avoiding WebStageViewBridge.

    Ain't that the way of it..
    Came up with a solution Minutes after I posted this problem.
    Here it is, just in case:
    var urltext:String = "javascript:setText("+com.adobe.serialization.json.JSON.encode(fileText)+",'vvv')"

  • Importing new bookmark html file without doubling bookmarks

    I saved my bookmarks form my laptop in an html file. now I want to import that file into the bookmarks on Firefox on my netbook.
    the files are basically the same but i have dded several new bookmarks because I was using my laptop and have not used my netbook in awhile.
    how do I import the new html file without doubling the bookmarks that are already on my firefox which is running on my netbook. a lot of the folders are the same.

    There is no option to just import the new bookmarks.
    A few options.
    # Import the HTML file, then use the CheckPlaces extension to remove the duplicates - https://addons.mozilla.org/firefox/addon/checkplaces
    # Use the Firefox Sync extension to synchronize the bookmarks - https://addons.mozilla.org/firefox/addon/firefox-sync
    # If you want bookmarks on the netbook to be replaced with those from the laptop used the method in the following link - https://support.mozilla.com/kb/Backing+up+and+restoring+bookmarks
    With the last method, you backup the bookmarks to a json file and import that file onto the netbook. When you restore a json file on the other computer it will remove all bookmarks that currently exist and replace them with those in the json file.

Maybe you are looking for

  • IMessage issues with iPad, none with iPhone?

    Hi I just got my wifi iPad 2 today. I already have an iPhone and so do a number of my contacts, so I iMessage with all of them (not regular messaging). However when I go to send them an iMessage from my iPad, it says their cell phone number is not re

  • Add button to QA33 ALV output list

    Hi, SAP experts: I need to add a custom button to the ALV output list display in QA33 transaction. I´ve only found the BAdi ALV_SWITCH_GRID_LIST, but it doesn´t fit my requirements at all. Any idea? Thank you very much!

  • VO Substitution error

    Can anyone please inform where exactly am I going wrong with VO substitution? Through Jdeveloper I was able to do substitute the standard VO in DEV & TEST instances. Now currently we are planning to migrate the extension to UAT and soon to PRODUCTION

  • How to enable only one resource profile outof 3 while disabling user in OIM

    Hello, I have 3 resource profile for AD user with 3 diffrent IT resources. When i try to disable the user in OIM, then it disables all the resource profiles attached for that user. I would like NOT to disable one of AD User Resource profile out of 3

  • Post-upgrade?

    Do i have to do post upgrade steps using DBUA or it will be done by the utility. Thanxs in advance