Creative COW SIGN IN :: SPONSORS :: ABOUT US :: CONTACT US
ADOBE FLASH: Adobe Flash ForumAdobe Flash TutorialsAdobe Flash Video TutorialsWeb Streaming ForumAdobe Flash

making a simple downloadbutton

Cow Forums : Adobe Flash
making a simple downloadbutton
by Frank Feijen (fefson) 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?



Respond to this post   •   Return to posts index

<< PREVIOUS THREAD   •   VIEW ALL THREADS   •   PRINT   •   NEXT THREAD >>


FORUMSTUTORIALSMAGAZINEDVDsBOOKSPODCASTSEVENTSSERVICESNEWSLETTERNEWSBLOGS

© CreativeCOW.net All rights are reserved.

[Top]