ActionScript 3.0 :: Save And Load Function?

Nov 24, 2009

So lets say I have a online game where I will have everything that is going on in the game, assigned to variables. I want people to play the game from their own computers through the website and I want them to be able to save and load their place in the game.f this is the first time they have saved, it will ask them to make a login and a password.ll of the data should be stored on my server

View 3 Replies


Similar Posts:


ActionScript 2.0 :: How Does The Shared Object Work - Get A Save And Load Function

Sep 21, 2006

I have developed a game in flash and I am trying to get a save and load function so that the user can come back to the game that they were playing. Can this be done using the Shared Object....

View 2 Replies

ActionScript 3.0 :: Save Button Not Working For Function

May 8, 2010

I have use for button Save this function:
Code:
private function btnSaveHandler(e:MouseEvent):void{
dispatchEvent(new ControlPanelEvent(ControlPanelEvent.CLICK, ControlPanelEvent.SAVE));
But this not work, why?

View 9 Replies

.FLA Takes Forever To Save / Load?

Mar 30, 2010

I'm having a brutal time with a FLA. The wait time to open this thing is ridiculous, and alot of the time the program will just become nonresponsive. Its only this one specific file, as others open fine. It also has nothing to do with the hardware on my system, as we've tried the file on a variety of machines.The FLA itself contains very little bitmap art, most is vector. It's about 16mbs, but publishes down to a SWF thats about 300kb. There were some complex vector elements which were removed in a fruitless attempt to get this thing to move faster. Trying to "save as.." results in flash writing to a file extremely slowly. The resulting file will progress in size from 2 - 4 mb with about 10 minutes wait time in between. Its becoming nearly impossible for us to work in the file. how I could debug Flash itself to find out whats going wrong on load/save?

View 3 Replies

Actionscript 3.0 :: Load PDF And EDIT And SAVE?

Sep 2, 2011

I have a project that requires me develop an application that will load a PDF file, manipulate and edit it then save it as PDF file again.

View 4 Replies

ActionScript 2.0 :: Save/Load Using Php And MySQL?

Oct 27, 2004

save/loading with Php and MySQL. Every user should have hes own save under hes username and password.

View 1 Replies

ActionScript 2.0 :: Save/Load Variables To .txt

Dec 21, 2006

I know Flash applications cannot store data locally for security reasons, however, Macromedia has addressed this issue:

[URL]

But I don't understand that at all...

So, probably using what that link says, what's the best (easiest on the user) way to store data to a consenting user's computer? I don't mind if it has a prompt for permission, but it should not rely on too much software that nobody has (java and shockwave seem ok). The goal would be to store data across sessions, so that it would remain available if one returned to the application after closing it and going offline.

This would be useful for saving a character's HP, experience, and location variables in a game for example... possibly ending up with a .txt file that looks like:

name: Aesir
level: 2
exp: 50
zone: Cave of the Poo
x coordinate: 10
y coordinate: 30
gold: 5

Or something simple like that.

View 3 Replies

ActionScript 2.0 :: Save / Load Using Php And MySQL?

Oct 27, 2004

Iw allready done the register and login thingy now save/loading with Php and MySQL. Every user should have hes own save under hes username and password.

View 1 Replies

ActionScript 3.0 :: How To Load And Save Local SWF File

May 23, 2010

I know it's possible to load and save a local file using CS4 and Flash Player 10, but my question is if I can load a SWF local file without using 'browse' and 'load' methods and then save it. I really pretend to "copy" a specific SWF local file into another folder on my HD and I think this is possible loading first this file and then saving it. For this reason I don't want the dialog box appears (with browse method). ('maybe with 'Loader'?)

View 2 Replies

Actionscript 2.0 :: Save And Load Character Script

Jan 28, 2009

I'm almost retarded, but I understand the basics of ActionScript 2.0. I'm busy with a game. Now I'd like to save characters, and later on reload them again. The characters will be composed by drag&drop scripts. Where haircolor, face, eyes etc. can be chosen. Now my problem is: I really haven't got a clue what this is called, save and load? Or where to start at all

View 2 Replies

ActionScript 3.0 :: Load / Save Variable To Computer

Jun 11, 2010

I need to know how to save and load a very small amount of variables to a computer running my swf file. It is so that a person can keep their progress in a game if they decide to close the .swf and reload it later. It has nothing to do with a server. The most related thread I have found was [URL] but it has no solution.

View 4 Replies

ActionScript 3.0 :: Flash Save And Load XML File?

Mar 14, 2011

need save a MovieClip in XML format, then i wrote this code below:

private function getDegrafaData(e:MouseEvent):void {
var xml:XML = _canvas.getObjectData(FormatType.DEGRAFA);
_saveFileRef.save(xml.toString(), "My_Sketch.xml");

[code].....

View 6 Replies

ActionScript 3.0 :: Load A Picture - Crop It And Save It Back As Jpg

Oct 19, 2009

I need to build a flash application In which I load a jpg, make a selection of it (a mask or something like crop tool) and save it back. Loading the picture and making the mask are not a problem. saving the edited picture back.

View 6 Replies

ActionScript 3.0 :: Load And Save Text Using FileReference Class?

Feb 20, 2010

Let me start by saying I have no intention of using php and I can't wait until flash cs5 comes out with its new read/write capabilities want to load and save XML files (stored on my local hard-drive) in AS3.I am using the FileReference class.Firstly I have noticed that when using FileReference.save if you replace an existing file instead of writing over the file data is appended to the end of the file. Can I make it so the file is overwritten (as it should be) or make it impossible for the user to save in such a situation.Secondly I want to load in text from an external file using FileReference.load I know that somehow you use FileReference.browse first to get it to work but I want to know exactly how to do it.I have looked for a tutorial about loading text in this manner and have not found one.

View 5 Replies

ActionScript 1/2 :: Script To Make An Save/load Button?

May 22, 2010

What actionscript would you use to make an save/load button?

View 1 Replies

ActionScript 3.0 :: Script To Make An Save/load Button?

May 22, 2010

What actionscript would you write to make a save/load button?

View 1 Replies

Actionscript :: Save And Load Objects In Flash Adobe Air?

Feb 26, 2012

I need to figure out a way to allow users to save their galaxy in an outer space game that I'm building. At the most basic level, I need to write the randomly generated galaxy (which is an instance of a custom class) to disk and then read it from the disk later. I've not used Air's filestream abilities before and I'm having a bit of trouble. [code]...

View 2 Replies

ActionScript 3.0 :: Load A Picture - Crop It And Save It Back As Jpg?

Oct 27, 2009

My application is almost set, load the image, made the crop, save It to a server with a php and all good until here. Now I want to drag the image, make a scale of it and for that I used an Matrix (also done).

My problem is if I scale it less then initial value, my crop is not good. Can you please take a look at my code here, because its drives me crazy and I cant figure it out.

View 0 Replies

ActionScript 2.0 :: Save And Load To A Text File In Flash?

Feb 16, 2010

how to save and load .txt files using flash? like let's say i want to make my program so that when the user(s) get onto my website that they can save a .txt msg. and then they want, they can re-load this value from the .txt (it doesn't have to be a .txt file, i just figured that would be trhe easiest way) also i need this information to be saved onto the server. how can i do this? Like do i need Side Script? (and if i do what is that?)

View 3 Replies

ActionScript 3.0 :: Save/load Variable Data To Computer?

Jun 11, 2010

I need to know how to save and load a very small amount of variables to a computer running my swf file. It is so that a person can keep their progress in a game if they decide to close the .swf and reload it later.It has nothing to do with a server.

View 3 Replies

ActionScript 3.0 :: Shared Object - Save And Load Color

Feb 9, 2011

I wanna to make some flash for save and load color...
Click button to change button color and click again return to old color and
Save lase color
When run project to show last save color

View 7 Replies

ActionScript 3.0 :: Shared Object - Save And Load Button?

Feb 11, 2011

i want to create some 1 button for save and 1 button for load all shared object in my projectthis is my code for save and load and i want to create 1 button for save and 1 button for load last check point

ActionScript Code:
import com.dVyper.utils.Alert;
import flash.events.MouseEvent;

[code].....

View 0 Replies

ActionScript 2.0 :: Save / Load Variables In Games? No Cookies

Nov 30, 2004

Once, I wanted to make a large RPG-game. I wanted it to be like Zelda, Diablo2 style of RPG with much Hack-and-Slash but also a little quests and a big world to explore. (a BIG game). A game needs to be programmed, so I had to choose a programming language. I chose Flash, because its easy to make graphics in it, and its not that hard, I thought. The game was planned to be a stand-alone-application that you could have on your computer and play whenever you wanted to. Much like any other game. But, this was not something I thought of in the beginning, games you make in Flash usually is web-games, right? But this RPG I wanted to make was not an online-game, and I didn't want it to be either, because it would be to big to download everytime you wanted to play it.

A RPG-game needs a save game/load game function. But Flash cannot write to external files! This was terrible! Now, its a great safety protection to make flash files not write bad things into your computer. But I need it in order to save my games! There is this way, that flash can load variables from external text files. But is there some way that I dont know about to make it save there to? One way is to make the player manually copy a mass of code (variables) from a window in the game, into the textfile. Any way to write from flash to a textfile?

I know these other two ways of "saving".
1. Using cookies to save and load.
2. Using an online database of some sort to store/load variables.
But they're for online flash applications only... So I'd rather not use them.

View 5 Replies

ActionScript 3.0 :: Save Load Game Using Shared Object?

Dec 29, 2011

im creating a side scrolling game project in flash as3..

and one of the requirements is saving and loading the game.

this is what i wanted to do.

the game can save the name, score, and the specific location of the character,

or maybe im thinking of a checkpoint or a savepoint.

ive read some articles about shared object, and im thinking on using it, but i really cant get it.

View 5 Replies

ActionScript 2.0 :: Multiple Save And Load Text (theory)?

Apr 22, 2011

I understand flash does not allow to save text to file, but i have been using zinc 3.0 and can save and load a single text file within flash.1. run me through what the theory would be to have multiple input text fields that save to 1 text file and then is able to load the text from those text fields back into the same place? In theory or if someone knows.2. Is it possible to automatically load and save text to files using something similar to flush() with shared objects?3. Is it possible to have a username and password so multiple people can save and load there own answers? Perhaps having this password on the first frame as i have multiple frames with sl.

View 13 Replies

ActionScript 2.0 :: Save Data On Local Disk And Load Up Again?

Jun 14, 2004

I need to save data to the local disk and then load it back up again as required. I'm using a local shared object to save data to and this works fine. Getting it back out again seems less straightforward. This is the code I'm using:

//Saving
myLocal_so = sharedobject.getLocal("flashcookie","/");
datastring = "anyoldstuff";//sample data to save
myLocal_so.data.savegame = datastring;
myLocal_so.flush();

//Loading
myLoadVars = new LoadVars();
myLoadVars = myLocal_so.data.savegame;
myLoadVars.onLoad = function(success) {
if (success) {loadgame = myLocal_so.data.savegame;
trace (myLocal_so.data.savegame);
} else {trace ("Error!");}}

Nothing appears to happen at all. The program continues with no traced output at all.

View 3 Replies

ActionScript 3.0 :: Function That Pulls In Values To Save Writing 15 Separate Functions?

Nov 18, 2009

I have just started learning AS3 (2-3 weeks) and I have to say its very enjoyable!I am trying to make a function that pulls in values to save me writing 15 separate functions!I have a "street mc" which has 15 "house mc's" inside.When the user hovers over a house I want the resident to appear above the house.The house instance name is house1 and there is a mc in the library linked using the MrsRoy() class.This is my code so far:

Code:

var house1Res:MovieClip = new MrsRoy();
function resIconIn(e:MouseEvent):void{
var currentHouse = "street." + e.target.name;
var currentRes = e.target.name + "Res";

[code]....

I get the error:

TypeError: Error #1006: value is not a function.
at Dignity_drive_fla::MainTimeline/resIconIn()

View 1 Replies

Professional :: Save And Load The Swf-file To A Local Disk Of Any User?

Sep 28, 2010

I am a developer in Web Flash Game.(I use AS3.0) I want to save and load the swf-file to a local disk of any user,Because I want to decrease the time for loading a flash movie from site.Is it possible?If it is possible, I hope the swf-file has only one loading from site and it will be loaded from a local disk of any user after that. (I know a concept of Internet temporary file. I want to know the other techniques of only using AS3.0.)

View 3 Replies

Actionscript :: Air/Flex 4 - Load Image From File, Scale Down, And Save As PNG?

Dec 27, 2010

I wrote these functions which I use in conjunction to scale down some BitmapData and save it as a PNG. However, the scaledImage.draw(originalImage, scalingMatrix, null, null, null, true); line with smoothing set to true does not have the intended smoothing effect when I save the bitmap data as a PNG using the second function. The resulting image file is not antialiased at all. Is there anything I'm doing wrong here?

public static function scaleImage(originalImage:BitmapData, size:int):BitmapData
{
// Calculate the scaled size.

[code]......

View 1 Replies

Actionscript :: Bitmap - Load> Combine> And Save External Images?

Mar 11, 2012

Bascially what I'm trying to do is load 2 or more external images, all the same size and resolution, then combine or composite them one on top of the other, then save that result as a new image using a jpeg or png encoder.

I don't want to take a snapshot of the stage, I'd like to save the images with thier original resolution. So far the only thing I've been able to do is load two images, and composite them on the stage. thats about it.

I'm using flash pro CS5.5, and writing code in a class file, not on the timeline. Here is a copy of the code.

[Code]...

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved