This content has been marked as final. Show 3 replies
I don't think there were any changes in how SharedObject worked between Flash 6 and 7. I just flipped through my help files a bit and didn't see anything that said the behavior had changed either.
Usually when somebody says, "Works in 6, not in 7 or 8" it is one of the following issues. The biggest change between the two is that capitalization matters and you can't do things like increment undeclared variables.
So my guess would be that there is a variable that is spelled OneWay in one spot and oneWay in another, or some such.
Also look for anything like myCount++ when myCount has never been defined before.
SharedObject, instead of sharedobject.
SharedObject is it. I changed this line:
myLocalSO = sharedobject.getLocal("flashcookie" );
myLocalSO = SharedObject.getLocal("flashcookie" );
and the program works with Flash 8, published as Flash 8.
I still haven't studied this deeply, but this is very encouraging. I was going to fiddle with the counter, but I guess the program does it with this line, before incrementing:
myLocalSO.data.counter = 1;
So thanks, both, for the tips!