Flash Commands with Lectora

Sounds simple, but can't get that external HTML thing to work :(

I publish to HTML on a localhost and even tried to upload as scorm to the LMS. No result, always 'undefined'.Have tried to replace ExternalInterface.call("setVars"); with ExternalInterface.call("setVars()"); an much more.

In my swf:

import flash.external.*;var setFromLectora;ExternalInterface.call("setVars");tekst_txt.text = setFromLectora; // sets a textfield to display setFromLectora

 

In Lectora as external HTML-object, Custom HTML:


What am i doing wrong? can anyone upload working sample files?

Discussions have been disabled for this post