Skip to main content
September 9, 2013
Question

Need help reading a shared object...

  • September 9, 2013
  • 1 reply
  • 1036 views

OK, I have an iPad app that stores data in a shared object. That data is supposed to be uploaded to a webservice... for whatever reason something's not working and I need the data stored in that .sol. So, I found iExporer and I managed to get the file off of the iPad and onto my desktop. However I'm not having luck reading the file... I did use the / local path parameter so other swf's should be able to access it:

so = SharedObject.getLocal("xfinScratchData", "/");

The swf and sol are both on the desktop...  So, I also tried with:

var desktop:File = File.desktopDirectory; 

so = SharedObject.getLocal("xfinScratchData", desktop.nativePath);

and that doesn't work either... Anyone have any thoughts?

This topic has been closed for replies.

1 reply

sinious
Legend
September 9, 2013

Just tossing it in there, are you sure your'e not violating Flash's basic rules on SO's? Meaning:

If other SWF files need access to the shared object, or if the SWF file that creates the shared object will later be moved, then the value of this parameter affects how accessible the shared object will be. For example, if you create a shared object with localPath set to the default value of the full path to the SWF file, no other SWF file can access that shared object. If you later move the original SWF file to another location, not even that SWF file can access the data already stored in the shared object.

To avoid inadvertently restricting access to a shared object, use the localpath parameter. The most permissive approach is to set localPath to / (slash), which makes the shared object available to all SWF files in the domain, but increases the likelihood of name conflicts with other shared objects in the domain.

The parameter of course meaning the path..

September 9, 2013

Right... that's why I used the / slash for the path. "The most permissive approach is to set localPath to / (slash), which makes the shared object available to all SWF files in the domain, but increases the likelihood of name conflicts with other shared objects in the domain."

I did find an app that reads the file though, it's just not in a format I can use... but it exports to JSON... so I can go fromt here.

Still not sure why I can't read it though.

sinious
Legend
September 9, 2013

Perhaps simply the domain portion of the rules.

At any rate the SO as you said isn't really a keycode locked safe, you can read it with tools as you have and grab the data. Hopefully JSON won't make the Flash-based object types too hard to discern for you.