My Code
Use an Item Renderer to create a Component that will load up a given URL. The easiest way is to use the LinkButton Control
Wednesday, September 3rd, 2008MainApplication.mxml
3:
4:
5: import mx.collections.ArrayCollection;
6: [Bindable]
7: public […]
Flash Multi File Upload
Monday, June 30th, 2008import com.adobe.serialization.json.JSON
// button name browsebtn,uploadbtn
browsebtn.addEventListener(MouseEvent.CLICK,browse);
uploadbtn.addEventListener(MouseEvent.CLICK,upload);
//var fileRefList:FileReferenceList = new FileReferenceList();
var instance:Object = new Object();
instance.fileList = new Array();
instance.multiple = true;
instance.queued = true;
instance.fileList = new Array();
instance.fileProgress = new Array();
instance.progress = {
filesFinished: 0,
filesTotal: 0,
bytesFinished: 0,
bytesLoaded: 0,
bytesTotal: 0
};
function browse(typeFilter:Object = null):Object {
if (instance.fileReference) return false;
instance.fileReference = new FileReferenceList();
//instance.fileReference.addEventListener(Event.SELECT,selectHandler);
[…]

