Hi
I am trying to get the following code to work.
Code:
The getScore string originally looks like
"visited=1|lastVisited=1|time=1:30" or "visited=1,2,5|lastVisited=5|time=3:30"
It is the string of numbers after visited= that I am trying to pass through to fnClicked?
My problem is arrVisited is always undefined?
Thanks for any help.
TC
[Peace][Pipe]
I am trying to get the following code to work.
Code:
Code:
import flash.external.ExternalInterface;
var getScore = ExternalInterface.call("parent.SCORM_GetDataChunk");
var susData = getScore.split("=")[1];
veiwData = susData.split("|",1);
arrVisited = veiwData.split(",");
for (i=0;i<arrVisited.length; i++) {
fnClicked(arrVisited[i]);
}
"visited=1|lastVisited=1|time=1:30" or "visited=1,2,5|lastVisited=5|time=3:30"
It is the string of numbers after visited= that I am trying to pass through to fnClicked?
My problem is arrVisited is always undefined?
Thanks for any help.
TC
[Peace][Pipe]