hey friends
I’m still building this CDRom. In it i have a safety sectiion where the user has to go through a shortish presentation b4 they can continue. I wonder if i could put a password box on the front page, so they could skip the safety stuff second time round and go strait to the content? Is this possilbe?
If so - how they heck do i do it?!
i’ve found this tutorial - its for flash 5 though - you think it will work
http://www.actionscript.org/tutorials/beginner/Password_protected_pages/index.shtml
Paul
Well it is stated that the tutorial is for flash 5 or higher so it should work in MX as well.
dur - stupid me!!!
Thanks very much
Hi,
Another method ( and I think easier and probably more efficient ) is to use a sharedObject, set up a counter and if the counter!=null, send the play head to the relevant frame. Like this :
[AS]//create SO
myLocalSO = sharedobject.getLocal(“filename” );
//check to see if user has been here before
if ((myLocalSO.data.counter != null){
gotoAndPlay(whateverFrame);
}else {
stop();//or play presentation
} [/AS]
on the first frame after your presentaton put :
[AS]myLocalSO.data.counter++[/AS]
basically, this means that after the first visit, myLocalSO.data.counter will never = null and the playhead will by pass the presentation without the need for passwords etc etc.
Hope that helps
SteveD
ok - is that like a cookie?
im pretty new to this