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


Similar Posts:


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 :: 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 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 :: 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 :: 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 (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 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

Data Integration :: Shared Object - Prompt Data Permissions Dialog?

Jan 19, 2007

I'm creating a small app to run from CD-Rom/local installation that will use multiple shared objects for data storage. To ensure proper saving without surprising the user with a permissions dialog unexpectedly, I'd like to request unlimited data storage on first time app launch - Joey Lott shows how to do this in the Actionscript Cookbook... request=mySO.flush(1024 * 500);

My question is,Can I perform this permissions request with the user a single time with a generic app SO in global fashion, so that the permissions would be set for any SOs created during the use of the product (all written to same SO directory),or do I have to request
permissions for each and every SO created? Since the latter would be unacceptable from a UE standpoint, that means stuffing all app data into a single SO which doesn't seem so great from a data config perspective...

View 1 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 3.0 :: Add A Non-visual Object Like My SndManager To The Application Object?

Apr 10, 2010

Lets say I have a visual component (button) and a non-visual Object that receives a message and generates music in realtime (using an internal Sound object, etc). What's the best way to make the connection in OOP/AS3? In other languages, I've used to add the objects to a top level object (something like the Application object) and let them see each other. Example: Add button to App, add SndManager to App. Click on button, notify App, make App invoque the play() method on the SndManager.I'm asking you this because the above example looks odd to me. In fact, I'm not sure if I can add a non-visual object like my SndManager to the Application object.how can I bridge this?

View 1 Replies

ActionScript 3.0 :: Shared Object Not Writing Data On 64 Bit System

May 27, 2010

I have a client that is running a 64 bit system. On my 32 bit system my Shared Object writes the data without a problem but theres hangs when the call is made to write the data. Any ideas how to go about solving this problem? I would think it would not matter if the system is 32 or 64.

View 1 Replies

ActionScript 3.0 :: Storing Data Locally Not In Shared Object

Jul 9, 2010

I need to store data locally (not in shared obj), can I write xml file directly without dialog box or any other methods..?.

View 2 Replies

Flash :: Accessing Shared Object Data Without Reloading Swf

Jun 24, 2011

I'm wondering if it's possible to access a shared object's data (once it's been changed) without reloading the swf. Specifically, I have two swfs: one changes the data in the so and lets the second swf "know" via a localconnection. I have a function in the second swf that fires via the local connection.[code]This function looks for the new value however it doesn't show the updated value in my textfield unless I refresh the browser. Thoughts?

View 1 Replies

Actionscript 3 :: Getting Updated Shared Object Data Without Reopening It?

Feb 7, 2012

I have 2 swf that will be loaded on a website. One suppose to generate a bytearray and being passed over to another swf.

The problem is that when I save the bytearray to a SharedObject in user's local file, the second swf doesn't get the updated variable value from the first swf.

I've set the second swf to retrieve the value every one second and it don't get updated until I reload the page.

I flushed and close the connection to make sure the data is saved on the local path and that is not helping as well.

I also considered using LocalConnection as well but there is a bug in flash player for mac that stopping it to work between swfs on mac. Left me no choice but to use SharedObject for my project.

View 2 Replies

ActionScript 2.0 :: Looping Through Shared Object Data Prop?

Jan 15, 2008

I'm trying to loop through each of the arrays stored in a Shared Object and place the individual array items inside rows of textfields. This isn't quite working - it fills all the text fields with the last data array only:

Code:
var elemSharedObject:SharedObject = SharedObject.getLocal("elementChoices", "/");
//Load data into fields
for (var prop in elemSharedObject.data) {

[Code]....

I need a way to increment "elemSharedObject.data[prop]" after it's filled each successive row of textfields.

View 2 Replies

AS :: Flex - Read All Data From Abstract Shared Object File?

Jun 4, 2010

what I meen is to get all objects and their properties, is it possible? How to do such thing?

View 2 Replies

Flash :: Will Shared Object Data Disappear When The User Updates The App

Nov 30, 2011

I'm using Flash and AS3 to write an app for iOS and for Android and I'm saving XML-data using shared objects. Now it struck me that when I supply an update to the app store and the user updates the app, will the shared objects remain intact or will they be replaced? I'd very much like them to remain as they were.

View 1 Replies

ActionScript 3.0 :: Retrieving Data From A Shared Object Generated Automatically?

Sep 26, 2011

I would like to get the content of a shared object (flash cookie) generated by a player, or more precisely by quizzes generated by Articulate Quizmaker.I know where is generated that cookie, I just would like to get the content of a variable inside. But impossible to access it :sI tryed :

var user_so:SharedObject = SharedObject.getLocal("nameOfTheCookie");
if(! user_so.flush()) // sends a boolean, true if the cookie exists
{

[code]....

View 6 Replies

ActionScript 2.0 :: Setting ComboBox Default According To Shared Object Data?

Dec 4, 2006

I have a Flash Form that is fairly long (about 8 short pages), so I have set the form up so that it can be reviewed when the filler-outer is done and they are ready to submit it. I'm using a Shared Object to store the information they enter so they won't lose their information if they hit refresh or need to come back later.

If they go back to the page with comboboxes on it, the comboboxes have reset to the default. The answer and data in the SO haven't changed, but it looks like it to the consumer/viewer.

So, I'd like for the boxes to display the choice they picked when they were on that page. I need use the value from the database to show the particular value in the ComboBox whenever the user returns to that page.

View 4 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

Professional :: Local Shared Object (undefined) - Retrieve Data From A SOL File

Mar 14, 2011

I am trying to write a piece of code to retreive data from a SOL file : this is my code :[CODE]//get External interfaceimport flash.external.*;

[Code]...

How can that be ? what can I do ? What am I doing wrong ?(bear with me, as I said, I'm kind AS newbie).

View 4 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

Actionscript 3 :: Make A Visual Object In Flex 4 Move Along A Circular Motion Path?

Sep 7, 2010

I can't seem to figure out how to accomplish a fairly simple task: I have a simple graphic and I'd like to apply an "orbiting" effect to it - so that the graphic moves in a circle around an arbitrary point (without rotating around its own center).[code]...

View 1 Replies







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