|
Hi there,
i was trying to create a simple webpage with a button to download a quicktimefile using the following code:
import flash.net.FileReference;
import flash.display.Sprite;
import flash.events.*;
import flash.net.URLRequest;
import flash.net.FileFilter;
function linkdownload480 (event:MouseEvent):void
{
var request:URLRequest = new URLRequest("http://fishcanfly.be/video_quicktime_H264/carre_champ_H264.mov");
var fileRef:FileReference = new FileReference();
fileRef.download(request);
}
bttn.addEventListener(MouseEvent.CLICK, linkdownload480);
Unfortunately, this doesn't seem to work. basic example on http://fishcanfly.be/Frank_testmovies/test2/downloadknop.html
The where-to-save menu popsup, you can click save but nothing seems to happen.
What am i missing here?
Or is there a better solution to do this?
Respond to this post • Return to posts index
| |