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


ActionScript 2.0 :: Without HTTP Protocol?

I'm trying to create a simple flash app that runs on the CD. I need to let user save some files from the CD to their local.

This script works:
ActionScript Code:
var listener:Object = new Object();
listener.onComplete = function(file:FileReference) {


View 0 Replies (Posted: 01-10-2010, 04:32 AM)

Sponsored Links:

Related Forum Messages For Flash category:
ActionScript 2.0 :: [FMX] HTTP Is Not A Registered Protocol?
Anyone ever received this message after using the "on (release)" and "getURL" scripts for a button hyperlink? You would think I had a typo somewhere, but I don't see one. Every button hyperlink produces this message then goes to the intended page after clicking "OK".

Posted: September 12th, 2005

View 11 Replies!   View Related
Media Server :: HTML 5 And Use Of HTTP Protocol
In our company we upgraded to fms 4 and installed the apache that comes bundle up with the installation. We had it configure and now we can play videos in html 5 by using the http protocol. The question I have is, can we use https protocol instead of rtmps? I've been doing a lot of research and I found documentation that says to put a minus sign in front of port 443 (-443) in the fms.ini file in the ADAPTOR.HOSTPORT line but it also says that with this configuration port 443 will only receive rtmps connections. My next step is to put the minus sign in front of the port number and restart the server and just try to establish connection using https to see if i works.

Posted: May 23, 2011 2:06 PM

View 1 Replies!   View Related
Flash - Create A Custom HTTP Protocol In Delphi?
I build a project using Flash and Delphi. In Flash i need communication with delphi. Current i use ExternalInterface and FSCommand. Now i need Flash communication with Delphi via HTTP but it need open a custom port on Delphi and it can prevent by user's firewall. I see a product called F-IN-BOX it can implement HTTP link like [URL]

Posted: Dec 16 09 at 15:19

View 3 Replies!   View Related
Media Server :: Publish Live Stream To FMS On HTTP Protocol?
I want to use customised encoder to publish live steams to a FMS4.5 server?Is it possible to connect encoder and FMS4.5 server on HTTP protocol?i read in other articles FMLE can connect to FMS on RTMP protocol.

Posted: Mar 26, 2012 11:56 PM

View 4 Replies!   View Related
ActionScript 2.0 :: Detect Whether SWF File Is Launched Locally Or Through A HTTP Protocol?
Is it possible to detect whether an SWF file is launched locally or through a HTTP protocol?

Posted: December 30th, 2006

View 4 Replies!   View Related
ActionScript 3.0 :: "Error #2039: Invalid Remote URL Protocol" With Http:// Url?
I am kind of frustrated, as I am trying to have a little flash downloader download a file. However, I keep getting:

Error: Error #2039: Invalid remote URL protocol. The remote URL protocol must be HTTP or HTTPS.


Posted: 01-02-2011, 10:28 PM

View 2 Replies!   View Related
ActionScript 3.0 :: Pdf Download Via FileReference?
Attempting for the first time to code a pdf download. Here is the code I'm using:

pdfBtn.addEventListener(MouseEvent.CLICK, dothis);
function dothis(e:MouseEvent):void {
var fr:FileReference = new FileReference();


Posted: November 24th, 2009

View 1 Replies!   View Related
Flex :: Set FileFilter When Using
I'm using FileReference to retrieve an exported CSV file from the server. The, "myFilename.csv") method call seems to be working and I can download the file.

The only problem with this is that I can't seem to be able to set the file filter. In my save dialog, the file type filter is always *.*, which is really bad. The user trying to save the file has to manually type in the .csv extension. How do I change the filter of the dialog box to only show *.csv and not

Posted: Jan 28 10 at 2:29

View 1 Replies!   View Related
Flex :: Not Working?
I'm building a Flex app which requires me to download files.I have the following code:

public function execute(event:CairngormEvent) : void
var evt:StemDownloadEvent = event as StemDownloadEvent;


Posted: May 24 10 at 3:37

View 1 Replies!   View Related
Flash :: Save A Download Without Filereference
Is there anyway to download a file with the URLLoader and then save it to the disk without using filereference or anything that uses a dialog? This is what I have but isn't working:


Posted: Dec 2 11 at 16:05

View 2 Replies!   View Related
ActionScript 3.0 :: FileReference Download & Redirects In IE
I have a flash app that uses the FileReference download method to serve up download links. Many of the links come from big content delviry networks and a crossdomain policy file is required to avoid a security error. This all works fine. Except for redirects in IE... in FF redirects work.

A typical Charles log in FF looks like this....

1) 302: download file temporarily moved
2) 302: download file found
3) 200: download file received OK


....the request for the crossdomain policy file is not being made in IE & thus flash blocks access to the download (client closed connection). The flash throws the traditional 2048 security error - which is what I'd expect if no crossdomain is available. It's worth noting that downloads without a redirect work fine in IE, the crossdomain is requested & received.

As far as I can make out there is no way to force "checkPolicyFile" with FileReference - it doesn't take a LoaderContext object. I'm at a loss of what I can do to resolve this without putting a proxy on our webserver (the backend guru will not allow this as the downloads can be quite large & he thinks will end up being a huge bottleneck).

Posted: 10-21-2009, 11:24 AM

