import com.threads.ThreadSelectionSystem; import com.services.BuckyServices; class com.feeds.FeedItemSelectionSystem extends ThreadSelectionSystem { private var itemsPerRow:Number = 1; private var vertSpace:Number = 1; public function doAction():Void { var theItem:Object = systemData[getCurrentSelection()]; var theDesc:String = stripTags (theItem.desc); /* if (theDesc.length <= 1 ) trace ( stripTags (theItem.desc) ); else trace (theItem.link ); */ getURL (theItem.link , "_blank"); /* for (var prop in theItem) { trace (prop + " : " + theItem[prop]); }*/ } private function stripTags (s:String):String { var gay:Boolean = false; var a:Array = s.split (""); var b:Array = new Array (); for (var i = 0; i < a.length; i++) { if (a[i] == '<') { gay = true; } else if (a[i] == '>') { gay = false; } else if (!gay) { b.push (a[i]); } } /* var final:String = b.join(""); trace ("final == " + final); return final; */ return b.join (""); } };