PDA

View Full Version : Repetetive Flash Problem


eclypto
08-09-2004, 01:16 AM
I'm not exactly sure if this is where I should be putting this, but I have a website called http://www.eclypto.com and I have a flash document at the top. It's an angel with a sign that says eclypto.com.

My problem is - even though it plays once per page - it plays once on every page. How can I make it just JUST ONCE EVERY TIME A USER VISITS?

I thank you in advance.

mindlessLemming
08-09-2004, 02:19 AM
Perhaps write a cookie to the users system with JS, then use JS to pass a variable to Flash saying that the movie has already been played.
There's lots out there regarding JS communicating w/ Flash.

bradyj
08-09-2004, 03:08 AM
I think mindlessLemming has the best option, otherwise the element would reload on every page option, that's just flashs' nature.

mindlessLemming
08-09-2004, 05:11 AM
I'm going to frame the first bit of that post, Brady :D

Setting Cookies: http://www.netspade.com/articles/javascript/cookies.xml

Passing variables to Flash using JS : http://www.macromedia.com/support/flash/ts/documents/set_variables.htm#javascript

I did something very similar to this for the nav on http://metrarecords.com/ , except I passed the variables using a query string in the src attribute of the <object> element.
If I remember correctly, IE was a bit of a byatch about the whole thing, but it came together in the end.

Linq
08-18-2004, 10:31 PM
You could just export the last frame of your flash movie as an image and have everything but the home page load the static version.
I used this method with a site and it worked fine.
You don't have to rely on cookies being enabled either.