Ema
05-27-2002, 08:53 PM
Hello,
I have a little problem. I have a button in Flash called "Save Scores" that will do two things when it is clicked: save a score into a cookie and get the updated number of scores from the cookie.
Here's the problem. If I have only the line "getURL("javascript:SaveScore( '" .....);" this works fine.
If I have only the line "getURL("javascript:GetRecordNum()");" this works fine.
But if I have both of them together in the button, like below, then it doesn't work. It doesn't save the score, and it doesn't get the number of scores.
Does anyone know what the problem is?
Thank you very much in advance.
on(release)
{
getURL("javascript:SaveScore( '" + _root.name.name + "','" + scoreCount + "', '" + timeSpent + "') ");
getURL("javascript:GetRecordNum()");
gotoAndPlay(81);
}
I have a little problem. I have a button in Flash called "Save Scores" that will do two things when it is clicked: save a score into a cookie and get the updated number of scores from the cookie.
Here's the problem. If I have only the line "getURL("javascript:SaveScore( '" .....);" this works fine.
If I have only the line "getURL("javascript:GetRecordNum()");" this works fine.
But if I have both of them together in the button, like below, then it doesn't work. It doesn't save the score, and it doesn't get the number of scores.
Does anyone know what the problem is?
Thank you very much in advance.
on(release)
{
getURL("javascript:SaveScore( '" + _root.name.name + "','" + scoreCount + "', '" + timeSpent + "') ");
getURL("javascript:GetRecordNum()");
gotoAndPlay(81);
}