modmaniacs Posted January 20, 2005 Posted January 20, 2005 Hello everyone! Just want to say OsCommerce is great. Im not live yet, but I really like this software. Anyways, I have a flash menu in my header and I need to stop it from replaying on every page click. Ive searched quite a bit on here and on google and I have found out this can be done with cookies or frames. There is very little info however on how to implement this. Does anyone know how to do this? Thanks!
badtown Posted January 23, 2005 Posted January 23, 2005 you need to stick a frame in, seperating the flash from the shop. the only problem comes when someone uses the tell a friend box, when they click on the emailed link it will only link to the shop and the frames wont be shown.
modmaniacs Posted February 1, 2005 Author Posted February 1, 2005 Ive been doing some more searching and it looks like you can do it also with some actionscript. Ive found this piece of code on another forum if anyone wants it. This goes in the first frame of the flash file. easiest way - place this AS in starting scene : function VisitCheck() { var myLocalSO = sharedobject.getLocal("visitRecord"); if (myLocalSO.data.visited == null) { myLocalSO.data.visited = 1; //action for first visit here play(); trace("visit1"); } else { //action for subsequent visits play(); gotoAndPlay("scene name",frame number); trace("visit2"); } } VisitCheck(); If anyone else has more info on this it would be greatly appreciated. Im surprised there isnt more info on flash forums about this. Flash becomes quickly annoying if you have to see it over and over again. -MM
Recommended Posts
Archived
This topic is now archived and is closed to further replies.