[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 295
  • Last Modified:

Flex Mobile: Way to list my local shared objects?

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
StarDusterII
Asked:
StarDusterII
  • 2
  • 2
1 Solution
 
Antonio EstradaTech Leader / Senior Web DeveloperCommented:
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
 
StarDusterIIAuthor Commented:
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
 
Antonio EstradaTech Leader / Senior Web DeveloperCommented:
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
 
StarDusterIIAuthor Commented:
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
 
CyanBlueCommented:
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: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now