ActionScript 3.0 :: Way To "save" Player Data?
Sep 21, 2011
As you all have probably summed up, I am created an RPG game using flash. As such, there are a lot of variables that go along with the player and the environment. I am trying to figure out what the best way to save these variables would be, so that the player may come back to the game at another time and pick up where he/she left off. I would prefer something that doesn't involve an sql database, but also something that has some form of encryption. I was thinking maybe something along the lines of XML. There is quite a lot of data that needs to be saved, and then later recalled.
View 11 Replies
Similar Posts:
Oct 15, 2009
I 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].
View 1 Replies
Jan 14, 2008
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 Replies
Nov 25, 2003
I wonder if I can get Flash to save a choose that a player makes somehow?
View 2 Replies
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
May 12, 2011
I 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 4 Replies
Mar 27, 2009
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]....
View 4 Replies
Feb 20, 2010
how to save data in action scriptig
View 5 Replies
Apr 23, 2005
I 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 Replies
Dec 10, 2006
Code:
<?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>
View 1 Replies
Sep 15, 2009
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 Replies
Sep 20, 2009
I 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
Jul 4, 2011
How do I save data from an AIR app to a .db file? I'm learning how to do an AIR app to take the strings from the user inputs textfield and generate a .db file that will be saved in 'My Documents' in the user's computer when the user clicked on the 'Save' button in the AIR app.
View 4 Replies
Dec 27, 2011
I am working on a flash applicaton and the final required output is of .exe and .app format.In this application. I need to save some text data on the system but as the file operation are not allowed in the .exe and .app files.I am unable to save this data.Is there any othere way to save the data on the system through exe application.
View 8 Replies
Mar 21, 2011
I have an AS3 document with roughly 200 individual elements I'm trying to save to the database. I just need to saved information about their physical properties on the stage.There are many ways to do this, but what is the recommended approach?
View 2 Replies
Nov 4, 2008
I create an area within the site where a user can manually create something from a list of objects, if I, say, wanted to save this data as a number of variables to the server ie- a new row containing all the data unique to that saved item, does anyone know the best method of doing this, I'd figure it'd be XML but resource seems a bit sparse in this area.
View 4 Replies
Feb 11, 2009
I m in between of my flash application. Actually its a MP3 player where MP3 files are dynamically loading in flash. I have to put a counter (total no. of times mp3 has played).
Can u please guide me how can I store this dynamic value in xml or atleast tell me how to save data in xml through flash actionscript.
View 3 Replies
Dec 20, 2009
I want to save my data in online how to it in flash as2.0ex; i will give data in on line the data is saved in my site its possible
View 1 Replies
Jul 8, 2011
How i can save data localy in my drive using as2
View 3 Replies
Mar 21, 2012
I am trying to save user data and I keep on coming up with the same problem. The problem code is highlighted red in the ITEM.as file. The problem is that when I update the variable it updates the savefile also, when it should not! I do not have a clue what is wrong because I am putting the traces for the savefile in one right after the other so the code can't be executing elsewhere right?
SAVE.as
ActionScript Code:
class Save_mc extends MovieClip {
var nSaveAnim:Number = 0;
function onEnterFrame() {
[code]....
View 0 Replies
Aug 18, 2009
I want to save data my computer, that i got from playing my flash movie.
i'd prefer it if i'd be able to save the data on the computers of other people aswel, but i mainly need to save it on my own comp while developing the flash movie.
So want to be able to dynamically save/load data from actionscript.
View 2 Replies
Jul 5, 2011
there are 2 items on stage, one is the "button" with instance name myButton and a dynamic text field.so the action script goes this way...
myVar=0;
myButton.onRelease=function(){
myVar++;
trace("click");
}
the dynamic text is initially zero (0) and when i click the button it counts the clicks up to here every thing works right but...when .swf file previewed in html after clicks if refresh is pressed the number is going back to zero.i want to upload this file and use on webpage.
View 5 Replies
Aug 28, 2010
As part of a project I am working on, I would like to know if it would be possible to store some data in the actual flash file.
Let me make this clear now... I DO NOT WANT TO USE COOKIES!
I need to be able to save some data to the SWF itself, NOT to the local computer.
To be more specific, I need to store a set of URL's, but they also need to be added by the file, so...
Lets say i have a button that when you click, will make a text box appear, and you type in some urls such as:
[URL]
I then have a button that says "Save" and this will save these 3 URL's. I then would have the SAME SWF display these URL's (these will be URLs of Images). The important part is, these 3 URLs MUST BE READ by everyone who views the swf afterwards, so if I were to enter some URLS of Images, when someone else views the page, they will see the images that i entered. This is why it cannot be a cookie, as their computer will not see my cookie.
Even if the data cant be stored in the SWF itself, i will need some way to load this information where ever the swf is viewed.
View 2 Replies
May 27, 2008
I have a big dout running in my mind that can we save a xml file from an swf., that is i have done so many projects from which you can read contents from xml but can we write in to xml that is all is my dout.
View 5 Replies
Sep 9, 2011
I'ld like to save variables to an Encrypted Local Store. This example is working but how can I extend it to save more than 1 variable?
[Code]....
View 1 Replies
Oct 1, 2010
how do i save all my data without assigning them instance name 1 by 1? is it even possible?
btw where do i use the sharedObject? in the documented class or on every classfile?
i just want to clarify things before i make another error.
View 1 Replies
Jun 18, 2011
I have a table which contains 3 columns, "itemid, xcordinate, ycordinate", in this different records are saved, now i want to have these records on a JSON file, when use click save button, all records present in the table(2d array) save in JSON file.
View 1 Replies
Sep 11, 2011
So, I'm creating a quiz, and I'm using shared objects to save their resume data. So far so good. MOST of the various things I put into myso.data work fine. But oddly, two bits of information, specifically a String and an Array of Strings come out as [object][Object] when they are reloaded later. Now, at first I thought that maybe they just weren't getting written correctly, so I thought to trace them out before and after I put them in the SO.
When I do trace(myso.data.sectionName) or even trace(myso.data.sectionNamesArray) the first time (i.e. immediately after they get written, but before closing the window) everything works as expected. But if I trace those same things out upon the reopening of the swf, those things become [object][Object] for the String, and an array of [object][Object]s for the Array. So I thought maybe it was Strings in general, but other pieces of information, also Strings or Arrays of Strings trace out fine before and after. It's just these two pieces.
View 2 Replies
Feb 9, 2012
I would need to save some binary data (bitmap data or similar) as a part of XML file.[code]...
I suppose I must serialize or encode "ba" (binary bytearray data) some way to string before writeing to XML and decode them back during the reading from XML, but I cannot find the correct way how to do it.
View 3 Replies
Mar 22, 2010
I am making some word game I need to save my data into PC. I don't know How to do it.
View 6 Replies