I have been trying to pass the score value to an external page, after searching the forum I found the solution which only works for html5 but not for the flash build.
Is there any way to pass the stroyline internal variables to an external source in flash build ??
It works in Flash. You're likely seeing the result of the Flash Security Sandbox when running locally. This prevents Flash from talking to the browser through JavaScript when running from a local drive. Few ways to fix it.
1) Publish to CD when running locally. This wraps the HTML output with an EXE that defeats the restriction.
2) Push to a Web server of some kind. Going through http:// will unlock the local restriction.
4 Replies
Hi Deepak and welcome!
Does this help?
var player = GetPlayer();
var passing_points = player.GetVar("varPassingPoints");
alert(passing_points)
I followed the instruction from this page
http://community.articulate.com/forums/p/18764/119667.aspx#119667
and it works in html5 but not in flash build..
in flash when I do
alert(player.toSource()) // in firefox
it returns an empty object so I guess in flash build GetPlayer() function is not working as expected
It works in Flash. You're likely seeing the result of the Flash Security Sandbox when running locally. This prevents Flash from talking to the browser through JavaScript when running from a local drive. Few ways to fix it.
1) Publish to CD when running locally. This wraps the HTML output with an EXE that defeats the restriction.
2) Push to a Web server of some kind. Going through http:// will unlock the local restriction.
3) Add the publish folder to your Flash Player Security Settings whitelist: http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html
GetPlayer, GetVar, and SetVar all work the same on HTML5 and Flash based output.
it's working thanks for the solution Steve.
This discussion is closed. You can start a new discussion or contact Articulate Support.