Forum Discussion
AdamTrosper
8 years agoCommunity Member
lmsAPI Functionality in HTML5 Output
Hey all,
I've been searching through the forums and haven't been able to find anything solid. I'm using Storyline 360, outputting to both HTML5 and Flash to cover my bases, since the audience doe...
ChrisPim
8 years agoCommunity Member
Hi,
I am using Moodle and Storyline 360
I have this code which works for Flash - get username. This populates a field in Storyline with variable %newName%
-----------------------
var player = GetPlayer();
var myName = lmsAPI.GetStudentName();
var array = myName.split(',');
var newName = array[1] + ' ' + array[0];
player.SetVar("newName", newName);
--------------------------------
It used to work in Storlyine 2 for HTML5 but does not anymore with Storyline 360
How would I use your workaround with var lmsAPI = parent;
...in my code above so it works in HTML5 and Flash on Moodle?
Any help greatly appreciated.
Chris