Actionscript 3 :: Adobe AIR - Save Image On Hard Drive?
Oct 10, 2011
I found the below snippet to save an image to a specific folder with Adobe AIR. How to modify it that the "Save As" OS-window comes up first? (So users can choose where to save the image on the hard-drive)
I have created a window contain a save button. i want to click on this button a file from cd is copied to my hard drive.i found class File but it work air only,i use flash cs4 and File class dosn't work in it.
I've been working at this for over a week and simply can't figure it out:I would like to allow a user to export out a jpg of the swf file to their hard drive using flash player 10/cs4.Here is an example that comes close but is in flex (can't seem to figure out how to implement in flash cs4?)His flex code is there, everything works great, but how to get this into flash instead???
I'm still relatively new to the actionscript 3.0 world. I have been given an assignment to make a drawing program that allows me to do many different things. One of the big things that it needs to do is be able to save a file with the drawing information and still be editable. After much searching I see that you can't just write sprites to a file and then they come back cleanly, obviously returns null. I also don't think that registerClassAlias won't work because I don't think it will allow me to convert things back to a sprite. I keep an array of sprites that allows me to undo/redo, and I originally figured I could either write the arrays or the individual sprites to the file, but that is not allowed either. Does anyone have any idea how I can possibly accomplish saving my drawing document and loading my document with keeping all of my sprites in my array separate from each other?
We are professional game developers working on our first game in the Flash format. As the game will be about 70 megabytes in size we would like to allow the player the option of saving the game to hard drive to avoid reloading in the future.
I have experience uploading images with php and using them in flash but I have a client that wants one of these applications to run locally from a exe where the user picks an image off the harddrive. Is there a way to select the image and then bring it in without uploading it to the server?
I am in the middle of building a kind of image editing application.Basically the user uploads their picture and then can draw on it, (sounds silly I know!).I was toying around with allowing them to just upload their file onto my server where it would be saved and then they could edit it through flash, but I don't want the responsibility of ****, child **** cyber bullying etc going on on my webspace!!
So I'm trying just "loadMovie" with the local path of a file, but it is not loading when I put the swf on the web! It all works fine locally but not on the web?Is there some security bypass I can write into my actionscript that will allow this?
I was looking into a readymade flash CS4 project. It's kind of slideshow for some photos. I wanted to modify the Action Script in order to use the pictures in my computer's hard drive.
The code that has been used there in that project is something like
var gal_uno_uno="http://infernotech.co.cc/meracup.jpg"; var gal_uno_unoth= "http://infernotech.co.cc/meracup.jpg"; var gal_uno_dos="http://farm2.static.flickr.com/1073/756274318_d3bc6b17c9.jpg"; var gal_uno_do= "http://farm2.static.flickr.com/1073/756274318_d3bc6b17c9_s.jpg"; var gal_uno="http://farm1.static.flickr.com/217/485076305_fb0eb729e9.jpg";
but, I don't want to specify the url of the images. Instead I want to pick up these images from my hard drive.
I've just been approached my current project needs to run from a CD and write data (bookmarking) to the hard drive. Been told the file will still launch from a html document and not AIR. Orginally had it built in AIR, no problem writing data. I remembered what I thought was a SharedObject but that does not sound right for writing out the data. Which is an xml file I am building from the student login.
Since I can't use AIR is there another function someone knows for writing a file to a location on the hard drive? Time is pressing on this one. I have to have an answer by morning.
I've tested the videos off of my harddrive, and they work great using a skin that flash has.But when I uploaded it, and test it on my server, nothing loads.
I was looking into a readymade flash CS4 project. It's kind of slideshow for some photos. I wanted to modify the Action Script in order to use the pictures in my computer's hard drive.
The code that has been used there in that project is something like
var gal_uno_uno="http://infernotech.co.cc/meracup.jpg"; var gal_uno_unoth= "http://infernotech.co.cc/meracup.jpg"; var gal_uno_dos="http://farm2.static.flickr.com/1073/756274318_d3bc6b17c9.jpg";
[Code]....
but, I don't want to specify the url of the images. Instead I want to pick up these images from my hard drive.
I've created a SharedObject on My Computer, saved it in a movie, and ran the movie again and data came up well enough.My problem is, I want to delete the SharedObject saved on my hard-drive. I currenly have Flash 8, and Flash MX 2004 uses the .sol extention, but I can't find the SharedObject anywhere on my computer. With the release of Flash 8, did they change the SharedObject file extention? Is there a way to set up the path to which SharedObjects should be saved in your script file? The second parameter of the getLocal() method, stores a URL. Is that the same as a directory on your computer?
If you use FMS 3.5 as a DVR to record the live streams, whether it can determine that the hard disk has 100 megabytes? It is necessary that I live streams redirected to another server.
is it possible to send an email with an image attachement in a "text" format? (like in a ByteArray)
I'ld like to encode an image into an ByteArray (Flash AS3 - PNGencoder) and send it then via PHP to Gmail and others without saving the image to a hard drive before.
I know how to program a button to get a URL loaded:
[Code]...
But how would I tell the button to do the same thing for a file located on the hard drive? I want the file to load in the web browser, but I am making a presentation CD and I want it to grab a file off the CD as opposed the internet in case the person viewing the CD does not have internet access. keeping the file path structure similar on the server this should work on the CD as well as the server, correct?
Does anyone here have an idea on how to create a folder on your local hard drive via flash AS3, the name of the folder will depend on what you enter on the textfield in the .swf file.
I'm having with loading variables from a text file that is sitting on a Hard Drive rather than the server?
I would like each computer station to pull data from the server based on their individual Station IDs (which is defined in the text file on the hard drive).
The path to the text file is C:StationID.txt - I am having trouble with defining the PATH to the text file on the actual hard drive.
I am have to build a Flash aplication, that has to download a XML from a differente server and save on it's own server, at a predefined time of the day. Is it possible ans safe to make that in flash using AS3?
Can I develop a Flash AS3 download swf that will let a user select a location on their hard drive to download files to and then start the download of multiple files (in the same way I can do with upload)? Or should I zip all the multiple files first and download zipped files to local disk. My users will want to download potentially hundreds of images from a server to local disk so I dont want them to have to click save for each one. Will AS3 let me pass an array of filenames and store the location that the user originally chooses? I ask because this sounds like it would have been not allowed for security reasons.
Here is an example of what I am looking to do. I want to figure out how to locate and save the original (LARGE) image shown here in the zoom box.[URL]..
in writing XML File on hard disk ... i make a xml object on runtime .. menupulat it and then i want it to save on hard disk of the client .... i want to used this for both online and offline flash aplication.