Swf play one time

Hi

I have a website with a small “swf animation” thing in it,
it is in the same frame where everytime the visitor clicks the frame will reload because an other picture has to be displayed.

But now also the flash movie starts again, is there a way to let the flash movie just play once for every session someone vistits the website?

I’m not sure how to do it… but there is a way.

Try searching using the keyword “local objects Flash MX”

both on this site and on the macromedia site itself. If you get no result… let me know and I’ll see what I can find. Local objects are like cookies and can be used to store information on a users machine.
If you can figure out how to set them you simply need to set a variable that lets your Flash player know that they have been there before and then skips the animation if it finds that variable to be true.

hey thanx… i’m checking it out… must be something like this

myLocalSharedObject = sharedobject.getLocal(“myCookie”);

if (myLocalSharedObject == null){
_root.gotoAndPlay(“start”);
}

else {
_root.gotoAndStop(“done”);
}

um…if you did that it would play once during a persons lifetime, not per time they see the movie…you’d have to set the value of the sharedObject to null again after someone quits the website

hehe you’re right

YAY…an idea for that though is make some button on your site…that everyone will have to click…and when they click it the thing is reset to null…but after they click the button they will never go to the movie page again…that shouldn’t be to hard?!

hmm

i’m still not sure how to fix this one

umm…after the movie finishes playing…will the visitor ever go to the page with the movie again?

yes… in fact… everytime, because in de same “title frame” there is also a photo that has to refresh everytime the visitor clicks to another subject of the site

well then i’m stupted…this is a toughie