ActionScript 2.0 :: CS3 Saving And Loading Attached Object With Shared Objects?

Sep 17, 2010

I know the basics of shared objects but I never really got into it I was wondering if there is a way that I could save and load movieclips that I attach to the stage(Each has its own name such as clip_1,clip_2,etc) including the location(_x,_y,rot) and have it duplicate them all over again and move them to the same location as before

View 1 Replies


Similar Posts:


Flash8 :: Saving And Loading Attached Object With Shared Objects?

Sep 7, 2010

I know the basics of shared objects but I never really got into it I was wondering if there is a way that I could save and load movieclips that I attach to the stage(Each has its own name such as clip_1,clip_2,etc) including the location(_x,_y,rot) and have it duplicate them all over again and move them to the same location as before (I'm using Actionscript 2, by the way)

View 1 Replies

ActionScript 3.0 :: Flash - Saving Objects In A Shared Object?

May 15, 2011

I'm trying to save an object to a shared object, the thing is that while i run it the first time it works perfectly, but as soon as the swf is closed and re-opened my object just disappears.If I'm not wrong this is because it's a custom class instance and the .data saves a reference to the object instead of the object which is deleted as soon as the program closes.My question is:I've tried saving each var in a different data.[something], having to save five variables might not be bad but what about twenty or more.

View 2 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 :: Saving A Clone To A Shared Object?

May 13, 2010

(I see this same type of question was posted almost three years ago with no resolution, does anyone have a solution now? am trying to save a clone of a custom object (contains arrays and other custom objects as properties) to a Shared Object.Basically I have a menu system that created this program, it's running and at any point I want the user to be able to save it so he can go back to that exact point at a later date. Here is what I do so far:1. Pause the program2. The menu saves the variable that references the running program using a bytearray to a shared object3. A a later time, to load the program I pull the data from the shared object and save it to a variable, which I then treat like the original programHere is my code to save the data:

Code:
var byteArrayCloner:ByteArray = new ByteArray();
byteArrayCloner.writeObject(myProgram);

[code].....

View 3 Replies

ActionScript 2.0 :: Shared Object / Saving And Retrieving Arrays?

Feb 14, 2007

I have used SO's to save and retrieve simple variables successfully, but I am a problem saving and retreiving array data in the following example: [URL] A user selects several options using radio buttons. All that happens is that the SO should store in memory which buttons the user clicked on. If run through flash with the output window, you can see that when the save button is clicked, the data is saved. But when you load the activity a second time, the array data that was stored in the SO only gets recalled as 'undefined'.

View 3 Replies

ActionScript 2.0 :: Loading WDDX Data Into Shared Objects

Oct 25, 2003

I'm trying to load some WDDX data into a shared object, but I'm having some troubles getting it back out. I can open the sol file in a text editor and see that my data is in there, but I can't manage to access it... does putting information into a sharedObject change things? Can you load an array into a sharedObject and have it retain it's array-ed-ness?

View 7 Replies

ActionScript 3.0 :: Loading A Different Image Each Time Using Local Shared Objects?

Mar 17, 2011

This is the accompanying thread for the tutorial "Loading a different image each time using Local Shared Objects".Here you can post comments, questions and suggestions related to the tutorial.If it's not completely related to the tutorial, please start a new thread.You may subscribe to this thread (in the "Thread Tools" dropdown menu) in order to receive a notification when the tutorial goes live.

View 1 Replies

ActionScript 3.0 :: Loading Shared Object Correctly?

Sep 28, 2009

I have simple slideshow set up where the user presses a button(forward or back) and the image changes. I used a sharedObject to save each frame, so when the page is refreshed/reloaded, the swf loads back to the image it left off on... thats the idea anyway.However, instead of just loading the previous frame when the page is refreshed, it loads frame 1, and i have to click my "next" button, which then jumps to the slide that should have loaded in the first place. I dont know why this is happening..I'm using Sothink SWF Quicker.. so heres the .sqf[URL]

View 1 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 2.0 :: How To Use Shared Objects

Feb 28, 2006

I had been wondering how to use shared objects for a long time and thanks a million to this mini-tut:url...I know how. The only thing is it says that to clear a shared object, you must type (used in his example) [code]but what if i wanted to delete a certain block of data on it, for example I have the shared object user.And i don't want to delete all of it, but just one block of data (specifically user.data.doc)[code]

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

Using Same Shared Objects Across Multiple FLAs?

May 4, 2010

I am creating a small game for a project im doing it is only ten levels long but I wish to include feature such as saving etc. I have one some research on Shared Objects and it seems to be the best method. The idea I wish to execute is to have at the end of a level after reaching the levels goal have a piece of code that runs and saves that the next level has been unlocked. This seems relatively simple. However i have done things awkwardly i think, instead of creating the whole game within a single fla. each level is a seperate file, eg. level1.fla, level2.fla etc. Is it possible to use the same shared object across multiple .fla's?

View 3 Replies

ActionScript 1/2 :: Flash Log In From With Shared Objects?

Jul 10, 2009

So i want to create a flash log in and registration form for my flash game. THis game is played on your local PC not in the internet and i am using AS 2.0. So on the registration from i want to have two input text fileds: username and password. When you click on register the data from those fields to be saved as Shared Object and then on the log in when you type something in the log in fields (again two fields : username and password) the data that you wrote in those fields to pass trough the saved data as shared objects and if those two are the same then the log in is successfull if i want the movie to go on a certain frame whare it says access denied.

View 5 Replies

ActionScript 3.0 :: Shared Objects: Trying To Get A Grip?

Dec 1, 2009

I am reading the official Adobe PDF, Flash_as3_programming and am trying to get a grasp ofthe creation and use of Shared Objects. While the text does explain a lot, I am not understandingshared object store. When a .swf file is embedded in a web page, the shared object store wouldbe on the web site that hosts the .swf file? Is this a directory that contains files? How would an.swf file loaded into a client browser access these if they are on the remote host of the web site?

View 5 Replies

ActionScript 2.0 :: Scoreboard With Shared Objects?

Sep 7, 2010

I've done this flash scoreboard with shared objects.but what i can done is it will replace the 1st score in my scoreboard, it won't have 2nd, 3rd, 4th and etc...the script i used is:

ActionScript Code:
submit_btn.onPress = function()
{

[code].......

View 0 Replies

ActionScript 2.0 :: Persistent Shared Objects?

Jan 9, 2004

i'm overwriting the original SO each time i save to it here are my proto functions:

Code:
interfaceClass.prototype.saveLSO=function(){ //saves color set vars to local shared object (cookie) on disk
this.myN="gamecookie"; //name of cookie file
trace("saveLSO");[code]....

i know i should do some kind of test, but the way to do it eludes me.

View 2 Replies

ActionScript 2.0 :: Losing Shared Objects On Update?

May 25, 2009

I just recently made an online game and was asked to implement saving features. Everything works fine but a single detail... When I update the swf (right now I have a new version with corrected bugs) people are gonna lose all their saved data !

Is there a way to use the same shared objects over multiple swf ? Or simply to keep them over the version change ?

View 1 Replies

ActionScript 2.0 :: Flash 8 - Scoreboard With Shared Objects

Sep 2, 2010

I've done this flash scoreboard with shared objects. But what I can done is it will replace the 1st score in my scoreboard, it won't have 2nd, 3rd, 4th and etc...

The script I used is:
submit_btn.onPress = function(){
//create a new sharedObject called 'userName'
var mySharedObject:SharedObject = SharedObject.getLocal("userName");
var mySharedObject2:SharedObject = SharedObject.getLocal("userScore");
//assign (data) the sharedObject (mySharedObject) a var called 'name1', which has the value of whatever is in textField 'save_txt'
[Code] .....

I want to have each higher score goes to the scoreboard, so will have 10 highest score in my scoreboard. Here is my attached file in CS5 format.

View 4 Replies

ActionScript 3.0 :: Sharing Shared Objects Between Swfs?

Sep 15, 2010

Anyway, Im currently making a flash game in a group as part of a university assignment. We have made several sections to this game in different swf files and need them to all be able to access the same sharedObject. Is this possible? At the moment, the two seperate swf's im using both have the same name for the object, so we assumed this would mean it would work between the two?

View 1 Replies

ActionScript 3.0 :: Shared Objects Accessed By Different SWFs?

Jan 25, 2011

how I can make a shared object be able to be accessed by different SWFs on the same server.

View 5 Replies

Flex :: Understanding Remote Shared Objects?

Oct 20, 2009

I have 2 questions about remote shared objects in Flex/ActionScript3:1) If I connect to a remote shared objects, but do not handle the SYNC event, will the shared object still receive data from the server? ie. will the server still broadcast data to this client ? This is what I expect

View 2 Replies

Flash :: Get All Shared Objects For Current Domain?

Aug 5, 2010

Using SharedObject.getLocal I can get access to what appears to be an infinite number of files simply by using unique identifiers in the method call; What I want to know is how can I retrieve a list of all active files or shared objects that have been saved for my current domain.

I'm trying to write a save game mechanism that allows you to save your game (potentially many megabytes) so using a single shared object seems like it might cause performance issues however if I use multiple objects I'm not sure how I'd find out what has been saved without using an object just to specify the id's of the other saves - then my question becomes what happens if this "header" object is removed or deleted - how can the player access the other files?

A snippet from the flash docs:

Local disk space considerations. Local shared objects have some limitations that are important to consider as you design your application. Sometimes SWF files may not be allowed to write local shared objects, and sometimes the data stored in local shared objects can be deleted without your knowledge. Flash Player users can manage the disk space that is available to individual domains or to all domains. When users decrease the amount of disk space available, some local shared objects may be deleted. Flash Player users also have privacy controls that can prevent third-party domains (domains other than the domain in the current browser address bar) from reading or writing local shared objects.

View 2 Replies

Actionscript 3 :: Shared Objects Be Accessed By More Than One Application?

Sep 15, 2010

I'm trying to access a shared object created by one flash application from another flash application. Is this possible? If so, what do I need to do?

If not, are there any other ways to share the information between the applications?

View 2 Replies

Flash :: Shared Objects Don't Work In Code?

Nov 3, 2010

However, they work in other examples, even locally, when I download the source.

Code:
//Button
on(release)

[code]........

View 1 Replies

Actionscript 3 :: Shared Objects And Related Elements?

Sep 21, 2011

If I'm attempting to create a file that takes information a user inputs using input fields,save them, and then load them again later after the file has been opened and an option selected, what sort of things would I need to most research? I know there's something called sharedObject I need to research. What else? I've been searching Google, but I'm not finding anything covering this particular aspect.

View 1 Replies

ActionScript 3 :: Possible To Access Shared Objects In Another System?

Mar 10, 2012

Can we use or access shared object stored in another system? I'm storing some data in shared object in one system can I access that shared object data from another system? I think Shared objects are stored in local machine. Can we give the path to (specified system i.e., server) where the shared objects will store, and can we access that object through same path?

View 2 Replies

ActionScript 2.0 :: Shared Objects In A Projector File On A MAC

Jul 23, 2009

Can I create a "MAC" projector file that can use the shared object commands of the original .fla? It seems the projector does not use the shared object commands on the mac side but does if I create a windows projector. I am looking to create an autorun hybrid (Mac and PC) with shared object functionality.

I am using CS4 on a Mac. Latest OS

View 0 Replies

ActionScript 2.0 :: Shared Objects And Secure DB Queries

Aug 4, 2009

I'm working with a friend with some changes to their complex flash site after their previous developer jumped ship on them. In the process of making some edits I noticed that the previous developer had exposed all of their data to the world. Any slightly tech-savy user could pretty much read all the table data in their database by visiting a php page.

So here's the scenario I'm trying to solve.
- The flash site uses Shared Objects to save users access privileges when they log in successfully.
- There are frequent calls to the database to display information (whether logged in or not). The site calls a php page.. lets say... query.php?table="tablename" and returns all tables data... (what a mess). Only specific columns are needed to be returned to the user (whether they are logged in or NOT logged in). there is no check to see if the user is logged in or not when this page is called. so anyone can call a page and get this data.
- Only the ADMIN should get returned the full table set as they are the ones that need to see all the data in flash. however the same php query is called for the admin and for the regular user and any non-logged in user.

So. I guess I can limit the data set returned for the average logged in or not logged in user so the more sensitive data isn't shared. But how can I authenticate the logged in admin to share the full table data?

View 0 Replies

ActionScript 3.0 :: Method For Testing Shared Objects?

May 12, 2010

Is there a method for testing when a shared object has finished loading?because as you can see i have a considerable amount of variables to load, and they don't always load in time.causing many glitches.

ActionScript Code:
wep=saves.data.wep;
backupwep=saves.data.backupwep;

[code]......

View 0 Replies







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