i’m trying to get flash to check for the presence of a cookie through php, but i’m getting bad results.
here’s my php code:
<?php
if(isset($_COOKIE[‘tbmpollchecker’])){
print ‘&var1=true’;
}
?>
here’s my actionscript:
onClipEvent(load){
cookieLV = new LoadVars();
cookieLV.load(“cookie.php”);
cookieLV.onLoad = function(success:Boolean){
var cookieCheck:Boolean = this.var1;
lvChecker.text = otherVar;
trace("var1 = "+ cookieCheck);
if(cookieCheck == true){
gotoAndStop(“show”);
}
}
}
here’s the result of the trace command:
var1 = true’;
}
?>
so, what stupid, noobie mistake am i making?