In case Flash no longer exists; a copy of this site is included in the Flashpoint archive's "ultimate" collection.

Dead Code Preservation :: Archived AS3 works from wonderfl.net

rss

import flash.filters.*;
import fl.transitions.Tween;  
import fl.transitions.easing.*;  
import caurina.transitions.Tweener;
import com.actionscriptbible.Example;
Get Adobe Flash player
by tjoen 08 Nov 2011
    Embed
/**
 * Copyright tjoen ( http://wonderfl.net/user/tjoen )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/1l3k
 */

// forked from hacker_o5nv66b6's forked from: forked from: forked from: forked from: forked from: forked from: forked from: forked from: forked from: forked from: forked from: flash on 2009-10-2
// forked from hacker_o5nv66b6's flash on 2009-9-30
 package 
{
    import flash.text.*;
    import flash.geom.*;
    import flash.display.*;
    //import flash.filters.*;
    import flash.events.Event;
    import flash.net.URLLoader;
    import flash.net.URLRequest;
    import flash.net.URLVariables;
    import flash.events.MouseEvent;
    //import fl.transitions.Tween;  
    //import fl.transitions.easing.*;  
    //import caurina.transitions.Tweener;
    //import com.actionscriptbible.Example;
    import flash.display.MovieClip;
    import flash.text.TextFormat;
    import flash.text.TextField;
    import flash.events.*;
    import flash.system.Security;
    import flash.filters.*;
    import flash.utils.*

     public class Main extends MovieClip {

         private var xmlloader:URLLoader;
         private var xml:XML;
         private var txtField:TextField;
         private var il:XMLList;

         public function Main():void {
                         xmlloader = new URLLoader();
             xmlloader.addEventListener(Event.COMPLETE, onLoaded);
             xmlloader.load(new URLRequest("http://www.muziekhuis.nl/rss.php"));

             var txtFormat:TextFormat = new TextFormat();
             txtFormat.color = 0x666666;
             txtFormat.leftMargin = 20;
             txtFormat.font = "arial";

             txtField = new TextField();
             txtField.width = 465;
             txtField.height = 465;
             txtField.wordWrap = true;
             txtField.selectable = true;
             txtField.multiline = true;
             txtField.htmlText = "";
             txtField.defaultTextFormat = txtFormat;

             addChild(txtField);
         }
         public function onLoaded(e:Event):void {

             var xml:XML = new XML(e.target.data);
             var il:XMLList = xml.channel.item;

             for (var i:uint = 0; i < il.length(); i++) {
var contentArray:Array = il.title[i].split(" - ");

                 //txtField.appendText(il.title[i] + "\n<a href=\"" + il.link[i] + "\"></a>\n\n");
txtField.htmlText +="<font size=\"+2\" color=\"#ff0000\"><b>★ " + contentArray[0] + "</b></font><br>"+ contentArray[1] + "\n<u><a href=\"" + il.link[i] + "\">" + il.link[i] + "</a></u>\n\n";

             }
 Wonderfl.capture(stage);
         }

     }

 }