ActionScript 3.0 :: Save To File To Desktop?
Nov 7, 2008I am trying get one of my buttons to link to a PDF file whichwould not open, but would ask the user where to save the file (i.e.to the desktop), is this possible?
View 6 RepliesI am trying get one of my buttons to link to a PDF file whichwould not open, but would ask the user where to save the file (i.e.to the desktop), is this possible?
View 6 RepliesBasically I have a website and I want to give the user the option of downloading wallpapers that they can use as their desktop image.
View 3 RepliesI am a psychology student and have the need to edit a flash game for use in a project. Having no programming experience, this is proving to be an issue! Basically I contacted the authors of a study for a copy of a driving game that records data to an external file (I think this is where shared objects come in?). Unfortunately, I cannot find the output file anywhere on my machine (I am running Windows 7 - have looked in the appropriate directories). After downloading a trial version of CS3, I have edited the screens I needed but have not been able to understand the code. I have located the code for the shared object and was wondering if anyone know how to make it save the SOL file to my desktop. Here is the code I think is appropriate:
[Code]...
I am making a desktop Flash application (AS3). It provides to users an opportunity to save and open their projects.I've used FileReference to open project file
var fileRef:FileReference = new FileReference();
var ourTypes:Array=new Array(new FileFilter("Map Editor type (*.xml)", "*.xml"));
fileRef.browse(ourTypes);
and use file content by using fileRef.data.
var mainXml:XML;
mainXml=new XML(fileRef.data);
User must have an opportunity to add some data in this file (not only read). How can I save new data in the same file?
I've been developing a Flash cd-rom for a client, and a particular page in the movie has an "press room" that will contain links to images and pdf's located on the cd-rom itself. I'm familiar with creating buttons, and set up a link like this on the button.
Code: Select allon(release){
getURL("images/feat_prct.png");
}
Obviously, it's a pretty simple link that brings the image up in the browser. That's great and all, but I'd really like it to bring up the option to save the image somewhere. I know that a reasonably smart person could just click on it in the browser and either pull it to the desktop or "save as", but I'd like to eliminate that step for them. I'd also like to be able to create buttons that link to pdf files in the same way.
How do we save file locally in Flash (ActionScript 3) without displaying dialog. I know we can use the following code to save file locally but it prompts Save dialog. I don't want this dialog while saving file locally.
[Code]...
I need to create a notepad in flash.here how could i save the file by prompting the save window?
View 11 RepliesIs it possible to drag a file (on the desktop) onto a flash swf or exe file and have Flash open and know what that file is and possibly perform some action on that?Or hints as to where to begin to look for the actionscript functions for that if it might be possible?
View 2 RepliesI am trying to find the solution to loading a .txt from c:/ to my online swf.
View 2 RepliesI have a mc with the instance name of 'resume'. When clicked, I want a resume to download to the user's desktop. I'm currently doing this:
resume.addEventListener(MouseEvent.CLICK, downloadFunction);
function downloadFunction(event: MouseEvent) {
var request:URLRequest = new URLRequest("profile_images/resume.pdf");
navigateToURL(request);
}
I haven't put this on the server yet, so I'm just testing it locally, thus the url request not having an actual url address. Is this correct? I use this same code, roughly, for the loading of external links... and images etc. When I test it, the pdf doesn't pop up.
I'm building a mobile AIR application that connects to my desktop AIR application. In the mobile application, I'm recording video with my Android device with flash.media.CameraUI. This works perfectly, but now I'd like to send this file to my desktop application so I can do stuff with it. I've got a server written in AS3 running on my desktop (the application itself) listening to AMF messages on a certain port. I can send data through sockets, I've already tested it with accelerometer data, so that's not the issue.
What would be the best way to send video to my desktop AIR app? I've tried multiple things already; serializing using registerClassAlias, ByteArrays.
I want to create an flash file in which when user clicks on download button, the files from USB(pen drive) will get copied to user's desktop.Is it possible to download/copy whole folder(with all files in it) to user'desktop? or i can only download/copy files?
View 14 RepliesI have my UiLoader up and my buttons on the main stage. when I saved it to my unit 3 folder which is in my poral folder in flash. I bring it up to test it and I click a button and come up with an error message. Is there a way to fix this.
http://rror #2044: Unhandled ioError:. text=Error #2035: URL Not Found. URL: file:///C|/Users/Owner/Desktop/unit3/welcome.swf This is what I get[URL]..
convert pdf file into byte array.and also i tried in Google also but no results yet.can u prefer how to convert pdf file into byte array and retrieve byte array into pdf file in flex application.
View 1 Repliesstep1- I got an xml that is locally loaded(works fine)
step2- the content goes into a datagrid that is displayed (works fine)
step3- In AS3 I dynamically add some lines to this xml file(works fine)
step4- I save it locally (works fine)
step5-and want the datagrid to be updated..(works not-so-well)
So, in step 4, the data is saved into the xml file, but in order to finish the save, the user has to click on the "Save as" windows in order to have the file updated of course.. and that's where's my problem, how can i tell flash to wait till the user actually saves the file, before reload the xml file in the datagrid ? here's the code :
[Code]....
When i save the file as an .swf file to view it in my browser the video gets really big (sized the flash document 250x240 px) . How can i easily control my flash video sizes?
another thing: When im doing a video and work with things that are outside of my white document (in the gray area) for instance things that are to be faded into the document and so on. These things also show up in outside of my video when i view it in my browser.
I am working on Adobe AIR application and some test users report to me about same issue.When they try to save the project file from this application, they have no possibility to add any extension (".txt", ".xml" or any other) to the file.
View 1 RepliesIs it possible to save scores in a text file or xml file locally? Im not creating an online application but rather an application for personal use! I don't want to use cookies since they can be cleared by mistake! It would be really good if it was possible to save the score to an external file!
View 2 RepliesWe used Flex to build the web app below. It lets the user build an interactive activity and click "Publish as Flash" to save a SWF file on their local computer.[url]...
Problem:When saving the file, the "Save As Filetype" drop down is empty and end users can accidentally delete the swf file extension in the filename.How can we lock down the extension so it will always have SWF in the extension?
Technique 1? Set "Save As Filetype" to SWF by default.
Technique 2? Click "Publish as Flash". User specifies the filename. File is saved on the server. User presented with prompt to download file. File is downloaded from the server using the traditional browser windows explorer dialog box (the same dialog box if I downloaded a program from cnet's downloads.com)
Is there a any way to create a txt file in as3 and save reports in that file?
View 1 RepliesI'm working with a little bit of XML and have questions, first here are my steps:
1) Load XML
2) Append to XML
3) Save XML using PHP
Well, why when I load the same XML file does it read the file without the appendend nodes I just added?I can open the XML file in Dreamweaver and see the appended nodes, but once I load the XML back into the .SWF, it clears the appended nodes and only reads the original nodes again..[code]My .swf is local at this point and PHP and XML files are on a server running PHP5.Apparently the PHP script is correct because it DOES save the file correctly. I can save as many <persons /> as I want. But when I close the Flash .swf the URLLoader reads the original XML data again. Not sure how that's possible?When I change the location of the XML to load into the URLLoader it changes so I know it's reading the same file I saved to..
i'm trying to make a Top Score history for a flash game, which i load from an XML file. The problem comes to when i want to update the XML file. how do i do that automatically without prompting the user (ofcourse). I want it to be saved automatically to the same directory as the flash file.
here's my code right now, but it prompts the user where it wants to be saved, which i don't want to happen:
var xml:XML = <XML>
<topScoreList>
</topScoreList>
[Code]....
I created a flash banner with flash pro CS5 using windows 7. Can I save the file so my client can open it with a Mac OS?
View 1 Repliescan an an swf file save data to an xml file while running?
View 4 RepliesIs there a any way to create a txt file in as3 and save reports in that file?
View 2 RepliesI am working on a new flash project that allows the user to prepare artwork using the .swf flash file and allows them to overlay hypertext links into their artwork. The output of this custom content is needed to be saved as a .swf file itself, so that it can be used independantly. The new .swf file would essentially just be a single frame with the interactive artwork on
View 3 Replieshow to have a php file save to a xml file? I want to send a php file xml data and have that xml data saved to a xml doc on my server.
View 4 RepliesI've created a flash banner and I need to send it by email as a flv file. Does any one knows how to convert from swf or fla files to flv?
View 6 RepliesIm trying to upload it to you tube and needs to be in a video file..
View 1 Repliesnew to premiere elements and I was wondering if you can save a project as an iso file instead of .prel? I'm sure this has been asked and covered somewhere but I can't find anything doing a search.
View 3 Replies