Groups | Blog | Home
all groups > flash actionscript > may 2004 >

flash actionscript : Shared Local Object location problem



Tomcdahl
5/21/2004 8:24:13 PM
I am having one swf. set variables for my Shared Local Object. so that another
swf. can reference those variables and then react to them. This is working
exactly how I want it to on my desktop but is not working when I move this to a
test server and test from the internet.

So this must be a problem of referencing the location of the SOL File right?
Here is the code that sets the SOL file followed by the code that should
reference it. What am I doing wrong?

Setting SOL

//create the local Shared Object
myLocalSO = sharedobject.getLocal("aonflashcookie", "/");

//update counter for number of visits
myLocalSO.data.spota++;


Referencing SOL:

//create the local Shared Object
myLocalSO = sharedobject.getLocal("aonflashcookie", "/");

//This is to check for shared object setting
if (myLocalSO.data.spota) tellTarget ("port

Tomcdahl
5/24/2004 4:25:11 PM
AddThis Social Bookmark Button