uncle
March 5th, 2008, 05:10 AM
Hi!
I'm trying to make it possible for the user to download a couple off different files from a flash file. I get the download dialog and I can click save. But there it all stops. Nothing more happens. The flash is still running but the download dosent happend. Any ideas or sugestions?
This is the code I'm using:
var fileReference:FileReference = new FileReference();
var urlRequest:URLRequest = new URLRequest("http://mandarin.uncle.se/pinyinordlista.pdf");
try {
fileReference.download(urlRequest, "pinyinordlista.pdf");
}
catch (illegalOperation:IllegalOperationError) {
trace( illegalOperation );
}
catch (security:SecurityError) {
trace( security );
}
catch (security:Error) {
trace( security );
}
I'm trying to make it possible for the user to download a couple off different files from a flash file. I get the download dialog and I can click save. But there it all stops. Nothing more happens. The flash is still running but the download dosent happend. Any ideas or sugestions?
This is the code I'm using:
var fileReference:FileReference = new FileReference();
var urlRequest:URLRequest = new URLRequest("http://mandarin.uncle.se/pinyinordlista.pdf");
try {
fileReference.download(urlRequest, "pinyinordlista.pdf");
}
catch (illegalOperation:IllegalOperationError) {
trace( illegalOperation );
}
catch (security:SecurityError) {
trace( security );
}
catch (security:Error) {
trace( security );
}