FORUMS: list search recent posts

making a simple downloadbutton

COW Forums : Adobe Flash

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Frank Feijen
making a simple downloadbutton
on Apr 22, 2008 at 4:21:29 am

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?



Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]