Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

asp cookie for flash

Status
Not open for further replies.

jwh123

Technical User
Mar 29, 2002
13
0
0
US
Hi,

I have a flash animation that I want to execute in full only for first time visitors. I would like it to jump to the end of the animation for return visitors. I think this is easiest to do with an asp cookie by sending a parameter such as "recent_visit=yes" to the flash tag. However, I have no experience with cookies or vbscript. Any help is much appreciated!

Here's what's in my object tag ...

<OBJECT classid=&quot;clsid:D27CDB6E-AE6D-11cf-96B8-444553540000&quot;
codebase=&quot; ID=blue_arrow
WIDTH=552
HEIGHT=70>
<PARAM NAME=movie VALUE=&quot;blue_arrow.swf?recent_visit=yes&quot;>
<PARAM NAME=quality VALUE=high>
<PARAM NAME=bgcolor VALUE=#FFFFFF>
<EMBED
src=&quot;blue_arrow.swf?recent_visit=yes&quot;
quality=high
bgcolor=#FFFFFF
WIDTH=552
HEIGHT=70
TYPE=&quot;application/x-shockwave-flash&quot;
PLUGINSPAGE=&quot; </EMBED></OBJECT>

Thanks!

Cheers,
Jeff
 
' **** See if they have the cookie > *************
If Request.cookies(&quot;recent_visit&quot;) <> &quot;yes&quot; then
' ***** if not then show the flick! *************

' *** Your code goes below here ****

<OBJECT classid=&quot;clsid:D27CDB6E-AE6D-11cf-96B8-444553540000&quot;
codebase=&quot; ID=blue_arrow
WIDTH=552
HEIGHT=70>
<PARAM NAME=movie VALUE=&quot;blue_arrow.swf?recent_visit=yes&quot;>
<PARAM NAME=quality VALUE=high>
<PARAM NAME=bgcolor VALUE=#FFFFFF>
<EMBED
src=&quot;blue_arrow.swf?recent_visit=yes&quot;
quality=high
bgcolor=#FFFFFF
WIDTH=552
HEIGHT=70
TYPE=&quot;application/x-shockwave-flash&quot;
PLUGINSPAGE=&quot; </EMBED></OBJECT>


' ***** Now that they have seen it set the cookies *******
Response.cookies(&quot;recent_visit&quot;) = &quot;yes&quot;
'*********************************************************
End if

' *** if they had the cookie then it skips the flick ****

Hope this helps !
Webwzrd
 
OOOps!

I forgot to add the asp brackets around the cookie comands and the If statment. :)
Webwzrd
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top