Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




FileReference Wont Download



Code:
var fileRef:FileReference = new FileReference();
var url:String = "https://mysite.com/"+activeLocation.fileName.text;
fileRef.download(url, activeLocation.fileName.text);
everything seems to start out fine. when i click my download button to activate this part of the script, the box pops up to select a location to save to, it has the correct filename and path in it. but when i click save, nothing happens. the box disappears, but the file doesnt actually download to my computer. any ideas?



ActionScript.org Forums > ActionScript Forums Group > ActionScript 2.0
Posted on: 09-05-2008, 03:28 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Download (método FileReference.download)
Hello!

I am writing from Colombia, so I hope forgive me for my English so basic and aid translator.

My question is this:

I need to use the method: download (FileReference.download method)
to be updated a number of flv I have a computer but the disadvantage is that the customer asked me that was so hidden without participation of a user with keyboard or mouse, you can perform this task?

Thanks

FileReference Download
Hi,

Gotta an issue with my class I am trying to create, root of the problem is the FileReference download! Basically can anyone suggest why I am not getting an OS window to open here, basically success == false all the damn time? The _trackUrl and _trackName are being passed from the TracksXmlLoader class...

Any ideas? Cheers Si


Code:
// imports
import flash.net.FileReference;
import mx.utils.Delegate;
// create class
class Test extends TracksXmlLoader {
// class variables
private var _fileReference:FileReference;
private var addListener:Function;
// class constructor
public function Test (url:String) {
super (url);
//create a new FileReference object with the instance name '_fileReference'
this._fileReference = new FileReference ();
//add 'this' as a listener to '_fileReference'
this._fileReference.addListener (this);
setUp ();
}
public function optionDownload ():Void {
// create reference to the _trackName & _trackURL because I cannot workout
// how to reference them in this class by any other means???
var _trackName:String = _trackName;
var _trackURL:String = _trackURL;
super.optionDownload ();
}
private function setUp ():Void {
this.setupStart ();
}
//invoked by 'setUp()'
private function setupStart ():Void {
_root.download_btn.onPress = Delegate.create (this, this.openDownloadDialog);
}
private function openDownloadDialog ():Void {
var success:Boolean;
//open OS window and specify the path to the file to download and the file name that will be displayed
success = this._fileReference.download (_trackURL, _trackName+'.mp3');
//if the OS window failed to open
if (success == false) {
_root.download_btn.download_info.text = "OS window failed to open";
}
}
}

Filereference For Download
Hello

When I use this code to download a pdf

Code:
private function downloadPDF(event:Event):void{
fileRef.download(new URLRequest("pdf/rusland.pdf"), "rusland.pdf");
}
I only download this Flashtmp0.tmp file

The path is correct, does anyone know what the problem could be?

FileReference.download
Hi.

I hope someone from this forum can tell me if can be done because on other sites nobody could give me a specific answer. Is it possible to download files without user having to prompt for each individual file? the problem is i have to download some files from a podcast and save them locally, but i don't want the user to have to click ok every time i download a file.

Thanks,
Adrian

Download Filereference
Every time i activate the download() script, my fullscreen projector flash file goes out of fullscreen mode, is there a way to prevent this? and i still wanna know how i can make a web browser in flash without flash wrapper, i know it's possible

FileReference.download();
I'm using an example for download () method from Help (class FileReference_download); it works perfect with .pdf or .rar files, but doesn't work with .doc file. No messages, just doesn't download anything... How can I download .doc file?

FileReference.download
I'm using the FileReference.download method, the browse window opens but when I click on "SAVE" button the file isn't saved on local PC.







Attach Code

var file:URLRequest=new URLRequest("http://www.MYWEBSITE.ltd/folder/object.gif");
var fr:FileReference=new FileReference();
fr.download(file);

Possible FileReference.download() On A CD?
I have a slideshow on a CD and the client wants me to put a button in so the user can save the images to their hard drive. I have this right now:


PHP Code:



function loadItem(itemID) {    var large = _root.gal.firstChild.childNodes[itemID].attributes.image;    largeMCL.loadClip(large, _parent.photoHolder);    _parent.saveBtn.onRelease = function() {        var fileRef:FileReference = new FileReference();        var url:String = large;        if (!fileRef.download(url, "image.jpg")) {            trace("couldnt open box");        }    };} 




