Actionscript 3 :: Flash Saves In Windows Not In Linux / FileReference.save

Aug 14, 2011

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 created file contains the expected data.Then I broke the FileReference declaration out of the function into the class level, hoping to avoid a known bug, but the same problem persists.Hoping to set up a workaround, I added the debug Flash player to my path and ran the file from Flash without the benefit of the browser, and it works.So now a Flex problem has become a Firefox problem, maybe owing to a shady procedure I used to install the plugin without really understanding what was happening.I am running Firefox 5.0.In essence my workflow is fixed, but perhaps people who performed the above will not be able to use projects with FileReference.save()?[code]

View 1 Replies


Similar Posts:


Flash Saves File On Windows - Not Linux - FileReference.save()

Aug 13, 2011

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 created file contains the expected data. I was thinking there was a permissions problem, but if that were so, why should Linux even let me save the file? It is going to slow things down immensely if I cannot code something and test it on the same machine...

[Code]....

View 3 Replies

Switched From Windows To Linux Hosting, Flash Not Playing?

Sep 5, 2009

I switched to Linux in order run zen cart and now Flash isn't playing on my sites. My host says in need different scripts for Linux, but can't/won't say wha

<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script></head><body><div id="apDiv1">  <script type="text/javascript">AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,

[code].....

View 20 Replies

Windows :: Flex - FileReference: Loading A Windows-locked File?

Mar 8, 2010

I'm using Flex in Flash Player 10 on Windows, using FileReference to load a file into memory, as below.My issue is that when a file is locked by Windows, my FileReference is not giving me any feedback that the file is inaccessible--it simply never dispatches any events after my calling load().Does anyone have insight into how to tell that Flash Player is unable to open the file?

