diff options
| author | Jules Laplace <carbon@melanarchy.org> | 2013-08-02 17:14:26 -0500 |
|---|---|---|
| committer | Jules Laplace <carbon@melanarchy.org> | 2013-08-02 17:14:26 -0500 |
| commit | 79670053c7247d3a49b607960efd284e93f057e5 (patch) | |
| tree | 9617f6eefa38b2686ae409bf75cc27a340444eda /bPod/com/files/FileSelectionSystem.as | |
| parent | c53827d5d044ae5ca7ebb27acb404b7a8988918e (diff) | |
install.pl
Diffstat (limited to 'bPod/com/files/FileSelectionSystem.as')
| -rw-r--r-- | bPod/com/files/FileSelectionSystem.as | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/bPod/com/files/FileSelectionSystem.as b/bPod/com/files/FileSelectionSystem.as new file mode 100644 index 0000000..d93ea58 --- /dev/null +++ b/bPod/com/files/FileSelectionSystem.as @@ -0,0 +1,19 @@ +import com.threads.ThreadSelectionSystem;
+import com.services.BuckyServices;
+
+class com.files.FileSelectionSystem extends ThreadSelectionSystem {
+
+ private var itemsPerRow:Number = 1;
+ private var vertSpace:Number = 1;
+
+ public function doAction():Void {
+
+ var theItem:Object = systemData[getCurrentSelection()];
+ var fileURL:String = BuckyServices.singleFilePath + theItem.filename;
+
+ _root.debug.text = theItem.theURL;
+
+ if (theItem.filetype == "MP3") { _root.player.init ( theItem ); }
+ else { getURL (theItem.theURL, "_blank"); }
+ }
+};
\ No newline at end of file |
