Hello,
Finally got shared objects working from this example
http://www.macromedia.com/support/flash/action_scripts/actionscript_dictiona ry/actionscript_dictionary651.html
(thanks for the pointer Urami (I had posted in general flash forum (sorry,
only saw this forum for a.s. today)))
Example A (below) shows how it's been tweaked:
However, I'm now trying to modify this to work in a slide presentation.
Where it remembers what slide you were last on instead of what frame.
I've changed it to reflect slides instead of frames without luck.
Example B (below).
Any pointers would be much appreciated.
Thanks,
--
Conor
working Example A:
_____________________
// Get the kookie
so = sharedobject.getlocal("kookie");
// Get the user of the kookie and go to the frame number saved for this
user.
if (so.data.frame != undefined) {
this.gotoAndStop(so.data.frame);
}
// On each frame, call the rememberme function to save the frame number.
function rememberme() {
so.data.frame=this._currentFrame;
}
_____________________
non-working Example B
_____________________
// Get the kookie
so = sharedobject.getlocal("kookie");
// Get the user of the kookie and go to the frame number saved for this
user.
if (so.data.Slide != undefined) {
this.gotoSlide(so.data.Slide);
}
// On each frame, call the rememberme function to save the frame number.
function rememberme() {
so.data.Slide = this.currentSlide;
}
_____________________