var fileReference:FileReference = new FileReference();
private function onClick():void {
fileReference = new FileReference();
fileReference.addEventListener(Event.SELECT, onSelect);

[code]....

View 1 Replies

ActionScript 3.0 :: FileReference.upload Gives IO Error On Linux/MacOS X?

Feb 4, 2008

I have a multiple file uploader similar to the Adobe demo.It gives me an "I/O Error #2038" when i try to upload files. It happens for all files, single or multiple, even ones that are a few KBs in size. Following the I/O Error i get a "HttpStatus 503".This problem occurs using any browser (Safari/FF) on Mac/Linux.On windows the uploads work just fine, regardless of the browser.

I am using Flash 9.0.115.0 everywhere."I/O Error #2038"

View 1 Replies

Flex :: Bypass The Save Dialog Box Of FileReference.save?

Jul 6, 2011

Can we Bypass the save dialog box of FileRefernce.save()? If not, then Is there any workaround to save a file from web application in Flex without asking user where to save file?

View 1 Replies

ActionScript 3.0 :: Save Images With My MyProject.as With FileReference.save?

Dec 20, 2010

i have movie clip with Images and button Save and class MyProject.as how save images with my MyProject.as, with help FileReference.save? what to write in code? how code should look like? tell me good people I want to write everything in a separate class

View 3 Replies

Flash :: Save A Download Without Filereference

Dec 2, 2011

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:

[Code]...

View 2 Replies

ActionScript 3.0 :: Get Rid Of Save Dialog Box In Filereference.save()?

Sep 22, 2010

Is there a way to get rid of the save dialog box in filereference.save()?I want to specify the filename and location rather then letting the user do it.

View 6 Replies

ActionScript 3.0 :: Flash FileReference.save() - File Extensions?

Jun 18, 2010

I'm using FileReference.save() method for Flash10 to save a file. It looks like this:

Code:
fr.save(BytesArray, "default.xml");
When I use default name - everything is ok. But when I change file's name in "Save Dialog

[code].....

View 2 Replies

Flex :: Flash Player 10 Filereference.save And File Extensions?

Jun 8, 2010

I'm using Filereference.save() to save a XML file. It's working fine with default filename.But is there a way to force a file extension on the saved file? I'm using "untitled.xml" as the default filename, but if the user changes it to say "myfile", it gets saved as "myfile", rather than "myfile.xml".

View 1 Replies

Actionscript 3 :: Save Local File In Flash Projector Using FileReference?

Nov 18, 2010

I'm making a Flash projector which will be distributed on CD. I want to allow people to copy files off of the CD. Is this possible? Should I be using FileReference?

View 1 Replies

AS3 :: Flash Alternative To Locking File Type On FileReference.save

Jun 30, 2011

limiting or correcting the behaviour of FileReference.save isn't possible.Can anyone suggest an alternative (server is Apache/PHP) that matches all of my criteria from this post and avoids the pitfalls I discussed with Jacob?I'm saving an image from my AS3 app using FileReference.save(). This is the code, which works fine:[code]This opens up the save file dialog as expected. I'm using this rather than sending the byteData to PHP because I want the user to have a familiar dialog box that lets them set their own file name.

The problem comes when users have their operating system configured to display file extensions, like I do. This means that in the save dialog the file name contains the extension as seen in the image below, and so it is very easy for the user to delete that extension when they rename the file. Because the default file type for this box is 'All files', if the extension is deleted the file is saved with no type.I don't know of any way to force a file type on the save dialog (if there is one that would be my preferred route) so failing that can anyone suggest a safe way for me to do this that still allows the user to set the file name themselves using a standard dialog for their OS?I did try putting in a call to FileReference.browse() before the save() as shown in this tutorial, but that throws an error because you can only perform one FileReference call at a time.

View 5 Replies

Media Server :: Convert A Windows App To Work On A Linux System?

Jan 17, 2010

For the past while, my developer has been working with me on a small project to put together a live interactive whiteboard app, powered by Flash Media Interactive Server. Well, everything is finished & ready to go, but there seems to be a big problem:
 
The app was developed & tested on a windows machine, while my server and all my website files (to integrate with) is on a Linux system.
 
It's been a month since this problem arrose, and there had not been any further progress with this project for the time. My developer doesn't seem to know much about how the 'conversion process' works, if there is one.
 
Do you know if this is possible (to convert a windows-programmed app to work on a linux system)? If so, do you know roughly how it should be handled?

View 2 Replies

ActionScript 2.0 :: FileReference Progress Go To 100% Immediately In Windows 7

Oct 2, 2009

anyone knows why progress in fileReference go to 100 percent immediately after I select the file to upload.

View 0 Replies

ActionScript 3.0 :: 1061: Call To A Possibly Undefined Method Save Through A Reference With Static Type Flash.net:FileReference

Oct 6, 2009

I am trying to get simple example of it running. I can make it work if I publish in FlashPlayer10, but not FP 9

[Code]...

The reference material says Language Version : ActionScript 3.0Runtime Versions : AIR 1.0, Flash Player 9 Does this mean the AIR 1.0 and Flash Player 9 or what is the deal?the compile error is... 1061: Call to a possibly undefined method save through a reference with static type flash.net:FileReference.

View 4 Replies

Professional :: Can't Find In Windows Where Flash CS5 Save Personal Workspace

May 17, 2010

I can't find in Windows where Flash CS5 save personal workspace..Photoshop and Illustrator save it in roaming vista folder but Flash?

View 2 Replies

Flex :: Error 1061 Call To Possibly Undefined Method Save Through A Reference With Static Type Flash.net:FileReference

Jun 2, 2011

I want to save XML File using Flex 4 SDK

var fr:FileReference=new FileReference();
fr.save( newXmlRow, 'D:/Sample.xml' );

Error Shows :

1061 "Call to possibly Undefined method save through a reference with static type flash.net:FileReference"

View 2 Replies

ActionScript 3.0 :: Save Images From Flash Via Asp (windows Server) To Local Computer?

Nov 25, 2010

I need to save images from flash via asp (windows server) to local computer, how to do this?

View 4 Replies

ActionScript 3.0 :: FileReference Save As Filetype

Sep 18, 2010

Is there any way to set the filetype you want to save to with the FileReference class? I'm creating PNGs for users to save to their hard drive, but I don't really want them to have to specify an extension. If they don't, the images are just saved as generic files, which is a bit crappy.

View 4 Replies

Flex :: Wny Linux Sends Unicode Keyboard Events While Windows Sends ANSI

Sep 27, 2010

Unde linux, the foreign keys such as... do not seem to work with this code:URL...The output is wrong under Linux, but Windows is Ok.the output of foreign keys such as ü with Linux looks same here, totally broken, two chars appear: URL...

View 1 Replies

Media Server :: Which Operating System Linux Or Windows Server 2003

Dec 8, 2009

it doesn't matter which operating system we install an our server.What are your experience with Linux and Windows?Which System do you recommend regarding performance issues?

View 1 Replies

ActionScript 3.0 :: Filereference.save And File Extensions?

Feb 13, 2009

I'm using Filereference.save() to save a jpg file. It'sbasically working fine, but is there anyway to force a fileextension on the saved file? I'm using "untitled.jpg" as thedefault filename, but if the user changes it to say "myfile", itgets saved as "myfile", rather than "myfile.jpg".

View 11 Replies

ActionScript 3.0 :: Making FileReference.save() Even Nicer

Dec 3, 2010

I am using FileReference,save() to save a file to the local HDD. It works. But it could be nicer. When I issue the command, I get a dialog box displayed and the title is "Select location for download by localhost". I can't see any documented way to change that title. The file I want to save has been created locally - there is nothing to download.

Also, the dialog lists "All Files" and there does not be any way to filter to a particular file type - although I can specify a default file name (including the extension). I suspect that these are features of the current implementation - not a lot of people read the title of the dialog box anyway. But if they can be changed, I'd like to know.

View 1 Replies

ActionScript 3.0 :: FileReference.save() Causing Crash?

May 16, 2011

I'm currently using the FileReference class to allow users of my program to save and load files from their PC. I'm currently trying to get the save function to work (I'll do load later) and it all seems to be working perfectly but while testing it (locally) it crashes Flash Player every time it saves.
 
The code is pretty simple just now (this is contained in an event handler which triggers when the save button is pressed):

var levelData:String = GetLevelData();var outputFileName:String = "NewLevel.txt";
saveFile = new FileReference();
saveFile.addEventListener(Event.COMPLETE, SaveCompleteHandler);
saveFile.addEventListener(IOErrorEvent.IO_ERROR, SaveIOErrorHandler);
saveFile.save(levelData, outputFileName);

And it all works fine - the NewLevel.txt file appears where I want it to and contains the correct data. But as soon as this has completed Flash Player quits and I get the 'Flash Player Quit Unexpectadly' message. There are no errors in the output from my code. The SaveCompleteHandler function has been called and the SaveIOErrorHandler function has not.

Could this be a bug in Flash player? I'm using a Mac and have encountered a few bugs with the Mac version so I wouldn't be surprised if this was another one.

View 1 Replies

Flex :: Workaround On FileReference.save Dialog Box

Dec 14, 2010

Im still new in Flex and currently working on capturing a flash game into a flv video file. Im using FileReference.save() to write the captured file in the user's system. It is working as of now but not the way I want it to be.Is there a way to bypass or automate the save dialog box when invoking the save() api of fileReference?

View 1 Replies

Flex :: Unhanndled IO Error On FileReference.save()

Mar 4, 2011

I am using a filereference Object to export an excel file from my flex application. I am using fileReference.save() from Flash player 10. I am getting an error if the file i am trying to save is already open. This error is not getting handled even if i put a try catch block. I have tried adding a listener with IOErrorEvent.IO_ERROR. Still the error is happening. This is the Error message i am getting - "Error #2044: Unhandled IOErrorEvent:. text=Error #2038: File I/O Error."

View 1 Replies

Actionscript 3 :: Getting An Error In FileReference.save Method?

Jan 10, 2012

I am currently working in Flex 3.0 I am getting an error(screen shot is given below). I am using Flash Player Version 10.0Currently I am calling the HTTPService and in the resultHandler of that HTTPService i am getting an error in method filereference.save() .because this method is called only when the MouseEvent or Keyboard event is occured.Is there any solution to overcome this situation or in other words calling the filereference.save method in ResultHandler.

View 3 Replies

ActionScript 3.0 :: Filereference To Save File Locally?

Jun 30, 2011

This code:

ActionScript Code:
import flash.events.Event;
var file:FileReference = new FileReference();
 saveBtn.addEventListener(MouseEvent.CLICK, onClick);[code]....

will save a text file to a location I choose, containing the text I wrote in the text field. But it prompts me for the location. Is there a way to save the text just locally next to the swf without the prompt?

View 3 Replies

ActionScript 3.0 :: XML - Save Xml File With CDATA Tag Using FileReference?

Feb 23, 2012

I'm trying to create a XML file in actionscript which will be saved out using FileReference and will then be loaded in later by another SWF.The problem I have is that I can't figure out how to have the actual CDATA tag in the saved XML file so that I can output html tags in the text.e.g.

var xml:XML = <data>
<text> <![CDATA[ This is some <b>bold</b> text ]]> </text>
</data>

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved