PDA

View Full Version : command to create a .txt file in browser cache?? to avoid use of cookie


pbyuk
07-30-2001, 02:33 PM
Hi,

I've got a flash website whose navigation is not too obvious. so I have the navigation MC to play once when the site loads so that people see it and know where to start... also I have a welcome message appearing.
But I don't want that to happen for people who've been on the site already...

So I'm sure I could do that with cookies so that if cookie value is true, then _visibility of the 2 MC is changed to false...
But I have no clue how to do that and tutorials are a bit dire and too dense on this subject.

So I thought, would there be a way to have flash create a .txt file or anything else to put in the browser cache during the loading of the .swf,IF it isn't here already, AND then have frame 1 of the main movie tell frame 3 of the given layer with the 2 MCs on to hide them or show them?

Cheers

pbyuk

barkers
07-30-2001, 04:32 PM
you need to use fscommand to interact with javascript. you cannot write access cookies directly with flash.

go to http://www.moock.org/webdesign/flash/fscommand for details on how to use it. you should be able to just copy the guts of it

Jesse
07-31-2001, 04:36 AM
(without reading this thread) there's also a good cookies tutorial at http://www.the-stickman.com/tutorials/