Hi everyone and thankyou for allowing me to be part of this messageboard.
I been pulling my hair out here. I have a flash intro movie and I want it so when I user returns the video is not played. I didn't want to use sharedobject because it seems buggy to me. So I created one SWF movie which is the intro and another SWF which has a "click here" to play. Heres what I setup in my PHP file
<?php
if(isset($_COOKIE['here']))
{
print "<object classid=clsid😃27CDB6E-AE6D-11cf-96B8-444553540000 codebase=http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0 width=280 height=250>";
print "<param name=wmode value=opaque>";
print "<param name=movie value=flash/return.swf>";
print "<param name=menu value=false>";
print "<param name=quality value=high>";
print "<param name=base value=.>";
print "<embed src=flash/return.swf wmode=opaque base=. menu=false quality=high pluginspage=http://www.macromedia.com/go/getflashplayer type=application/x-shockwave-flash width=280 height=250></embed/>";
print "</object/>";
}else{
print "<object classid=clsid😃27CDB6E-AE6D-11cf-96B8-444553540000 codebase=http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0 width=280 height=250>";
print "<param name=wmode value=opaque>";
print "<param name=movie value=flash/preloader2.swf>";
print "<param name=menu value=false>";
print "<param name=quality value=high>";
print "<param name=base value=.>";
print "<embed src=flash/preloader2.swf wmode=opaque base=. menu=false quality=high pluginspage=http://www.macromedia.com/go/getflashplayer type=application/x-shockwave-flash width=280 height=250></embed/>";
print "</object/>";
}
?>
But I don't know how to set the cookie properly
I had this at the beginning of the php page
<?php
setcookie("here);
?>
But quickly learned that even new users would be giving a cookie before the movie even started. So I thought about setting the cookie in flash but don't know how.
Can anyone help?