Is there any way to pass th einternal variables to ext source

Jan 31, 2013

Hi ,

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 ??

Reference  links:

http://community.articulate.com/forums/p/18764/119667.aspx#119667

http://community.articulate.com/forums/t/12738.aspx

Thanks,

Deepak

4 Replies
Deepak G.C

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

Steve Flowers

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.

This discussion is closed. You can start a new discussion or contact Articulate Support.