Re: [Flashcoders] video playing help - newbie
Could either use shared object to determine if the computer had viewed the video before, or perhaps some user-variable on a server side script. I suppose good old cookies might even do the trick. I typically prefer shared objects to cookies. For no particular reason, just find them easier I guess. Here's some psuedo code mixed with shared object programming //Before video starts var my_so:SharedObject = SharedObject.getLocal("vidViewed"); var hasSeenVid = my_so.data.hasSeenVid; if(hasSeenVid == undefined){ hasSeenVid = false; } if(!hasSeenVid){ //start video hasSeenVid = true; } my_so.data.hasSeenVid = hasSeenVid; my_so.flush(); On 8/3/06, Dan McCullough < [EMAIL PROTECTED]> wrote: Do you know of a way to make the movie automatically play on the first visit but then if you come back to the page after viewing another page, the video doesn't auto-play? Basically, they don't like the fact that every time you go to the home page, the movie starts over. Do you know of a fix for this? ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] video playing help - newbie
Use the flash shared object to set a flash cookie. This way, when the user comes back, the playhead will skip the intro and go to a specified frame. You can also use it to control an flv or anything else. // sets flash shared object version = SharedObject.getLocal("intro_data"); // if first time, show intro if (version.data.intro == undefined) { version.data.intro = "playIt"; version.flush(); trace(version.data.intro); gotoAndPlay("first_time"); // play the intro } else // if not first time, go to nav { gotoAndPlay("second_time"); // go to the frame for 2nd time viewers version.data.intro = "dontPlayIt"; version.flush(); trace(version.data.intro + " else statement"); } On 8/3/06 9:55 AM, "Dan McCullough" <[EMAIL PROTECTED]> wrote: > Do you know of a way to make the movie automatically play on > the first visit but then if you come back to the page after viewing > another page, the video doesn't auto-play? Basically, they don't like > the fact that every time you go to the home page, the movie starts > over. Do you know of a fix for this? > ___ > Flashcoders@chattyfig.figleaf.com > To change your subscription options or search the archive: > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > Brought to you by Fig Leaf Software > Premier Authorized Adobe Consulting and Training > http://www.figleaf.com > http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] video playing help - newbie
Do you know of a way to make the movie automatically play on the first visit but then if you come back to the page after viewing another page, the video doesn't auto-play? Basically, they don't like the fact that every time you go to the home page, the movie starts over. Do you know of a fix for this? ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com