Skip to main content
July 24, 2009
Question

why there is no download?

  • July 24, 2009
  • 1 reply
  • 444 views

Hello!

i've a textfield with an Mouse-Over - Listener because i want do download a file.

the code for downloading is this one

private function datei_laden(event:MouseEvent):void

{

trace(event.currentTarget.name);

var request:URLRequest = new URLRequest();

request.url = "http://sonok.lima-city.de/bg_bild_2.png"

var fr:FileReference = new FileReference();

fr.addEventListener(Event.OPEN, datei_laden_status);

fr.download(request);

//var laden_start:DateiDownload = new DateiDownload();

}

ehen i test it, i am able to choose where i chose the file, but after pressing nothing happens. download_laden_status  - function is a trace("something"), but there is no trace-output and no file on my computer.
the help, as far as i understend, says me that the download will start after choosing a file.
thank you for helping me.

This topic has been closed for replies.

1 reply

July 24, 2009

sorry, i found it - i've to take the var blabla in the head of the as

bye