ActionScript 2.0 :: Get Value From Shared Object Array

Nov 1, 2006

I am running a chat program which displays a list of users along with their status (online or offline). I wish to remove the list and display their status in their respective biographies, which are separate swfs. The usernames and status are stored in a remote shared object as an array.My question is, what is the most efficent way of extracting an individual user's current status from the SO array?[code]

View 2 Replies


Similar Posts:


ActionScript 2.0 :: Shared Object - How To Clear Array

Oct 12, 2005

I am using this code:
Code:
clearList_btn.onRelease = function() {
extTracks.clear();
};
But the array in the shared object still exists.

View 2 Replies

Actionscript 3 :: Storing Array Of Custom Classes In A Locally Shared Object (LSO)

Sep 22, 2011

I am having problems storing an array of objects, all of which are the same custom class in an LSO and then reloading that array from the LSO without losing the class type of the objects in the list.

I know how to store a single object of a custom class and load it withe the correct class type using the registerClassAlias() function, but I cannot seem to apply this to arrays of objects.

I am trying to save an array called messageList. Each element is a custom class GameMessage with a property called gameLevel. After I load the LSO I am trying to do something like

trace("0th message is from level " + GameMessage(messageList[0]).gameLevel);

And I am getting an exception of like this:

TypeError: Error #1034: Type Coercion failed: cannot convert Object@90fdfa1 to GameMessage.

I have registered the GameMessage class using

registerClassAlias("GameMessage", GameMessage);

and everything works if rather than a list of messages I try and save/load a single message.

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 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 2.0 :: Use More Than One Shared Object?

May 20, 2008

Just wondering if you can use more than one shared object, as my AS code doesn't act as i would think

Code:
---this one works
var submenu_so:SharedObject;
submenu_so = SharedObject.getLocal("menu");

[Code].....

View 1 Replies

IDE :: How To Flash Shared Object

Jun 24, 2009

Can I use Flash Shared Object to pass information between two different SWF files on two different pages within the same website?I know it can if the SWF files are the same. But what if they are different Flash object with different SWF files?

View 7 Replies

IDE :: Local Shared Object (LSO) On A CD-ROM?

Jan 28, 2010

Does anyone know if it's possible to save and access a LSO from an EXE projector on a CD?

Obviously the LSO couldn't be saved on the CD itself - would it be able to save the LSO somewhere on the users hard drive?

View 4 Replies

ActionScript 2.0 :: Movieclip Array Shared Objects

Aug 25, 2009

I have managed to find enough on the web to create something that will save and load the position of a movieclip using shared objects but I was wondering if there was a way to do it so that I could save all the positions of the moveclips on stage in one shared object rather than writing one for each movieclip.I'm guessing it can be done through an array but am getting muddled with what to do![code]

View 2 Replies

ActionScript 3.0 :: How To Clear Shared Object

May 28, 2009

I made a shared object whiteboard but I have a stupid problem with removing objects. This is function to clear shared object :

