Questions tagged [shared-objects]

Shared Objects in Flash are used to store persistent data on the client or server side.

Local Shared Objects

Local Shared Objects are used in Flash-based applications to store ActionScript objects persistently on a client. The disk space is limited and defaults to 100 KB per domain.

Remote Shared Objects

Remote Shared Objects can be used with Flash Media Server to store ActionScript objects remotely. They can be shared across multiple clients.

418 questions
0
votes
1 answer

How to display Movie Clip if shared Object is equal to a number AS3

Hey everyone so what I've been trying ti accomplish with no success is how to display my Movie Clip object named achiev_10 when the nScore which is a number equal to 10. Here is what I have so far in my Shared Object Data. In my Constructor I have…
Nathan
  • 536
  • 4
  • 21
0
votes
1 answer

How to use SharedObject with two Document classes in AS3?

I'm having trouble implementing SharedObject in my game. My Main Document class Engine and a separate class called mcEndGameScreen and in this class which is linked to my Flash CS6 Document. In my Flash Document there are two Text fields with an…
0
votes
1 answer

AS3 sharedObject - How to load my last sharedObject on a btnCLICK

I'm bumbling my way through AS3 I have come back to the idea of wanting to be able to load my last save from a sharedObject. Any help would be appreciated as i'm still a novice to AS3. I'm also wanting to attach it to a load btn. // SAVE FUNCTIONS…
0
votes
2 answers

Loading a movie clip using SharedObject/AS3

Ok, so I'm working on a quiz game for work. I have each question on its own movie clip (I know that's not the preferred method, but it's what I'm most familiar with and a compressed project timeline kinda forced my hand). Because players will only…
mr_saturn
  • 3
  • 2
0
votes
1 answer

sharedobjects multiple item

Is there a way to store multiple items in a shared object? I want to store the score and it's profile name at the same time in an android game. here is my code so far. if(playerScore > lvl1Score.data.score1 || lvl1Score.data.score1 == 0) …
0
votes
1 answer

Using SharedObject with complicated classes

I know that if I want to store a custom class with SharedObject, I have to use registerClassAlias. registerClassAlias("MyClass", MyClass); sharedObject.data.myObject = new MyClass(); But in my case, I have a custom class whose fields are themselves…
Jack M
  • 4,769
  • 6
  • 43
  • 67
0
votes
1 answer

Make file error when I try to do with linking the test file

I wrote a simple make file test : main.cpp g++ -Wall -o $@ $^ -lhello_ext -L. -I/usr/include/python2.7/ -lboost_regex -lpython2.7 -ggdb libhello_ext.so : hello_ext.o g++ -shared -o $@ $^ -Lboost-lib-path -I/usr/include/python2.7/ …
user1886376
0
votes
2 answers

AS3: Shared Objects Issue

Slight problem i have been pondering on, i have a class that loads a text from a url as a means to sync the time. The swf file can be on the same page multiple times, but i want it to check to see if one of the swf is sync'ing, if so then wait for…
Andy
  • 443
  • 1
  • 6
  • 21
0
votes
1 answer

ActionScript 3 (AS3) Gathering data from a SharedObject

First I should preface this by saying that I'm quite new to Flash/AS! Long story short, I'm working on a very basic quiz game in Flash. The user will be presented with questions and must choose an answer to proceed (whether they choose the right or…
0
votes
0 answers

Best Way to update Array with SharedObject As3

I just made a irc client with as3, but the problem is that i don't have too much experience with SharedObject. I need a best way to update an array when a user join other channels. For example, if i have this array: var channels:Array = []; I also…
Davy Says
  • 85
  • 1
  • 8
0
votes
1 answer

Filling SharedObject with big amounts of data

I am writing a cross-platform game (Android, iOS, PC) where the player gets to record his own voice through the microphone. This results in big amounts of data even if LZMA compressed. For my comfort, I am using the SharedObject. My question is,…
Bill Kotsias
  • 3,258
  • 6
  • 33
  • 60
0
votes
0 answers

Request unlimited increase in local storage allocation from actionscript?

I have been researching the SharedObject local storage option for graphics and player state information in a game I am creating. It seems that if you put the number of bytes in the flush() method Flash will prompt the user to increase the amount of…
0
votes
1 answer

is there any way to automatically execute registerClassAlias on Actionscript/Air?

I'm using registerClassAlias to save custom classes into SharedObject but it's giving me a headache since every time you make a new class, you have to write registerClassAlias sentence and there are hundreds of custom classes to save in my…
0
votes
1 answer

Flash shared object always gets reset

So in my game, you want to make the potato as big as possible. The first time you play it, the highscores work fine,giving you a highscore and saving it. The problem is that whenever you play the game, the highscore is always reset to your current…
QCD_IS_GOOD
  • 435
  • 7
  • 22
0
votes
1 answer

Chrome's Flash player Shared Objects and External Flash Player Shared Objects

I am working on an AS3 application. I need to store some data locally (on user's machine). I used Shared Object concept. Now in chrome, the default flash player (pepper flash) stores the shared object in a different folder. So if a user changes from…