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


Similar Posts:


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 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 3.0 :: Save (and Load) Bitmap To Local Shared Object

Dec 8, 2009

I'm playing with Local Shared Objects, and I was able to save and load simple data types like strings and integers. Pretty cool.

I want to Save/Load a Bitmap Object but I'm having problems. I think I got a Bitmap Object to save but when I loaded it back in, it was basically a blank bitmap. I located the actual .SOL file on my computer and opened it up. It had some basic Bitmap info like scale, rotation, visible, width, height, etc, but NOT the actual bitmap.

So I realized that I need to be saving/loading a BitmapData object instead of just Bitmap. BitmapData holds the actual bitmap pixels, I think. Anyway I saved out a BitmapData object. When i tried to load it back in, I get a type coercion error: "Type Coercion failed: cannot convert Object@df355b1 to flash.display.BitmapData". I dont get it because this error didnt occur for Strings, ints, or Bitmap Objects. Whats happening?

Also, I looked again at the .SOL file after saving out the BitmapData object, And I dont see any pixel data there. The bitmap I'm saving is 800x800 so the .SOL file should be pretty big but its just a tiny file so I know the pixels havn't been saved properly.

Here is the code I'm using (Simplified - error handling removed, etc)

Code:
// save
var mySo:SharedObject = SharedObject.getLocal("mysharedobjecttest");
mySo.data.testA = 14;
mySo.data.testB = "hello this is a test";

[Code].....

View 14 Replies

ActionScript 3.0 :: Save Visual Object Data In Shared Object?

Jan 22, 2011

I'm using a loader for people to use to upload their own images for a background, and I want it to remember the image the next time they come to the page, so is there any way to save the loader data in a shared object? I haven't tried just using something like

Code:
sharedObject.data.dataName=loader

because I assume it doesn't work that way.

View 9 Replies

ActionScript 3.0 :: Save XML In Shared Object?

Apr 10, 2010

Is there a way in which xml can be saved as shared object?

View 1 Replies

ActionScript 2.0 :: Save MovieClip With Shared Object?

Jun 6, 2011

