Hey.

I'm having a problem, I have a few SharedObjects in a movie so I need to call different ones. I could do it the long way and build this clunky if,then statement. However there should be a better way to do this.

Code:
counter=5;
mySo[counter].data.name="Bob";
trace(mySo5.data.name);

//returns
undefined
That's ideal but it's not working... I dont think it's compatible with my version of flash but it sure would be nice. Instead I have to use obnoxious "add" and "eval" statements.

Code:
counter=5;
set("mySo" add counter add ".data.name", "Bob");
trace(mySo5.data.name);
mySo5.flush();

//returns
Bob
This actually works correctly but here's the screwed up thing. It stores correctly, traces correctly and I click flush and it DOESNT retain! Next time I open it the value is gone. Everytime I use the 'set' command it does not retain. If I use the following it does retain and works correctly.

Code:
mySo5.data.name="Bob";
mySo5.flush();
If I declare "Bob" statically it works great, and pulls up the next time i open the file. If i declare "Bob" using the dynamic method it simply does not retain after a flush.

Thanks in advance.