Not able to set score to LMS

Hi Everyone,

i have created custom result slide as it is the requirement and i have to send score to the lms from my custom result slide, this is what i have tried to do 

var correctQue=0;
var resultPercentage=0;
var player = GetPlayer();
var correctQue = player.GetVar("correctQue01");
resultPercentage=(correctQue/8)*100;
player.SetVar("result",resultPercentage);
var lmsAPI = parent;
lmsAPI.SetScore(Score,Result);

but its not working, any help will be appreciated. 

5 Replies