i`m going to attach movie from library i need when i click save button and close swf and run again the movieClip are loaded

View 3 Replies

ActionScript 2.0 :: Use The Shared Object To Save The _x And _y Positions Of Several Attached MC's

Mar 4, 2004

I am trying to use the shared object to save the _x and _y positions of several attached MC's. The attached MC's have all been given a variable name and attached to a dynamically created MC called "world".I need to loop through all of the MC's in _root.world to save their postions to the shared object. Here is what I have tried,.... when I trace so.flush.. it traces to true but the object postions are not saved.......

Code:
_global.initSo = function() {
_global.so = SharedObject.getLocal("marinaSave");
// if the SharedObject object created a new shared object

[code]....

Am I using the for... in method correctly to loop through the MC's in _root.world and save their values?

View 4 Replies

ActionScript 3.0 :: Shared Object - Save Without Pushing Button

Sep 14, 2010

I'd like to get the input text in the SWF to save on exiting the SWF without pushing a button. Here's what I have so far that incorporates pushing a button

Code:
var savedstuff:SharedObject = SharedObject.getLocal("Cookie");
btnSave.addEventListener(MouseEvent.CLICK, SaveData);
function SaveData(MouseEvent) {

[Code]....

View 1 Replies

ActionScript 2.0 :: Shared Object To Save Multiple Data

Dec 3, 2011

I am new to ActionScript. I am designing a calendar with schedule just like outlook calendar. I have 30 or 31 small text boxes for each month. I would like to save data in the text boxes so that data remains in that even when the file is closed. I used the following code and it works fine.

[Code]....

My question is, I have totally more than 360 text boxes for 12 months. How can I save all data using shared object? I tried loop, Array and function with the above code. But it did not work. You can also tell me if there is any other way to save data using PHP MySQL or ASP? If so how to do that?

View 9 Replies

ActionScript 3.0 :: Make A Shared Object Save A User Name For A Scoreboard?

Jun 22, 2011

how can i make a shared object save a user name for a scoreboard it works like this i made a mc that is the scoreboard and the scoreboard has text boxes in it and the game gets a popup when it starts with a editeble text i want that text to save on to a text box in the scoreboard mc how can i do that?

View 3 Replies

ActionScript 2.0 :: Save The Local Shared Object(.sol) File At A Desired Location?

Jun 8, 2004

!--Does anyone know if it possible to save the local shared object(.sol) file at a desired location or to embed it within the flash movie?

2--Is it possible to create an image file at runtime from a flash projector file?

View 1 Replies

ActionScript 2.0 :: Save Instance Of Custom Class With Local Shared Object?

Mar 26, 2008

I am programming a web based application with Actionscript 2.0 classes for flash 8, and I want to save user data using the local shared object.As the data is potentially rather complex I would prefer to store it in an instance of a custom class that I then stick in an array property of the local shared object data property.However, when I try to do this, if I retrieve the stored object it seems to have lost all its instance methods. If I do a for in on it, I can see the private properties to which I have assigned my data, but as they are private I cannot retrieve them.how I can store an instance of a custom class in a local shared object without it being corrupted in this way?

View 4 Replies

ActionScript 2.0 :: Save The Local Shared Object(.sol) File At A Desired Location Or To Embed It Within The Flash Movie?

Jun 8, 2004

!--Does anyone know if it possible to save the local shared object(.sol) file at a desired location or to embed it within the flash movie?

2--Is it possible to create an image file at runtime from a flash projector file?

View 1 Replies

ActionScript 2.0 :: Shared Object Wont Work In Firefox, Fine Elsewhere?

Nov 18, 2009

ActionScript Code:
stop();
var myCookie:SharedObject = SharedObject.getLocal("mySavedData");

[code]....

View 3 Replies

Actionscript :: Shared Object Doesn't Work In Separate .as Class?

Aug 28, 2009

bit of an odd problem, I have the following piece of code

Code:
var myCookie:SharedObject = SharedObject.getLocal("mySavedData","/")
if(myCookie.data.mySavedText != undefined)
{
var gallerypath:String = myCookie.data.mySavedText;
}
which retrieves a shared data.

If I put this actionscript on the first frame of a new document, it works fine, however I want to use it in something I already have, which uses an external Document class.

[Code]...

View 1 Replies

ActionScript 3.0 :: Access A Shared Object Declared In A Certain Function?

Jan 20, 2011

I am trying to access a shared object declared in a certain function, from another function. I am having

difficulty doing so. My code are as follows:

Code:
//Constructor code
public function EventTest()
{

[Code].....

View 1 Replies

ActionScript 3.0 :: Use A Shared Object So That When Someone Goes To The Next Page It Will Load On The Picture It Left Of At

Feb 2, 2011

Have a flash picture slide show that fades in and out to transition from picture to picture. Would like to use a shared object so that when someone goes to the next page it will load on the picture it left of at. Should the shared object load at the last state or should it save the frame position? The movie has so many pictures that people will only see the first couple pictures every single time they change pages and never get to the end of the movie. This was made in Flash CS5

View 1 Replies

ActionScript 2.0 :: Load Data From Another Shared Object From Another Flash File?

May 16, 2007

Is it possible to load data from another shared object from another flash file? if so how?

View 1 Replies

Flex :: Get Property Values From Shared Object In Client's Load Event?

Mar 5, 2010

I am using shared object to share data between two users. First user connect to shared object and set some value in shared object. Please consider that second user has not connected with the shared object yet.Now when second user connects to the server and try to get that property set by first user, he could get shared object but could not get properties of Shared object set by first user. I observed few times that Second user can get these properties within "Sync" event between two users. But I would like to get these values for Second user in any stage (i.e. in load event etc.). Whenever Second user tries to get the property of Shared object, the object will reset the actual property value and then return reset value.

1) Is there any way to get all the properties of shared object before sync event called, as I want to get it immediately when second user connect to the application and perform next task based on the values stored in shared object.

2) Is it possible for second user to check whether any property has been set by first user? So that second user can use the property instead of reset it.

View 1 Replies

ActionScript 3.0 :: Make Save / Load Menu Like In Line Rider To Work?

Sep 9, 2008

Does anyone know how to make a save/load menu like in Line Rider to work?

View 7 Replies

Media Server :: Why Server Side Shared Object Doesn't Work

Mar 29, 2011

application.onPublish = function (client, p_stream){  var myInfo = SharedObject.get(p_stream.name);   myInfo.setProperty("live", true);

I set the sharedobject using code above,now I can publish video,but so is not set(from admin console, "shared object" tab).

View 3 Replies

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

ActionScript 3.0 :: AIR Shared Object Shared Between Flash & AIR?

Mar 13, 2009

I created a very simple experiment to attempt to access the same shared object in Flash Player and AIR.

A Flash SWF creates a local shared object.

A AIR application (being tested from CS3 or installed) opens the same shared object.

The data does not persist. Is this theoretically possible?

View 1 Replies

Professional :: Shared Objects - Save The SOL File To Desktop

Dec 28, 2011

I am a psychology student and have the need to edit a flash game for use in a project. Having no programming experience, this is proving to be an issue! Basically I contacted the authors of a study for a copy of a driving game that records data to an external file (I think this is where shared objects come in?). Unfortunately, I cannot find the output file anywhere on my machine (I am running Windows 7 - have looked in the appropriate directories). After downloading a trial version of CS3, I have edited the screens I needed but have not been able to understand the code. I have located the code for the shared object and was wondering if anyone know how to make it save the SOL file to my desktop. Here is the code I think is appropriate:

[Code]...

View 30 Replies

IDE :: Flash Xml Load Function (\serverfolderfile.xml) Don't Work

Mar 19, 2009

I am calling a xml file from intranet by using

xmlLoad("\serverfolderfile.xml")

i am building a application for local intranet.

View 5 Replies

ActionScript 3.0 :: Can't Get The Setter Function To Work On A Vector.<object>?

Jan 1, 2012

what I try I can't get the Setter function to work on a vector.<object>

Mean while the getter works fine Example as below

Code:
public function get frameData() :Vector.<Object>
{
trace("getter");[code]....

the code runs fine without the set function, but not without the get.

View 7 Replies

ActionScript 3.0 :: Make A Flash Game Have Save Files Using Shared Objects?

Dec 13, 2009

I'm trying to make a flash game have save files using shared objects and I'd like to keep all the data in one file with several children.

The three things I'd like to do are:Check whether the file exists (create a new file if it doesn't), then check whether to child named with text in an imput box exists, and if it doesn't create a new file (using the text in an imput box), and then set the value of that node to 0.

Then later I'd like to change that node to another number (the easy part).I'd also like there to be a way to disable the shared objects (incase the user doesn't allow shared objects).I've tried to do this myself using a few tutorials, but I could get it to work.I couldn't use the text in the input box to name the child,and I couldn't check the size of the child node to see whether it existed or not.

View 2 Replies

ActionScript 2.0 :: Using Shared Cookie To Save Frame Position Inside Movieclip?

Feb 16, 2010

i have a pie chart with clickable sectors. when you click a sector it jumps to the next frame on a movieclip and changes colour. I want to use Local Shared Object to save the frame position so when i come back to the swf later on the sectors of the pie chart are saved.

View 16 Replies







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