Helping Adobe Flex community in developing Rich Internet Applications (RIA) in MXML, Actionscript and Flash.

<mx:Label text="Crazy about Flex"/>

You are not logged in.

#1 Mar 9th 2010 1:55 AM

ChiGaTTa
Flex Newbie
Registered: Mar 9th 2010
Posts: 1

Storing an Array in the EncryptedLocalStore

Fist of all, excuse my poor English, I'm doing my best.

Hi ppl!
I'm trying to store an array plenty of strings in the EncryptedLocalStore but it doesn't work. I think there is some kind of problem when retrieving data from the store and casting it into an array.
There are no runtime/compilation errors but I can't read the strings I used to store.

Here is the code I'm using to store the array:

bytes = new ByteArray();
bytes.writeObject(myArray) as Array;
EncryptedLocalStore.setItem("arrayStored", bytes);

And here, the code to read it:

readArray = EncryptedLocalStore.getItem("arrayStored").readObject() as Array;

Can someone help me? Thanks!

Offline

 

Board footer

Powered by PunBB