Apparently, you have to pass it an absolute url http://blahblah.com/image.jpg

I need to pass a relative URL though since its local..any ideas??

FileReference.download
when i click. the save window opens but the image is not saved, what am I doing wrong? i have uploaded it to a test server by the way and it still doesnt work...

Code:
var myImgURL:String = 'http://www.mysite.com/images/image1.jpg';

Code:
fileDwnld.addEventListener(MouseEvent.CLICK, function down (evt:Event) {
var fileReference:FileReference = new FileReference( );
var urlRequest:URLRequest = new URLRequest(imgURL);
fileReference.download(urlRequest);
});

FileReference.download()
I'm setting up a small flash app to download files. Boss wants to obscure the file path as much as possible. It works locally, but not on the remote sever. I've heard of issues regarding same domains. But I've also tried different paths from other domains with no luck. Can anyone point me in the direction of things I should be looking into?

Edit: Got it to work. Originally I had it prompt the download through the initialize function, but this only worked locally. Switching to an event seems to have corrected the problem.

But, since I have a thread going. How can I track the progress and display it? Anyone know of any tutorials? Finding alot of information when it comes to the upload process, but not the other way around.

FileReference Download From Another Domain
I have on my site e.g. site.com one swf with FileReference download button.
I must downoad it for other site e.g. www.someothersite.com.

Locally it works, but on the server I have no response from my download button.
In my code I added the : System.security.allowDomain("http://www.someothersite.com");
but I dont know if is it neccessary, because it not works with this code also.

FileReference.download Fail
I use download of FileReference,like follows:

