[COLOR=Red]heres the download to the files[/COLOR]
Im trying to create a cookie that will hold a mute variable for several swfs, im not sure of how to do it and this is not working, I was hoping someone would help me, heres the flash
[COLOR=Gray]
[/COLOR]
[COLOR=Gray] import flash.external.ExternalInterface;
tess = ExternalInterface.call("MyVolume");
if (tess.data.value != undefined) {
if (tess.data.value == 1) {
trace("off");
bt.gotoAndStop(2);
} else {
trace("on");
}
} else {
trace("undefined");
on (release) {
this.gotoAndStop(2);
tess.data.value =1
tess = ExternalInterface.call("MyVolume");
}[/COLOR]
[COLOR=Gray]
[/COLOR]
And heres the javascript:
[COLOR=Gray]<SCRIPT LANGUAGE="JavaScript">
<!--
function setCookie(value)
{
document.cookie = value;
}
function getCookie(value)
{
value=getCookie('value');
if (value!=null && value!="")
{
return document.cookie.toString();
}
else
{
/// username=prompt('Please enter your name:',"");
if (value!=null && value!="")
{
setCookie('value',0);
}
}
}
}
//-->
//</SCRIPT>
[/COLOR]