View 6 Replies!   View Related
ActionScript 3.0 :: FileReference To Download File With Projector
I'm using the FileReference to download a file (using a relative path). If I test it on the .swf on the browser it works. If I compile a .exe projector the download doesn't works.

Posted: Mar 2, 2011 1:52 PM

View 1 Replies!   View Related
Flex - Losing Extension When Use FileReference Download
I need user download JPEG file from my app, however, when user change the file name the saved file will be downloaded without extension.

For Example: I am using and set the default filename as "demoPic.jpg" and user's windows system setting control file extension not being shown. So when the dialog opens a download window, only "demoPic" shown as the filename. If user saved file without changing filename, the saved file will be OK. But if user change file name, the download file will be saved without extension. is it possible to add file extension to filename when user forget it by flex code?

Posted: Jul 14 10 at 5:22

View 3 Replies!   View Related
ActionScript 2.0 :: 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, 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.

Posted: 03-19-2007, 04:57 PM

View 3 Replies!   View Related
ActionScript 3.0 :: FileReference Failing To Download File?
I am using this code to download a file from a server (podcast episode mp3) but I click the submit button and nothing happens. The text field shows "Downloading episode X" but nothing happens, no browse-to-save window pops up or anything. Here is my entire code, no external.It simply uses AMFPHP to drawback results to see if the podcast episode exists. If it returns a 1, the fileReference download is triggered. I'm pretty sure the rest of the code is fine, its just the ";" bit that seems to be doing nothing.[Code].....

Posted: 10-25-2009, 04:26 PM

View 0 Replies!   View Related
Actionscript 3.0 :: Using FileReference To Download Multiple Files
I've built an audio player that is fed via an xml file. Users can use a 'previous' or 'next' button to select which track to listen to and then play it and this is all fine and works as it should. The problem I have is with the file reference class. I want users to be able to have the option of downloading the track. I can get this function to work once but once you download a track, choose another, then click the download button again I get the error message below:


Posted: Tue Aug 11, 2009 2:50 pm

View 6 Replies!   View Related
ActionScript 2.0 :: Button To Cancel FileReference Download?
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)

var listener:Object = new Object();
listener.onCancel = function(file:FileReference):Void {


Posted: May 1st, 2006

View 4 Replies!   View Related
ActionScript 2.0 :: Must Take Absolute URL (not Relative)?
Im using this code


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?

Posted: February 9th, 2007

View 3 Replies!   View Related
ActionScript 2.0 :: FileReference Download Not Working In Browser
I am trying to use to allow users to download content from my site. The problem is, when I test it in Flash, it works flawlessly. When I publish it and upload it to my server it doesn't download. It'll bring up the download box... but it wont initiate the download. What I am doing is dynamically creating text boxes using the amount of XML nodes in my xml file. It will then assign the proper download file to that text box/download button.
its just not initiating the download in my browser.

File Reference ActionScript
var listener:Object = new Object();
listener.onSelect = function(file:FileReference):Void {
trace("onSelect: " +;
[Code] .....

Posted: May 15th, 2007

View 4 Replies!   View Related
ActionScript 2.0 :: 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:


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

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 )

Posted: July 25th, 2008

View 7 Replies!   View Related
ActionScript 3.0 :: Preloader And Listener For
I've been searching through code FOREVER and can't find anything helpful or functional yet. Right now I have a page that downloads a file to the user's computer when you click a button. But, I want to create a loader so that the user can follow the progress of their download as well as a way to go to the next frame on the main timeline when the download is complete.


Posted: April 6th, 2009

View 1 Replies!   View Related
Flash :: Flex 3 + Player 10 - Losing Extension When Use FileReference Download
Possible Duplicate: losing extension when use FileReference download I'm having an issue that looks common when using the FileReference class in FP10 when saving a file. The whole thing works fine as long as I don't change the default filename. If I do, then I loose the extension of the file... which is annoying >_< I haven't found any "acceptable" workaround, but the posts I've seen are from a couple of months already. So I'm inquiring hoping that something's been done regarding this issue since then =)

Posted: Dec 22 10 at 15:23

View 1 Replies!   View Related
Flex :: Send Error Message From Servlet To FileReference When Download?
I use to download files. The fileReference send request to java servlet.In servlet, some error may be checked. For example error - 'File not found'. I want to send the error to flex side. I tried lots of methods,but fileReference in flex can't receive them.Such asresponse.sendError(HttpServletResponse.SC_NOT_FOUND, "File not found");r PrintWriter out = resp.getWriter(); out.print("File not found");It seems fileReference can't triggers event 'DataEvent.UPLOAD_COMPLETE_DATA' and'HTTPStatusEvent.HTTP_STATUS'.

Posted: Jul 19 11 at 11:05

View 1 Replies!   View Related
ActionScript 2.0 :: Filereference Download Extension - Flash Doesnt Read After The Dot?
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


ive tried to put it like this but it doesnt work

function downloadPICT(){[p]+".jpg");

PS download[p] is read from an XML file its the link to the downloadfile, which looks like this

<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<images titel="DJ CHUCKIE" omschrijving="HEINEKEN FULL MOON PARTY" datum="VRIJDAG 5 JANUARI">

Posted: January 9th, 2008

View 2 Replies!   View Related
Copyright 2005-08, All rights reserved