if(tmpStr == tmp+value)
{
i=1;
action = null;
action2 = null;
}
if(tmpStr1 == tmp+value)
{
i=0;
action();//not working
action2();//not working
}
for(i;i<=14; i++)
{
if(tmp!="movie"+i)
{
document.getElementById("movie"+i).sndToAS("resume");
}
}
}
function action()
{
document.getElementById("movie0").sndToAS("pause");
}
function action2()
{
if(tmp != "movie0")
{
document.getElementById("movie0").sndToAS("pause");
}
}
if(tmpStr == tmp+value) { i=1; action = null; action2 = null; } if(tmpStr1 ==
Share
Do something like this
Then when you want to call your functions all you have to do is
but your going to want to check if the are set before calling them
I believe thats what your after
or do something like this
then you don’t have to check if the are enabled just call them and they will work or want depending on if they are enabled