summaryrefslogtreecommitdiff
path: root/bPod/com/feeds/FeedItemSelectionSystem.as
diff options
context:
space:
mode:
authorJules Laplace <carbon@melanarchy.org>2013-08-02 17:14:26 -0500
committerJules Laplace <carbon@melanarchy.org>2013-08-02 17:14:26 -0500
commit79670053c7247d3a49b607960efd284e93f057e5 (patch)
tree9617f6eefa38b2686ae409bf75cc27a340444eda /bPod/com/feeds/FeedItemSelectionSystem.as
parentc53827d5d044ae5ca7ebb27acb404b7a8988918e (diff)
install.pl
Diffstat (limited to 'bPod/com/feeds/FeedItemSelectionSystem.as')
-rw-r--r--bPod/com/feeds/FeedItemSelectionSystem.as64
1 files changed, 64 insertions, 0 deletions
diff --git a/bPod/com/feeds/FeedItemSelectionSystem.as b/bPod/com/feeds/FeedItemSelectionSystem.as
new file mode 100644
index 0000000..e928f73
--- /dev/null
+++ b/bPod/com/feeds/FeedItemSelectionSystem.as
@@ -0,0 +1,64 @@
+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 ("");
+
+
+ }
+
+}; \ No newline at end of file