summaryrefslogtreecommitdiff
path: root/bPod/com/files/FileSelectionSystem.as
blob: d93ea583515d17bd4010ee7e1fc9949c9fac7f67 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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");	}
	}
};