Code:
public class Test extends Sprite{
public function Test(){
var fileReference:FileReference=new FileReference();
var urlRequest:URLRequest=new URLRequest("http://localhost:8080/Test.swf");
try{
fileReference.download(urlRequest);
}
catch(e1:IllegalOperationError){
trace(e1.message);
}
catch(e2:Error){
trace("error");
}
}
when I run above code,it show a download dialog,then I click button ok,it shoud download Test.swf into my computer,but in fact,it don't save Test.swf into my computer and don't raise any errors!
Why download failed? How to do it?
Thanks!

FileReference.download Failing
I'm trying to use FileReference.download for a user to download a file. (obviously)

It's working just fine, for probably 99% of our users. However, for one user in particular, the "Save As..." dialog box never appears. Does anybody know of any firewall/anit-virus/other security settings that could block this? It's happening in FF 2.0 and IE 6, with Flash Player 9.

FileReference.download Headache
Hey everyone!
Been trying to get a button in my flash site to download a file using FileReference. I get the download window and all but it just won't download anything at all. Now I know a lot of people have asked this before but seems no one ever got a half decent reply that would actually help to resolve this issues. So I hurge those who know how this works to post replies and give all those of us "newbies" a chance to learn and stop bothering you with the same stuff over and over.
This is a cry for help from lots of users out there.









Attach Code

DL01.onRelease = function() {
import flash.net.FileReference;
var listener:Object = new Object();
listener.onSelect = function(file:FileReference):Void {
trace("onSelect: "+file.name);
};
listener.onCancel = function(file:FileReference):Void {
trace("onCancel");
};
listener.onOpen = function(file:FileReference):Void {
trace("onOpen: "+file.name);
};
listener.onProgress = function(file:FileReference, bytesLoaded:Number, bytesTotal:Number):Void {
trace("onProgress with bytesLoaded: "+bytesLoaded+" bytesTotal: "+bytesTotal);
};
listener.onComplete = function(file:FileReference):Void {
trace("onComplete: "+file.name);
};
listener.onIOError = function(file:FileReference):Void {
trace("onIOError: "+file.name);
};
var fileRef:FileReference = new FileReference();
fileRef.addListener(listener);
var url:String = "http://www.newopenart.com/teste01/Compositions/Arabesque1_igr.igp";
if (!fileRef.download(url, "Arabesque1_igr.igp")) {
trace("dialog box failed to open.");
}
};

























Edited: 11/09/2007 at 04:51:31 AM by Dokratos

FileReference Download Problem
Hi
I want to use the FileReference to download something from the server to you desktop. All works great on IE, but not on Firefox. The download window appear, but no file is saved when we click ok.

There is no error dispatch, and I have the Flash file on the same server of the JPG file.

Any Idea

Btn To Cancel FileReference Download
Hi, I can't figure out how to make a button cancel downloads started using FileReference. Below is the code that is used to start the download. If you could let me know the right code to put in the on(release) of my cancel button that would be great. Thanks!

import flash.net.FileReference;
var listener:Object = new Object();
listener.onCancel = function(file:FileReference):Void {
//the code for what to do when user hits cancel on dialogue box
};
listener.onOpen = function(file:FileReference):Void {
//etc etc these listeners go on
};

FileReference.download Headache
Hey everyone!
Been trying to get a site to download a file using FileReference. I get the download window and all but it just won't download anything at all. Now I know a lot of people have asked this before but seems no one ever got a half decent reply that would actually help to resolve this issues. So I hurge those who know how this works to post replies and give all those of us "newbies" a chance to learn and stop bothering you with the same stuff over and over.

Anyway, here's my AS as it is at the moment:

Code:
import flash.net.FileReference;
_root.container.contentMain.DL01.onRelease = function() {
var fileRef:FileReference = new FileReference();
fileRef.addListener(listener);
var url:String =
"http://www.newopenart.com/teste01/Compositions/Arabesque1.igp";
if(!fileRef.download(url, "Arabesque1.igp")) {
trace("dialog box failed to open.");
}



Hope anyone will help. Thank you for any replies!

Filereference Download Extension
Hi there,
i've got a pic gallery from kirupa which i modified a bit.
I've added a download button with filereference. The thing is everthing works when the download button is pressed.
But if somebody wants to download a picture and wants to change the name the file isn't recognised because the extension is lost.
Flash doesnt read after the dot (example .jpg). If you dont change the name of the file which you save it keeps its extension.
here's my code for the download and the link

Code:
/////////////////////////////////////
// DOWNLOAD CODE
import flash.net.FileReference;
var fileRef:FileReference = new FileReference();
var listener:Object = new Object();
fileRef.addListener(listener);
listener.onCancel = function(file:FileReference):Void {
trace(file.removeListener(this)); // GEANNULEERD
}
listener.onProgress = function(file:FileReference, bytesLoaded:Number, bytesTotal:Number):Void {
downloaded = Math.round(bytesLoaded / bytesTotal *100)+"%";
if (bytesLoaded == bytesTotal){
downloaded_mc._visible = true;
downloaded_mc.play();
downloaded = "";
}
}

function downloadPICT(){
fileRef.download(url+download[p]);
}
ive tried to put it like this but it doesnt work

Code:
function downloadPICT(){
fileRef.download(url+download[p]+".jpg");
}
PS download[p] is read from an XML file its the link to the downloadfile, which looks like this

Code:
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<images titel="DJ CHUCKIE" omschrijving="HEINEKEN FULL MOON PARTY" datum="VRIJDAG 5 JANUARI">
<pic>
<image>djchuckie/dd001.jpg</image>
<thumbnail>djchuckie/THUMBS/dd001.jpg</thumbnail>
<download>djchuckie/DOWNLOAD/dd001.jpg</download>
</pic>

Filereference Vs Forced Download Php
Hi... sorry but posted it also on actionscript 1.0/2.0
a time ago was playing around with filereference because i wanted to make photogallery with a option to download the pictures. I took me a couple hours to figure it out and get it working. see here problem is/was that people cant change the name of the file because i wont be recognized anymore. you good put the extension behind the name, but not everybody knows that. So lately i was searching for a solution. Why isn't it possible to put an extension while saving with filereference. I couldnt find the answer. But i stumbled into a small solution. force it with php. this will keep the file extension. a pity is that i lost my download bar and function with this. check it out here if someone wants the code mail me. toubmor

AS2 - FileReference: Download Problems
Like the title says. I have a few small problems with the fileReference.download, it may or may not be an actionscript problem or a php one. Anyhow.

I use a php script to dynamically create a large zip file from files in a locked folder to download. The preloader always returns -1 as the totalbytes. This either causes my progress bar to screw up or move in the opposite direction. I'm referencing the php file itself and not the dynamically created temp file.

The other thing is if the file is a larger file (50mb or so) I get a "a script is causing the flash player to run slowly" error. Although the movie is running fine. Any ideas on how to avoid this?

FileReference.download From Projector?
OK, I set up an application to help people pick from our crazy huge pile of corporate logos, and it all works perfectly (if you want to check out a small working version you can find it here http://home.comcast.net/~tlajoie/Flash/logosapp.html , only one corporation is in the list box for this, and only some of the files are on the web, AND only the JPG files, becuase I don't have the 600+ megs to host the whole shebang at home...)

Now they're asking if we can distribute the applicaiton on CDs for the end-users to use offline, but when I don't give the fileReference.download code a valid web address ("http://www.whatever.com/logos/somefile.jpg") but rather give it the relative address to the files on the CD ("/logos/somefile.jpg") it doesn't work.

Anyone have any experience on downloading files from projectors off of CD-ROMs during a full moon on the second Thusday of the month?

FileReference Download From Another Domain
I have on my site e.g. site.com one swf with FileReference download button.
I must downoad it for other site e.g. http://www.someothersite.com.

Locally it works, but on the server I have no response from my download button.
In my code I added the : System.security.allowDomain("http://www.someothersite.com");
but I dont know if is it neccessary, because it not working with this code also.
__________________

[CS3] FileReference Download Renaming File
Is there a way to restore the extension of a file if a user renames it when downloading it? Or at least, is there a way not to allow users to rename files?

For what i´ve seen, if I set up my windows to hide extensions, and when I download a file I rename it, it will lose the extension even if it is not showing.


thanks!

FileReference Download Cross-domain
I tried to make download file across domain but it not working on Flash Player 9.
Must I specify server-side policy files for permitting access to data?
Have you experience with this?
Strange for me is that the same code is working if I start the SWF localy.
If I upload the SWF on the server, than the same code in not working.
Thank you for tips or help

FileReference Download From External Site?
I have an app that's used to listen to streaming mp3 files hosted on external sites (not my content). I want to add a function to the app that will allow the user to download the mp3 to their hard drive. The FileReference class looks very promising, but I haven't been able to get it to work.

Here's the relevent portion of the code:


ActionScript Code:
var fileRef:FileReference = new FileReference();

function downloadFile(track):Void
{
    var fileRef:FileReference = new FileReference();
    // track.location is a string specifying the url of the file
    var url = track.location;
   
    trace(" downloadFile:
  url: " + url );
    trace("  success? " + fileRef.download(url));
}

Will FileReference work in this case, or is it limited to the domain the flash app resides on? Is there some other way I could do this?

FileReference.download Losing Extensions
I need to allow a user to download images from my app, but everytime a user attempts to download, the extension is stripped from the filename I provide.

This is only happening in Firefox & IE on Windows. It's working just fine on OSX.

I'm using FileReference.download(), and specifying the filename as "imageX.jpg". However, when the file dialog opens on Windows to save the document, only "imageX" is shown as the filename, and the extension is never saved. In the "Save As type..." field, there is only the "*.*" option available.

The majority of our users aren't technically savvy, so a lot of them don't realize that if they put a .jpg extension on the file they just downloaded, they'll be able to view the image.

Any ideas what's up?

FileReference.download Multiple Files?
Hi,
How can I download multiple files from a folder?

I have an array image_array which contains all my file names.

At the FileReference Complete method I call a function to load the next image in, like:

myitem = image_array[z];
file_fr.download(filePath);

But this action onComplete will always open a new Window to save the file to the desired location.
The visitor will have to press the SAVE button in the window again to download the next image.
Can I make a process to avoid opening the Window, just download the next file in the array?

Thank you for your help.
Luciewong





























Edited: 09/08/2007 at 11:26:51 AM by luciewong

Filereference Download Issue On Some Browsers
Hi, Im having a filereference download issue which is turning out to be rather elusive. I have it working great on my comp in ie, however on my comp with firefox, or with any browser on my father's computer we get the file browser popup and when we hit "save" everything SEEMS to go OK but the file doesnt get downloaded. Weve checked and re-installed all the browsers / flash plugins, and nothing has changed. No error handelers get tripped, and Ive checked the scope issue. The following is the code Im using, published to flash 8 AS 2.

import flash.net.FileReference;
_root.vars.fileRef = new FileReference();
_root.functions.getit = function(){
_root.vars.fileRef.download("

File Upload / Download Via FileReference
Hello folks,

I'm rather new to Flash, however I like how it performs over Java applets so I'm really pushing to design our client code in Flash AS3. Anyways, yesterday someone pointed out that I could use the FileReference class to facilitate an upload/download to/from a remote server. This was very exciting, but after delving into Adobe's documentation, I see that they only officially support this for file sizes up to 100MB :( Given that it is 2008 where I have multiple gigabytes on my thumb drive, 100MB isn't a practical limitation for us. Adobe goes on to say that there is no limitation, they just only support up to 100MB -- I'm not sure what that means, but it doesn't make me too comfortable. The next question I have is whether it is possible to resume an upload/download that aborts for whatever reason (lost internet connection, browser crashes, etc, etc.) I know the remote server software will need to support resume (not a problem, I'm writing that too) however, I need to know what the Flash software can do in terms of resume. I see there is a progress event with bytesLoaded, however I'm getting the impression that property is read-only (ie. I couldn't position it to where I wanted to continue??)

Finally, is there a way to modify the flash content that is being uploaded / downloaded? The data is encrypted and I need to either encrypt before uploading or decrypt before saving to the users computer.

Like I said, overall I like the performance of Flash over Java applets, however I'm starting to feel as if Flash isn't powerful enough to meet my needs :( I hope someone can prove me wrong so I can stick with it!

Thanks!

Mike

FileReference Download Cross-domain
I tried to make download file across domain but it not working on Flash Player 9. Must I specify server-side policy files for permitting access to data? Have you experience with this? Strange for me is that the same code is working if I start the SWF localy. If I upload the SWF on the server, than the same code in not working. Thank you for tips or help

Download .pdf With FileReference Causing Errors
Hello,
I'm trying to set up a button that will download a .pdf file when clicked. I'm using the FileReference.download(url) method, and it returns an error in my browser.

After I select the location I want to download to it says that:
SHOCKWAVE FLASH
This plug-in performed an illegal operation. You are strongly advised to restart fireFox.

Does anyone know why this would be or what I can do to fix it?

Thanks,
iLan

FileReference.download Must Take Absolute URL (not Relative)?
Im using this code


Code:
var fileRef:FileReference = new FileReference();
fileRef.addListener(listener);
var url:String = "images/img1.jpg";
fileRef.download(url, "image.jpg")

However, it doesn't work. It works when I put the full absolute address, instead of simply "images/img1.jpg" . Is there any way to use a relative address?!?!? Probably attach the relative address to the URL property ??

Thanks!

FileReference Download File Type
Hi, i checked on the adobe as 2.0 reference docs for fileReference download method. It states:
"This method supports downloading of any file type, with either HTTP or HTTPS. You can also send data to the server with the download() call by appending parameters to the URL, for the server script to parse."

I'm trying to get a file to download of a certain type (an XML file), at the moment i just parse a file name of testFile.xml into the download method - this works as long as the user does not change the filename being saved in the file browser.

I find the reference doc a little vague, by "appending parameters to the URL, for the server script to parse." does it mean I would have to parse this to say a php file first?

I hope someone can point me in the right direction so I can achieve a download where the filetype is prespecified.

FileReference Download File Extension
I'm trying to get my flash movie to allow the user to download a file of a specific extension, at the moment i use:

Code:
var fileSave:FileReference = new FileReference();
fileSave.download("./files/save.xml?cacheBuster=" + new Date().getTime(),"myLOAM.xml");
This works as expected and opens up a browser download window with the filename "myLoam.xml" and the file type "All files (*)"

Two problems:
a) If the user changes the file name in the browser before clicking save (and doesn't re-add the .xml extension) then the file is saved without an extension
b) Randomly, tested on two windows xp systems both in IE one included the extension in the filename on the browser download window and one didn't (which doesn't make it clear to the user they have to include the extension as part of the name) but both saved to the correct xml extension file

Want help with:
a) If there is a work around so I can specify the exact file type, in the adobe reference manual it states you can parse in extra parameters to server with the file location to download. How would i do this?
b) If can't do a, how can I get it to always display the extension in the browser download window (unlike in problem b )

FileReference.download() Skip OS Dalog Box
Hi All

Is there any way to start a download automatically instead of it poping up the operating system dialog box?

Any help would be appreciated

Thanks in advanced

FileReference Download Cross-domain
I tried to make download file across domain but it not working on Flash Player 9.
Must I specify server-side policy files for permitting access to data?
Have you experience with this?
Strange for me is that the same code is working if I start the SWF localy.
If I upload the SWF on the server, than the same code in not working.
Thank you for tips or help

FileReference.download() Not Triggering Save As... Dialog
I'm trying to use FileReference.download for a user to download a file. (obviously)

It's working just fine, for 99% of our users. However, for one user in particular, the "Save As..." dialog box never appears. Does anybody know of any firewall/anit-virus/other security settings that could block this? It's happening in FF 2.0 and IE 6, with Flash Player 9, using AS 2.0.

Download Pics With FileReference Doesn't Work All The Time?
Just discovered FileReference to download pictures from a website, without the need for a serverside script.
The only problem though is that i've been testing it a bit, and you really can't trust this. Half of the time the download stops at the 'onSelect' event.
So the dialogue box is opened, a location selected for storage, and then the download just doesn't start.... this is frustrating, because it's not really user friendly...
first i thought that it could be the server that doesn't respond, but i don't think that's the problem because i can still browse through all of the pics, so the server DOES respond.

Does anybody know if there is a way of assuring that the download actually starts after the onSelect event?

thanks!

i've added to code that i use, but it's basically cut and paste from Flash's help menu, so i don't think that this could be the problem.


ActionScript Code:
downloadListener.onSelect = function(file:FileReference):Void
    {
        debug_txt.text = "onSelect: " + file.name;
    }

    downloadListener.onCancel = function(file:FileReference):Void
    {
        debug_txt.text = "onCancel";
    }

    downloadListener.onOpen = function(file:FileReference):Void
    {
        debug_txt.text ="onOpen: " + file.name;
    }

    downloadListener.onProgress = function(file:FileReference, bytesLoaded:Number, bytesTotal:Number):Void
    {
        debug_txt.text = "onProgress with bytesLoaded: " + bytesLoaded + " bytesTotal: " + bytesTotal;
    }

    downloadListener.onComplete = function(file:FileReference):Void
    {
        debug_txt.text = "onComplete: " + file.name;
    }

    downloadListener.onIOError = function(file:FileReference):Void
    {
        debug_txt.text = "onIOError: " + file.name;
    }

   
    var fileRef:FileReference = new FileReference();
    fileRef.addListener(downloadListener);
    var url:String = downloadPicUrl;
    fileRef.download(url);

Mimicking SaveAs Rightmenu Action - FileReference.download() Or PHP
A client asked me why it's not possible to do a "Save as" action
in it's "brand new" "under construction" Flash website.
I used to make a simple php page to download files from a website...
never needed to do it from an swf file but after a few tests...
1) I call an external php
- if I call it in a "_blank" window the popup is probably (often) stopped by some toolbar or limitation in scripts execution, when the popup isn't stopped the download works fine (download starts and it's possible to monitor progression in the downloads_browser_window) but it remains an opened php white page
- if I call it in "_self" the download works but I cannot see the progression of it in the downloads_browser_window
2) I use FileReference Class
- the download works and I'm able to monitor download events from inside the swf file (by FileReference event objects) but... the client say me that he is expecting to see the download progression in the download_browser_window instead of a progression bar inside the swf_webpage where he started the download...



So
How can I
- launch the download of a file from actionscript
AND
- see the progression in the download_browser_window

without asking the user to change his popup settings for the website...


The client is really upset because he wasn't so sure in using Flash
and I pushed him in this direction...
now he is complaining for this "Save As" thing, for Search Engine Related Problems...





Any help is really, really appreciated
thanks
Jo

A Download Link Gets Blocked By Sucurity Warning On IE7... Any Solution To Let People Download Without Having That?
Anyone can kindly tell me how to create a download link (for zipped file) in a flash site that allows IE7 users to download without getting blocked by security message?

The message says "To help protect your security, Internet Explorer blocked this site from downloading files to your computer".

I've tried getURL("

A Download Link Gets Blocked By Sucurity Warning On IE7... Any Solution To Let People Download Without Having That?
Anyone can kindly tell me how to create a download link (for zipped file) in a flash site that allows IE7 users to download without getting blocked by security message?

The message says "To help protect your security, Internet Explorer blocked this site from downloading files to your computer".

I've tried getURL("

Urgent Help: FlashTyper Download Or Any Other Free Text Animator Download
Hi,

Someone Please help me where to download FlashTyper(Other than Flashkit.com as it is very busy) or any other similar download.

Thanks

Mohammed

Audio Download Link From Flash To Download Dialog
I am defining a URL to an MP3 file and then having a button use getURL onPress to open it. On my computer, this opens a dialog box to save the file.

However, on some computers, it opens the file in Quicktime in browser, I'm guessing just because Quicktime is configured to do so for them.

I want the link to always go to the regular save dialog box, so that it doesn't go away from my full screen Flash site, and so the user can download the file instead of just listening in browser.

Any ideas on how to do this, either by using a different link or a different method?

Download Window Or Forced Download Instead Of Quicktime / Wmp
Hello Forum!-

I have been building my website in flash and have a simple question that I cannot figure out for some reason (maybe its too simple) . Anyhow I have uploaded my mp3 songs of my music and used the geturl and _blank so that when someone clicks on my link the music opens right into thier quicktime player (if on mac) or windows media player (if on pc). I want the user to be able to download the mp3 to there computer (ie like a normal download window appears stating "do you want to download this file to disk" is there some other code or line I need to add ???? It seems so simple? I would really appreciate the help as I have tried a number of things with no success. I have seen that I have to use FileReference but I do not completely understand it

here is what i currently have which is not working... I have a button that I created and placed this in the action within the button

import flash.net.FileReference;
var gettheFile = "http://www.someURL.com/someFolder/mysong.mp3";
var fileRef:FileReference = new FileReference();
function givemetheFile(){
fileRef.download(gettheFile, 'mysong.mp3')
}
yourButton_mc.onRelease = function(){
givemetheFile();
}


any suggestions help or solutions would really help me thanks!

Matt

How To Download The Akamai Download Manager
Hi. I was trying to download the Flash CS4 Trial to try it out, but it told me I needed the "Akamai Download Manager." I searched around for it, but I could not find how to download the actual download manager itself! (I am using Mac OS X if that's relevant by the way).

Can anyone direct me to the download page?

Thanks,
Sportzguy933

Filereference
having real difficulty with this class. can anyone explaain, in real terms

also, i dont think i understand it right, but COULD i load a sound from an end users computer, to the ram for use within the file, say using a sound in like a sampling environment

FileReference
hi i need help in uploading image using flash FileReference and PHP technology if anyone knows then do let me know. thanx in advance. plz do help me in this as i m stuck in it for quite a long time now.


once again thanx for taking out ur time to give me the solution.

psb

[AS2] FileReference
Dear All,
I tried to write an actionscript code to upload files. I used FileReference.
I debug every phases (onSelect,onCancel,onOpen,onProgress,onComplete,on IOError) and found out that my code stops on the onSelect. It does not say why it stops running. I have got no onIOError or any other error messages.
Any ideas of how can I make my debugging with more information ? I've google it, but the example I've got is pretty much what I have in my code.

Thanks.

[F8] Please Help With FileReference
Hi guys,

I'm 'playing' with the FileReference class. I've used the example provided within the help. My code looks like this one:
import flash.net.FileReference;
var selectedFile:FileReference;

var listener:Object = new Object();
uploadBtn.onPress = uploadImage;

var uploadDir:String = "./uploadedFiles/";
var pathUploadScript:String = "/_uploadScript.php";
listener.onSelect = function(selectedFile:FileReference):Void {
attachment = selectedFile.name;
selectedFile.upload(pathUploadScript+"?uploadDir=" +uploadDir);
};
function uploadImage(event:Object):Void {
imageFile.browse([{description:"Document", extension:"*.txt;*.doc;*.rtf"}]);
}
var imageFile:FileReference = new FileReference();
imageFile.addListener(listener);

listener.onOpen = function(selectedFile:FileReference):Void {
_invia.enabled = false;
_displai.htmlText = "<font color='#ff0000'>Uploading: "+selectedFile.name+"</font>";
};
listener.onComplete = function(selectedFile:FileReference):Void {
_displai.htmlText = "<font color='#ffffff'>"+selectedFile.name+"</font>";
attachment = selectedFile.name;
};
As you can see the file is uploaded as soon as it has been selected. Now, what I want to achieve is to upload the file when a button is pressed. I've tried several ways but no one works.

Any suggestion

Thanx, giano

Copyright © 2005-08 www.BigResource.com, All rights reserved