Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Flex Mobile: Way to list my local shared objects?

Posted on 2012-04-05
6
269 Views
Last Modified: 2012-09-13
Is there any way to list an app's local shared objects?  I know you can't list them all because of security, but I'm only interested in the objects that were created by my own app.
0
Comment
Question by:StarDusterII
  • 2
  • 2
6 Comments
 
LVL 18

Expert Comment

by:Antonio Estrada
ID: 37825416
You can use the following code:

var sharedObject:SharedObject = SharedObject.getLocal("SHARED_OBJECT_NAME");
	
for(var i:* in sharedObject.data)
{
	trace(i + ": " + sharedObject.data[i]);
}

Open in new window


Good luck!

-V
0
 

Author Comment

by:StarDusterII
ID: 37834965
I think you misunderstood... I don't know the SHARED_OBJECT_NAME.  That's what I want to find.  There are a number of local shared objects and I want to enumerate them, find out what's there.
0
 
LVL 18

Accepted Solution

by:
Antonio Estrada earned 500 total points
ID: 37838495
Oh... unfortunately that's not possible via code. Flash needs to know which key it's looking for and it'll decide on it's own where it'll look it up (depending on certain conditions like file location and server), however you can't access these rules, and can only open a SharedObject with the key (name).

You could use a program like Minerva (http://blog.coursevector.com/minerva) to navigate through the different folders and search your SharedObjects (which will give you the name).

Good luck!
-V
0
 

Author Comment

by:StarDusterII
ID: 37843769
Yeah, it's the program I needed to be able to enumerate the shared objects to get the key name.  Finding the name with Minerva or Windows Explorer won't help me much.  ;-)
0
 
LVL 37

Expert Comment

by:CyanBlue
ID: 38394109
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I know the transition can be hard. We got used to the ease of use ActionScript 2 had, but honestly, it became problematic later on, especially if designers were involved in the project and found it easy to add code as they saw fit. So, this artic…
The last time I worked with Flash and Socket connections was in AS1. A recent project required flash connecting to a Socket, and sending receiving information - we figured it would be easy enough - we all know about the socket policy documents and c…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.

861 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question