Forum Discussion
GaryKenyon
9 years agoCommunity Member
SL3 Javascript GetPlayer() function not defined in HTML5 output
Hi forum.
I created a game a while back for SL2, my external JS file gets and sets a bunch of Storyline variables using GetPlayer, SetVar and GetVar.
With the release of SL3, I have published th...
FrankSiegel-c2e
8 years agoCommunity Member
I wrote this a year ago and it's in this thread. Did you try windows.GetPlayer() ?
"It was the iFrame. We viewed the page source, pulled the iFrame tag out and pasted that into the browser and the JavaScript worked fine. Turns out that since it's an iFrame:
window.parent.GetPlayer() won't cut it.
windows.GetPlayer() works.
So you might want to share this. Thanks"
Related Content
- 6 months ago