ActionScript 2.0 :: Save Data Locally With It?
Jul 8, 2011How i can save data localy in my drive using as2
View 3 RepliesHow i can save data localy in my drive using as2
View 3 RepliesI want a user running a Flash game on his machine (not from a server) to be able to save some game data locally.From what I've read, there still isn't any way to do this, but I thought I'd throw it out there in case anyone knows a sneaky xml or php work around.
View 2 RepliesHow 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 am populating a listbox with an array. When an item is selected in the listbox, I am attempting to link to that file and save it locally when I click a save button. I have fished around looking for ways to do this. I guess I'm looking for any info. I know the FSCommand has some functions that may help, but they don't seem to be supported completely.
View 7 RepliesI need to save images from flash via asp (windows server) to local computer, how to do this?
View 5 RepliesThis 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?
I know how to save images from flash using JPGEncoder/PNGEncoder using FileReference.save();But I don't want the dialogbox displayed.I want this: Clicking a button will save the image to a predefined location without user confirmation.
View 1 RepliesI 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 work. Even if I load the local SWF file in a browser it won't work.
The following code is what I use to save the file and as said it works fine locally but whenever it goes into a browser it dosen't.The save dialog simply never pops up.
var bitmapData:BitmapData = new BitmapData(canvas.width, canvas.height);
bitmapData.draw(canvas);
var jpg:JPEGEncoder = new JPEGEncoder(100);
[Code]....
The app itself will require some data from an online database to be downloaded and stored locally, so that the kiosk can be safely disconnected from the internet while running, and reconnected later to update its data.I'm currently trying to figure out the best way to do this. I figured that the data's easily enough loaded from a server-side PHP script and saved to a local SQLite database for offline usage, but I haven't been able to find any solid method of downloading and saving images. At least, not without using a save dialog.
View 1 RepliesIt works by reading an existing Class file, parses it, generates an Interface-like .as file for it, and saves it locally, all from within FlexBuilder. It works perfectly but I'd like to improve it by having it automatically open, modify and save the files with only a few user clicks required.Currently I'm using FileFilter, but this requires that the programmer manualy select each file to parse, and then manually select where to save the output - it's tedious.Normally I'd simply use AIR, but because of my company's security policies I am not allowed to create my own AIR applications.
View 5 RepliesI have been struggling with this all week now. I am using as3 and within my movie I have a dynamic text box that contains a score.I need this score to be written to a text file preferbly in an array that only stores the highest 5 scores.I then need values from the array to be read and displayed on another movie which will act as a high score table. e.g. I will have a dynamic text box in my high score move that will display the 1st value in the array, and then the 2nd etc.
writing/reading data to text files.Alternatively if anyone else can suggest another method for a high score table please let me know. I only need a basic high score table that runs on a users local machine as the app i am making is desined to run on individual users machines.
How to store data locally using Flex 3 in web applications. Without using backend or using shared object.
I came to know that there is something called Data Management in Flex 3. And it is not for AIR application.
I have an offline presentation for a client that needs to have a form submitted data saved local on the machine (kiosk) to be gathered later.I researched on google and found fscommand to write to a txt file but this no longer works and is sorta sloppy.
View 5 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 RepliesSo I have an html file with a swf in the center which loads pictures and text via XML. It works fine on my own computer but on the actual site it doesn't load the pictures or text it, in any browser.
View 1 RepliesI'm trying to debug a swf in Flash Professional CS5.5, by running the debug-> Debug Movie -> In Flash Professional. When I do I get teh Adobe Flash Player Security window. It says you are trying to connect to and the I.P. address of the server (e.g. 203.22.35.101). I've opened the settings and added that I.P. under Advanced->Trusted Location Settings... that doesn't help. btw: If I run -> Control -> Test Movie -> In Flash Professional it works fine, but then I can't debug.
View 1 RepliesI am making app that works as stand alone, do some calculations and sting formating. Also it need to save data localy, and be able to reload it when needed. I have read that Shared Objects do that but also have limitation. For example the data can be deleted without user doing it. I need the data to somehow persistend and been able to delete only by the user of the app. As extra exporting data for other user will be usefull, but is not requared.
View 1 RepliesI need to store data locally (not in shared obj), can I write xml file directly without dialog box or any other methods..?.
View 2 Repliesis there anyway to store a file(an XML in this case) locally on a computer WITHOUT using a PHP server running on the computer. Im develpoing an application for both Mac OS and windows so it needs to be a solution that will work for both.
View 1 RepliesI've to make a form that's going to work on a local machine without internet during an event. I have a form i'm using for our website, but this one just sends emails.The data needs to be written to a file (Excel / XML ?) which we, after the event, tranfer to another computer and add the list of subscriptions in our company network.
View 1 RepliesI have my XML Data Displayer referring to an XML feed on the web, it works fine when I run it locally, however it doesn't work when I run it off my site.There's no missing files- since I'm referencing to an XML feed on the web.How can I solve this problem and display XML data from the web, on the web?
View 2 RepliesI have an xml file (externally saved) that is similar to the following:
[root]
[main]
[title]...[/title]
[Code]....
What I like to do is to get what's in [title] tag using HTTPservice, import it into Flex, and save it as array objects, and do the same thing for [content]. This way I can later refer the array object saying title[0] or content[2].
I have an Access Database (doesn't need to be Access, I can phpAdmin or mysql, whatever will work) that has a list of names. I want the user to open a Flash form and have the names load up into seperate input boxes for each name. The user can then change the names, move them, whatever, and then save the record. I want it to just overwrite the record. I donlt want create a new record. I cannot, for the life of me, figure this out. I have tried to find some tutorials but nothing makes sense. Is ASP a good way to go? I have been struggling with this for a week now.
View 3 RepliesI am planning an eLearning project for an AS3 version of a family health history diagram (pedigree/genogram). A major consideration would be whether the diagram (created by the user by their inserting square, circle, other symbols, connecting lines, text labels, etc.) can be saved and re-opened for editing, so the user can build their family health history diagram, edit, change/add to it over time.
I've seen XML mentioned as a possible method for saving data and wondered if it (maybe by adding a server-side script-ASP, PHP) can save/re-open for editing, x,y positions of shapes, line positions, angles, length, type, etc. An SO could also work, but I'm not sure if 100 kb is enough for this data (if the Max storage is not changed in player settings, by each user).
I have a text file that I'm loading in, and that works just fine, but I want data to be saved to the file and I can't figure out how to.
This is what I have so far:
[code]....
how to save data in action scriptig
View 5 RepliesI am planning an eLearning project for an AS3 version of a family health history diagram(pedigree/genogram). A major consideration would be whether the diagram (created by the user by their inserting square, circle, other symbols, connecting lines, text labels, etc.) can be saved and re-opened for editing, so the user can build their family health history diagram, edit, change/add to it over time.I've seen XML mentioned as a possible method for saving data and wondered if it (maybe by adding a server-side script-ASP, PHP) can save/re-open for editing, x,y positions of shapes, line positions, angles, length, type, etc. An SO could also work, but I'm not sure if 100 kb is enough for this data (if the Max storage is not changed in player settings, by each user)
View 2 RepliesCode:
<?xml version="1.0" encoding="utf-8"?>
<events init="0" from="1/10/2006" to="1/7/2009">
<day date="0" value="hoy">Today!</day>
<range from="2/10/2006" to="12/10/2006" state="birthday" value="selected">Holidays!</range>
<range from="29/10/2006" to="29/10/2006" state="birthday" value="selected">Holidays!</range>
</events>
I cannot save this information from flash to xml:
<range from="29/10/2006" to="29/10/2006" state="birthday" value="selected">Holidays!</range>
I did small program on which the user will type some data into array which should be later on saved onto server or to local machine as an xml file. Now I know that flash cannot save files on its own and it would probably need some php script or something. I've never worked with php and to tell the truth i couldn't fine any articles about this topic. Are there some examples that you can show me the way with??
View 3 RepliesI plan to create a level editor for the game I currenty work on. Thats no problem at all, but I have no idea, how i could save data for the maps into a server from the .swf and get them back at a later point.And I also would like to know, what kind of a server I would need. Are free ftp servers enough for stuff like this, or are they useless?
View 6 Replies