Saving Local Files
Hi.
I know director has a way for you to be able to save a file or folder from the cd to your hardrive. Since I do not know how to use director, is there a way yo ucan d this in flash?
your help would be greatly appreciated!
FlashKit > Flash Help > Flash ActionScript
Posted on: 08-31-2002, 03:13 PM
View Complete Forum Thread with Replies
Sponsored Links:
Fetching SWF Files From Server Using HTTPService And Saving The SWF File On Local Mac
I am not able to fetch SWF file from server using HTTPService.
Following is the piece of code...
httpSer = new HTTPService();
httpSer.addEventListener(ResultEvent.RESULT,handle Result);
httpSer.addEventListener(FaultEvent.FAULT,handleFa ult);
httpSer.url = "http://localhost:8080/TestApplication/resources/test.swf";
httpSer.send();
My server even has crossdomain.xml file ...
Also, ResultEvent is getting triggered, but in httpService.lastresult there I can find few bytes of data. WHile by simply hitting the URL in browser I can see theSWF file.
Please tell me how can I fetch the swf File using HTTPService.
I need to use HTTPService..because my real application will be using a proxy cache server so, I need to request file via HTTP request...
Please tell me if there is a way to do it..I need that SWF file through HTTPService and needs to save that file on local machine.
View Replies !
View Related
[F8] Saving Image To Local Disk
I am wondering if this is possible. I have searched and have found no clear answer yet.
Can flash save a image to a users local disk? for example allowing a user to load a photo, draw on the photo then save the resulting edited image to their hard disk?
I would really appreciate some insight on this 'mystery'
I know I have seen it done before...
Cheers
Mark
View Replies !
View Related
Saving State With Local Shared Objects...Is This Right?
OK here is what I am trying to do with Shared Objects. I have a swf with the basic navigation 3 buttons (button1, button2, button3). This is called home.swf
each of these buttons calls a loadMovie action to load its respective page.
button 1 loads page1.swf
button 2 loads page2.swf
button 3 loads page3.swf
all load on level 2
All these swf files are in the same folder.
so simple enough. Now what I what to do with Shared Object code is to maintain state. So if I am in the site and reading on page 2....then quit the browser or go to another site....and then come back later ..it will load with page 2 or whatever was last on the screen.
So I am figuring that I need to place the "save" code on the individual page and the "retrieve" or "load" code on home.swf. Right?
Here is the code I have on the page#.swf files:
var local_data = SharedObject.getLocal("test", "/");
local_data.data=_level2; //not sure what goes here
local_data.flush(10000);
and on the home.swf I have:
var local_data = SharedObject.getLocal("test", "/");
local_data.data;
So tell me...am i way off here?? I understand the concept fine...but as usual the syntax stops me in my tracks....any help would be greatly appreciated....
View Replies !
View Related
Saving To/Loading From Local Flatfile Databases In Same Directory
I've decided to make a non-web based game in flash, and I'd like to be able to save and load variables from a text file (perhaps an .ini?) through this game, where the text file is stored in the same directory as the flash.
What I'd like to be able to do is have line after line of variables in the database and be able to find a certain variable in flash and save or load it.
Thanks in advance for any help that anyone can provide.
View Replies !
View Related
Projector - Saving XML File To Local Disk From Flash
I'm working on a flash application for a kiosk that will draw data from a local XML file to determine what displays and what doesn't. I am also adding in a screen that will allow certain people to make changes to the file from within the application (to make it point-and-click simple).
I've read the tutorial on editing XML within flash, but how do I tell Flash to resave an edited version of the XML file? The XML will be in the same directory as the projector, and will need to be written over whenever these changes are made.
Thanks for any help!!
View Replies !
View Related
Saving Info To A Local Text File From Flash
I have created a flash presentation for a client, they are going to have their sales people run the presentation at different locations from their personal laptops. What they are asking for is to have a form in the flash file that at the end of the presentation the viewer can fill out and have that info save to a LOCAL text file that they can open later and have the infomation. Thank you in advance for the help.
View Replies !
View Related
Local Files And Creating Outside Text Files
I have two problems.
1: I can't get Flash to link to a local file instead of a website. How do you do it!!
2: I have been trying also to make Flash create a text file. I know how to make Flash load one, but I want it to create one. Is there any way to do this!?!
If anyone has the answers to my questions, i would greatly appreciate responses. Thank you.
View Replies !
View Related
Saving Html Files As Cfm Files
In older versions of Flash it was possible to tell the html publish setting to be saved with a cfm extension. I am having a hard time seeing how that can be done in the new version CS3. I go into the publish setting and give the file a cfm extension but when it exports it looks like this, ",html.cfm" it's just a pain to have to go back and change the extension after the fact. Am I missing something in the new version?
Thanks,
View Replies !
View Related
Opening Files : Saving Files
Hi all, does Actionscript support the creation of simple text files?
For example, I want to create a new text file if one doesn't already exist, and then write to the file if the user chooses to save--just like using a streamreader etc.
If Actionscript supports these methods, could you point me to the documentation?
Thanks
View Replies !
View Related
Local Files
Is it possible in flash to play as a local movie and check for files on the file system? Create files? I've never really messed with flash as a local movie.
View Replies !
View Related
Swf Call Local Files?
hi
is there a way to make a running swf check a local directory of files and call or import them so thet can be used as elements in the swf when the names of the sound files are not known in advance?
i would like to be able to have a folder of changing sounds that can be used bhy the swf, so i dont know in advance the name of the files.
any help greatly appreciated
View Replies !
View Related
Help Linking To Local Files...
I have a page with a bunch of thumbnails. When I click on the thumbnails it opens a bigger picture into a "container" on the same page. All the full size pictures are SWF's and they are saved in a folder. I link to the folder. However when I publish my website online, it does not link to the folders. The only way it do it is if I actually type out the "http://" specific address. This becomes a problem because I have sooo many pictures that I need to be loaded.
Anybody know the solution? Sorry for the long explaination.
Thanks.
View Replies !
View Related
Browsing For Local Files
Here's what I want to do. I want to create a feature in my Flash application that will open a window where I can browse for PNG files and select ones to load. I know you can't do this in Flash alone, but it there a way to get directory information in JavaScript (and pass it to Flash using FSCommand)? I really want the actual browsing and selecting of files to be done in Flash, so a BROWSE button on my HTML page isn't what I'm looking for. I just need directory/file info to be passed to my SWF. Also, I am never EVER going to put this on the internet, it HAS to run locally. It would be best if I could do it with JavaScript. Also, it's fine if this only works on Windows or with IE. Does anyone know of any tutorials or pointers? Thanks a ton!
View Replies !
View Related
Linking To Local Files
I am developing a cd rom that is linking a button to local files on my hard drive (powerpoint, excel, Word, pdf) with the get url action. When I publish it as an .exe file and play the movie. The files link properly to the local files but don't pop up in front of my flash movie playing but behind the .exe file so the user can't really see that it linked and popped up. I've tried several ways to make this work but it still continues to link the local files and pop up behind the .exe Flash file. Is there a way to make the local files pop up in front of the flash file playing?
Thanks
View Replies !
View Related
Preloading Local Files From CD
Hello,
I'm creating a presentation that will consist of external swfs that will be loaded into a 'shell' that contols loading, sound, auto advancing etc. The application will initally be delivered on the web and then later on cd using the local flash player (without browser window). How will preloaders preform in this situation, I know that I cannot use the MovieClipLoader Class, as it doesnt work properly with local files... Please provide any insite that you may have.
Im assuming there will be a small delay whlie loading from cd.
Thank you much!
Josh
View Replies !
View Related
Getting A List Of Local Files?
Hi,
I want to make a photo upload utility that allows the user to choose a local folder which then presents them with a list of images in the directory. They can then pick which images they want to upload.
The upload portion seems like it is easy now with the FileReference bits in Flash 8. However, how feasable is it to allow flash to peruse the local file structure?
Is JAVA my only option here?
Thanks in advance
View Replies !
View Related
Loadmovie Local Files
how can one with loadmovie (or another command) load local (on the users harddisk) files into an already loaded flashmovie within the browser? say i have a simple movie with a button:
uploadButton.onRelease = function() {
this.loadMovie("C:hello.jpg");
}
i upload this movie to the server together with the html page and load it into my browser by http. why doesn't this work?
View Replies !
View Related
Loading Local Files
Is there any way to load a file from the user's local machine into a Flash application without going through a server? I would like to be able to load an image directly but I suspect the only way this can be done is to first upload the file to a server (using FileReference) and then download it back into the player. Seems kind of silly to have to make this round trip when the file is already on the same machine as the player.
View Replies !
View Related
Downloading Local Files
I have wmv files that i need available for download from an swf (both swf and .wmv's will be on a DVD or CD). The wmv files are in a folder named WMV which is at the same level as the swf. I just want the user to be able to click on a button and select "Save As" and download the file. I've been trying to use the download() method but keep getting IO Errors and also tried using navigateToURL but it tries to download it through firefox (no "Save As" option, just tries to open with Windows Media Player) and windows media player says it can't find the file.
I'm sure I'm probably missing something very simple, but I'm new to AS 3, and Any help would be Awesome!
Thanks!!
View Replies !
View Related
Running Swf Files In Local
I would like running swf files in computers without internet conexion.
I donīt know if these computers have flash player, and i canīt download it from macromedia web, obviously.
I donīt know if i can generate a swf file to do that directly, or if i have to have the flash player to install every time in every computer.
Whats is the solution, and how to do it?
Thanks
View Replies !
View Related
Opening Local Files Via A .swf
Ok i have a slight problem with opening local files.
I want it so when you click a button, it opens a file in a different folder to the on ethe .swf with the button is in. For example, when the "load page" button is clicked, i want the file at "/flash/vomitgame/index.html" to load. currently i am using this attached to a button instance, but it isnt working:
on (release) {getURL("/flash/vomitgame/index.html","_blank ");
}
Also, i want another button to do the same thing, but open a .jpg. Would I use the same code?
This is going to be put on a disc, with the "portfolio.swf" being the main file, and other files from differernt folders either opened or loaded into portfolio.swf.
Can anyone help?
View Replies !
View Related
AIR Load Local Files Into AIR App
I want to load a local file (stored in the applicationStorageDirectory) into my app. Do I make a reference to the file with a File instance and then pull that file in with a URLLoader(new URLRequest(File))?
I'm not clear on how to do this.
View Replies !
View Related
Running Swf Files In Local
I would like running swf files in computers without internet conexion.
I donīt know if these computers have flash player, and i canīt download it from macromedia web, obviously.
I donīt know if i can generate a swf file to do that directly, or if i have to have the flash player to install every time in every computer.
Whats is the solution, and how to do it?
Thanks
View Replies !
View Related
Saving .pdf Files
Hello everyone,
I'm working on a cd presentation in flash and I need to be able to allow the user to save a .pdf file and a .xls file to their computer when they click on a button.
I also wanted to know if you could launch the file in the application from flash also, for example a user might click on the button of the mac version of a pdf, and it would open the pdf up in acrobat right from flash.
Are both of these possible to do? If so, can someone please help me. it's really urgent!!!
Thanks
[Edited by ajeanne22 on 06-28-2001 at 02:56 PM]
View Replies !
View Related
Saving Files
Please help, Is there anyway that I can save a flash file on my machine using Actionscript or any flash command. Example: I have the ability to edit a field in the Flash Player and I want to click a save button and save an swf or exe file on my machine.
View Replies !
View Related
Saving .swf Files
I have had my kool moves for a year or more and recently it won't let me edit a file and then save it with the change. It seems to change it and save it, but when I go to upload it to my server, it doesn't reflect the change. As well as it no longer saves as a webpage. What should I do to fix this?
View Replies !
View Related
Saving Files?
I wish to make it possible for the user to save a file to their cookies and load it up later. Does it involve PHP or other SSLs to do this? If so, where can I find a tutorial? Otherwise, where can I find a tutorial? Heh, thanks
View Replies !
View Related
Saving FLA Vs SWF Files Qs ?
I've completed my Movie and now I wish to Imbed it into another Format. I already know how to do this but I am having a little problem. Since I spent a lot of time revamping the structure of my Movie, I found that I created an enormous amount of Images & Buttons that I was no longer using. After I Deleted these unnecessary Images and basically streamlined the Movie, I Saved it with a Different Name. Now when I went to the other Format I mentioned to Import the SWF Files, they were no were to be found. My FLA Files are there but not the swf files. So can someone explain to me why this happened and how I can locate or create an swf file for my newly renamed Flash Movie?
View Replies !
View Related
Saving Files
I'm fairly new to flash, but I was reading tutorials and I learned how to load in outside variables from other files (eg. text document), but I want to create a game in which it saves files to a text document so I can load them later. Can someone please tell me (in a very simplified way, if possible) how to save data to text files from flash?
View Replies !
View Related
Saving Files
Hi everybody,
I need to make it possible to download files from my movie... Like an image bank with a button that allows users to download the file with out having to launch an application so they can save it where ever they want in their hard drives (with a browse option)...
Can anybody help? ...pleeeze?
-- Ana Duke
View Replies !
View Related
Saving Files
Hi all,
I really need some help over here. I need to do a game that register high scores for the player and able to store the files up to a server to the computer. Anyone got any recommendations or simple codes?
I read through some PHP and mySQL but I really couldn understand. Is there a step by step tutorial?
Any help would be much appreciated. Thank you.
View Replies !
View Related
Saving Files
I would like to open a save file dialogue box on the click of a button within a flash projector. I need to allow people to save particular content from a cdrom to their hard drives. Is there any way of doing this?
many thanks
View Replies !
View Related
|