Questions tagged [filereference]

A file reference is an object that allows programs to refer to files on a file system, and operate on them. Browser-based applications (e.g. JavaScript and ActionScript) need them to save and upload files to / from the user's file system because all file system interaction is policed by the browser itself.

A file reference is an object available in most programming languages' libraries.

In ActionScript, file upload and download must be done through the FileReference class, and the Flash Player has to channel those requests to the hosting browser.

172 questions
2
votes
1 answer

Flash upload progress

I'm making a bandwidth test in flash, and I want to display a progress bar and the current calculated speed. For the download part this is pretty straightforward, but for the upload part it gets a bit trickier. As I've understood the only way to…
Tom
  • 63
  • 1
  • 5
2
votes
0 answers

FileReference save to local issue

My requirement is to save a bunch of files (more than 500) in a single zip file locally using FileReference. I am using ASZip to zip the files. Now the problem is if the number of files are more, then I am not even getting Save as dialog box. I have…
2
votes
1 answer

Adobe Air upload progress without FileReference

I'm deploying a small application with Adobe Air. My application will do batch upload from filepath which stored in a text file. For example, in a text file name "list.txt", there is a string "C:\myfiles\IMG_0001.JPG". Now I want to upload this…
user309094
  • 21
  • 2
2
votes
4 answers

How to free memory after use of FileRerence?

See [Solution] FileReference.load(); does not have a function to unload, just as there is new Loader ().unload();. Must be a "BUG" from Flash or FileReference needs improvement, type in a new version add a function like this:…
Protomen
  • 9,471
  • 9
  • 57
  • 124
2
votes
2 answers

how to find my error(delphi)

i'm getting an I/o 998 error, my task is to rewrite numbers from file to array, and find max and min values. What i'm doing wrong ? implementation var f2: file of Real; m: array of Real; procedure TForm1.Button1Click(Sender: TObject); var …
2
votes
5 answers

FileReference.load() not populating FileReference.data

I am trying to use the load method of FileReference object to load the data and use it to display a thumbnail of the selected image. However, after calling fr.load(), fr.data remains null. I'm using Flex Builder 3.0.2 on Windows 7 with Flex SDK 3.4…
jeffcook2150
  • 4,028
  • 4
  • 39
  • 51
2
votes
1 answer

FileReference vs File?

I want to make a Flash app in which the user can load and save files from and to their local hard drive. While I've often done this in AIR apps using the File and FileStream classes, I haven't done so before in an SWF. From what I know the…
puggsoy
  • 1,270
  • 1
  • 11
  • 34
2
votes
1 answer

Cancel uploaded files through FileReference

I have a callback in flash that cancel file upload, and is executed from javascript: public function initApp():void { ExternalInterface.addCallback("cancelUpload", cancelUploadRequest); …
croppio.com
  • 1,823
  • 5
  • 28
  • 44
1
vote
1 answer

AS3 FileReference.save() works when testing locally but not in the browser

I have created a painting app and when the user want's to save his drawing he simply hits the save button and a dialog pops up - or should do. When testing locally on dev machine it's no problem but whenever the app is loaded in a browser it won't…
Martin
  • 548
  • 5
  • 14
1
vote
0 answers

File upload with Flex 4.5 FileReference IOError #2038

I am using FileReference in Flex 4.5 to upload files to a Tibco web server. Below is the flex code that I wrote several months ago to handle this. At the time it worked just fine, however now it no longer seems to work and I can't figure out why.…
aoi222
  • 723
  • 1
  • 5
  • 11
1
vote
1 answer

Generate an x second silence audio file with byteArray and Adobe Air

I would like to generate a sound in Adobe Air using ByteArray. The sound should be a silence of x seconds. I found this code that I am using to generate the bytes: private function encode(data : ByteArray) : ByteArray { var channels : uint = 2; …
Mattias
  • 3,907
  • 4
  • 28
  • 50
1
vote
2 answers

AS3 Image Loader - It loads itself (the swf)

My LoaderInfo will return the swf itself rather than the image given via the FileReference and Loader. I had problems debugging it, as LoaderInfo.content returns [Object Main] (My document class). After investigation, I discovered LoaderInfo.content…
apscience
  • 7,033
  • 11
  • 55
  • 89
1
vote
1 answer

Flex FileReference and ByteArray Compress

I have a FileReference that is being uploaded. But before upload, I call the compress() method on the ByteArray of the FileReference i.e. fileReference.data.compress(). But I observe that the uploaded file is the raw file and not the compressed…
Sri
  • 5,805
  • 10
  • 50
  • 68
1
vote
1 answer

Flash saves in Windows, not in Linux, FileReference.save()

The code below compiles fine on the Flex 4 SDK on Fedora 15. Mouse-click opens the dialog box, I click okay, and a file is saved, but the file is empty. I run the same SWF file (that was compiled on the Linux machine) on a Windows machine, and the…
SquareCrow
  • 291
  • 2
  • 14
1
vote
1 answer

Doxygen: How to reference a README.md file from my main page

I have a project structured like this. OpenRGB-cppSDK doc Doxyfile main.md -- Doxygen main page examples .cpp files with examples include public .hpp files src .hpp and .cpp files tools cli demo README.md --…
Youda008
  • 1,788
  • 1
  • 17
  • 35
1 2
3
11 12