I’ve been searching through code FOREVER and can’t find anything helpful or functional yet. Right now I have a page that downloads a file to the user’s computer when you click a button. But, I want to create a loader so that the user can follow the progress of their download as well as a way to go to the next frame on the main timeline when the download is complete.
Can anyone help me out with the code?
This is the working download as of right now:
[AS]stop();
var fileRef:FileReference = new FileReference();
downloadBtn.addEventListener(MouseEvent.CLICK,onReleaseMyButton);
function onReleaseMyButton(event:MouseEvent):void {
fileRef.download(new URLRequest(“http://www.domain.com/song.mp3”), “myFile.mp3”);
}
[/AS]