Solved

Flex Mobile: Way to list my local shared objects?

Posted on 2012-04-05
6
261 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Introduction This article is primarily concerned with ActionScript 3 and generally specific to AVM2.  Most suggestions would apply to ActionScript 2 as well, and I've noted those tips that differ between AS2 and AS3. With the advent of ActionS…
There are times in your Flash CS4 application when you want more than a simple pointer or a hand, and it's hard to find an ideal walk-through to tell you what to do.  I spent a few days recently learning my way around making custom cursors in Flash,…
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
The goal of the tutorial is to teach the user how to how to record live broadcast.

920 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now