
May 2nd, 2012, 06:43 AM
|
|
Gotta get to the next screen..
|
|
Join Date: Nov 2003
Location: Legion of Dynamic Discord
|
|
Hi, you can use a SharedObject to do what you are after. You can think of it as a Flash based cookie. So on when the page is loaded you check if the SharedObject is set, if it is then you skip to the end of the animation, if it is not set then you just play it from the start. This is a rough version:
Code:
var header_so:SharedObject = SharedObject.getLocal("site_header");
if(header_so.data.already_viewed)
{
// Skip to end of animation, you probably need to tailor this bit for your animation.
this.gotoAndStop(20);
}
else
{
// Not viewed it yet so set the SO and continue the animation.
header_so.data.already_viewed = true;
}
__________________
Quis custodiet ipsos custodes?
|