public function clearShape (so:SharedObject):void {
trace('clear:', this.name);
delete so.data[this.name];

[code].....

View 2 Replies

ActionScript 2.0 :: Removing The Shared Object Pop-up?

Aug 7, 2011

I was thinking if there was a way to remove the shared object pop up from popping up lol?Its because Im making a game where when the player saves the pop up comes up over a 100 times and it's really frustrating, so I was thinking if you could remove the pop up entirely by using actionscript?I've found a script that shows the popup:System.showSettings(1);So is there a way to reverse this script? like System.hideSettings(1); ?

View 1 Replies

ActionScript 3.0 :: Shared Object Not Writing

Jun 9, 2009

I have a client who has a video that is to only play once when a user visits. So I created a shared object to create a param that the video has been played. It works perfect locally and on my live test site. However when the client posts it on his ning website in the header it doesn't work. The strange thing is that live and locally on my server you can see the shared object and it's size through the advanced tab in Flash's privacy settings.

View 7 Replies

Shared Object In Flash For Stats?

Aug 23, 2009

I have a gane that uses shared object and keeps note of highscores and users names. So - if that is possible then I can set up teaching courses on standalone pcs can't I? ie: Databses I have in access can go in XML and the recording of position in course and results of tests can also be recorded using Shared object.Is that a good way of going about things OR should the whole thing go over to AIR and its sqlite system?

View 3 Replies

ActionScript 1/2 :: 1 Shared Object For Multiple SWF?

Sep 21, 2009

I have 2 ways of accessing info in my course files (SWFs): text-only and audio playback. I'd like to use shared object to store the user preference so it remembers the setting when navigating between screens. It stores info file but each file creates its own shared object.
 
for example:
<path to the swf>page1.swfcoursename.sol
<path to the swf>page2.swfcoursename.sol
<path to the swf>page3.swfcoursename.sol
 
Since it writes and reads the SOL file of its own folder, the user setting isn't remembered when switching pages.

View 3 Replies

ActionScript 2.0 :: Shared Object Not Working?

May 5, 2005

Does anyone knows why the output is "undefined"?:

mySo = SharedObject.getLocal("kookie");
myButton.onPress = function(){
mySo.data.nome = "dados de utilizador";

[code]....

View 2 Replies

ActionScript 2.0 :: Rewrite The Shared Object?

Nov 21, 2006

how to rewrite the Shared Object? Is it possible?

View 7 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 :: Flash8 Reading From An Outside Shared Object?

Oct 30, 2009

I was trying to obtain data I wrote using a sharedobject location from one application on another, but it didn't seem to work(used same machine). So I take it local stored data is only allowed to be accessed/manipulated from the application that initially wrote data to it?

Is this is for security reasons? Is there anyway around this, I want to have one application read variables from another...

View 1 Replies

ActionScript 3.0 :: Refreshing A Local Shared Object

Oct 13, 2010

I am building an application that uses a Shared Object that is shared (ironically) between 3 separate applications. 1 application listens for updates, and the others update the app. The problem I am having is that I need the main application to be able to detect changes to the Shared Object. Unfortunately there seems to be no events to listen for that are not for 'remote objects'. Because of this I created a timer that gets a new local instance of the shared object every X seconds.I just call the following before I read or write to the sharedObject:[code]This is causing a CPU Hiccup every 3 seconds and bogging down the system. so all this being said, does anyone know of a clean way to refresh a copy of the sharedobject without creating a brand new instance of it

View 2 Replies

ActionScript 3.0 :: Storing Dataprovider In Shared Object?

Mar 31, 2010

I'm having trouble storing a dataprovider in a shared object. Writing the dataprovider object to my local shared object seems to work fine, but when I try to read this out of the shared object, it appears to have been transformed into a generic object. When I try to assign a local dataprovider variable to the dataprovider I've read out of the shared object, I get the following error:
 
"cannot convert Object@3721e6c9 to fl.data.DataProvider"

View 7 Replies

Read Local Shared Object With A Servlet?

Sep 16, 2009

read a local shared object with a servlet even if there is no flash present on a page? I want to set a local shared object like a cookie, and then access it again from a page that doesn't have a flash movie.If I can't do this, is it standard to have the initial flash movie call an external javascript to set a traditional cookie that can later be read?

View 1 Replies

Flash :: Local Shared Object Path?

May 10, 2011

I have a Flash.exe projector that stores data in a Shared Object. Anything works fine if I launch it from my desktop. The Flash.exe will be recorded and used from a CD-rom. Will the path of the Shared Object change? Say, will it try to record itself on the cd?!

View 1 Replies

Actionscript 3 :: Define Shared Object Size?

Jul 3, 2011

I want to let the user save some bigger data in a shared object by choice. Is it possible to define the size the user needs to allow?
I'ld like to set the minimum to at least 10 MB to have some extra space for future usage.

View 1 Replies

Access An Existing Flash Shared Object?

Oct 31, 2011

I am trying to access a flash shared object using sharedObject.getLocal("sharedObjectName"); But, it always creates a new object and doesn't locate the existing object, then I searched the location where it saves the object and I got this location from the internet c:/Documents and Settings/username/Application Data/Macromedia/Flash Player/#SharedObjects But, I could not get this directory in my windows XP. access my shared object which is residing in my flash media serverapplication folder..

View 1 Replies

ActionScript 3.0 :: Shared Object Detect If Changed

Feb 11, 2009

I'm trying to detect if a shared object's value has changed. Is there a way to do this? I'm using setProperty and it works fine but I need to change info the info has changed. I have tried event.changeList but it just shoots out [Objects] without giving me values. Can't it tell me a boolean to see if it has changed?

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 2.0 :: Local Shared Object (LSO) In IFRAME

Dec 2, 2009

What are some possible reasons that an LSO will not update/store information when nested within an IFRAME nested in another IFRAME?The mark-up structure was not determined/dictated by me.

View 0 Replies

ActionScript 2.0 :: Local Shared Object OnRelease?

Oct 3, 2010

I have begun to use Local Shared Objects in my projects but i appear to have got a bit stuck. To be more specific, i have two input fields, first and last names, the user enters his/her first and last names into these fields, the user clicks the "Save details" button and the Local Shared Objects are then set to remember the two names. The text above the first and last name fields change from "Welcome guest" to "Welcome, First Last!". So at this point the whole system works.

The point at which the code fails to work is when the user navigates away from the page where he/she entered the first and last names. The user then returns back to that page and the Local Shared Object has been set to the two input fields which are now blank because of the scene change. The Local Shared Object is set to nothing but is still accepted as a variable and thus makes the text above the two text fields display "Welcome, !".

I understand that what i just wrote may appear a bit compicated, but what i am essentially needing to find out is how to set the Local Shared Objects to the two input values only once when the "Save Details" button is clicked, instead of constantly checking the values of the inputs and changing the Local Shared Objects.

In code:

Code:
save.onRelease //only do this once// = function() {
first_name_txt.text = name_details.data.first_name
last_name_txt.text = name_details.data.last_name
}

View 2 Replies

ActionScript 3.0 :: Color Transform And Shared Object?

Feb 9, 2011

i wanna to make some program for save and load color...click button to change button color and click again return to old color and save lase colorwhen run project to show last save color

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







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