Flash Commands with Lectora

When you are calling the function, don't set it to an object, you run a security risk inside of flash 10 player. (and it won't execute)


So:


ExternalInterface.call("myFunction")


Then have a listener listen for a change in the setFromLectora you are setting from js file in Lectora, that should work.


 


Is this something needs to be done on the fly? You can dynamically write a JS file to pass the variable through flashvars


This is way more responsive than passing variables back and forth if you don't need to. You can also use the lectora flash commands but need to set up the appropriate listeners inside of flash.


 

Discussions have been disabled for this post