Welcome to WebmasterWorld Guest from

Forum Moderators: open

Message Too Old, No Replies

Play only on first visit

5:46 pm on Feb 25, 2009 (gmt 0)

New User

5+ Year Member

joined:Feb 25, 2009
posts: 2
votes: 0

System: The following message was cut out of thread at: http://www.webmasterworld.com/flash/3818234.htm [webmasterworld.com] by eelixduppy - 2:32 pm on Feb. 25, 2009 (est -5)

I recently joined Web Master world because I am an amateur web designer and find myself with questions all the time. I joined the forum and noticed a lot of insightful comments. Would anyone be willing to help me with this problem?

I want to amend the following object so that the movie plays ONLY on the first visit to the page? In other words, the movie will not start after a person navigates the site then returns to the home page. Thank you!

<object width="230" height="213">
<param name="movie" value="http://www.example.com/media/File/mediaCenter/embedPlayer/embedded.swf" />
<param name="allowFullScreen" value="true" />
<param name="FlashVars" value="cat=Prospecting&vid=ven020&autoplay=true&isMenu=true&locale=en&userName=Kristina$Keller-Wilczek&userEmail=email@example.net" />
<embed src="http://www.example.com/media/File/mediaCenter/embedPlayer/embedded.swf" type="application/x-shockwave-flash" allowFullScreen="true"
width="230" height="213" FlashVars="cat=Prospecting&vid=ven020&autoplay=true&isMenu=true&locale=en&userName=Kristina$Keller-Wilczek&userEmail=email@example.net" /></object>

[edited by: AlwaysLearning2 at 5:47 pm (utc) on Feb. 25, 2009]

[edited by: eelixduppy at 7:31 pm (utc) on Feb. 25, 2009]
[edit reason] specifics [/edit]

9:19 pm on Feb 25, 2009 (gmt 0)

Senior Member

WebmasterWorld Senior Member rocknbil is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Nov 28, 2004
votes: 0

Welcome aboard AlwaysLearning2. The answer to your question lies, I believe, in setting a cookie.

- Check that a cookie has been set
- if it has not been set, set the play variable of your Flash to true, and set the cookie.
- otherwise, set the play variable to false or null, do not play the video.

You also should really take a look (Google) at SWFObject, and easier and more efficient way to insert Flash into your pages.

10:47 pm on Feb 25, 2009 (gmt 0)

New User

5+ Year Member

joined:Feb 25, 2009
posts: 2
votes: 0

Thank You rocknbil. I'll have a look.

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members