Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need help with SO

Status
Not open for further replies.

JeffStoker

Technical User
Joined
Aug 21, 2003
Messages
9
Location
US
This is the simplified version of the script I have on frame(1) of the main timeline. It works correctly when I test movie, but does not work online, it plays the movie through on first visit, but stays on frame(1) when you return to page on next visit. Can any of you experts steer this wannabe in the right direction??

stop();
mySO = sharedObject.getLocal("3by7intro");
returned = mySO.data.viewed;
if(returned == "yes"){
gotoAndStop(540);
trace (returned);
}else{
mySO.data.viewed = "yes";
mySO.flush();
gotoAndPlay(4);
trace ("not yes");
}
 
try this and see what is being returned by testing the fla on line

myso = SharedObjec.getLocal("3by7intro");
returned = so.data.viewed
returned.flush();

for(item in returned.view){
trace(returned.view[item]);
}
 
Bill, Thanks for the quick reply.
Unfortunately I'm worse off than I thought; can't even get remote debugging to work.

I added the code you gave me to the first frame, with one exception.....
I changed returned = so.data.viewed
to
returned = myso.data.viewed
I assume that's what you meant.
There is also a stop() action in first frame. If you had address to the file, would that help? and would you have a chance? and should I leave the stop() there?

Thanks
 
the stop() dont matter and you spotted my typo

post the fla if you can or email it me and ill have a look tomorrow morning


one final thought....the so you created in authoring may have a different path to the so created on line. did you create a new so on line then check it was not working.
 
Jeff

i deleted your email before saving the address. write me again so i can send the file back. seems to work ok now.
 
Just wanted to Publically thank Bill Watson for his expert help at not just solving this problem for me, but also for making things more clear to me and getting me on the right track for future projects.

Jeff Stoker
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top