Flash Shared object not working

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

I can not get a shared object to work at Flash 7. I am followoing the
example at technote     tn_16194 link
The flash example seems to work fine in Flash 6 but not in Flash 7,
after testing the movie several times, it seems to me that the problem
is in loading the values from the shared object back to the movie.
lines such as
 userName.text = myLocalSO.data.name;
 numVisits.text = "You have been here " + myLocalSO.data.counter + "
are not getting the values. Any idea on what I need to change in order
to get the shared object in the example to work in Flash 7 as well.

Many Thanks,


Following is the code in the loadable example I am reffering to.
//create the local Shared Object
myLocalSO = sharedobject.getLocal("flashcookie" );

//Populate the text field if the SO already contains a name
if (myLocalSO.data.name != null) {
 userName.text = myLocalSO.data.name;
 numVisits.text = "You have been here " + myLocalSO.data.counter + "
//Populate the text fields if the SO does not contain a name
else {
 userName.text = "<type your name here>";
 numVisits.text = "This is your first visit.";
 myLocalSO.data.counter = 1;

//update counter for number of visits

Site Timeline