Passing variables between Lectora, Flash, HMTL5
July 22, 2013 12:00 AM
Hello,
Im fairly new to Lectora and e-learning for that matter. I understand that Lectora has the power to embed flash as content. It then also allows you to pass variables/data from flash to Lectora using the flash.external.externalInterface.call() function.
What Im lost with is the html5/javascript equivalent of the above. Is it possible to create a html5 animation with a bit of code at the end that can tell lectora to do a task? I plan on bringing the html5 interaction into lectora using the "Web Window" option. unless there is a better way that someone could show me or point me in the direction of.
Upon searching google and lectora forums, I have found no clue as to wether this is possible. Was wondering if someone could clear this all up for me.
Any help appreciated.
Andy
Discussion (3)
Passing data to/from HTML5 components is not only possible but also easier than passing data from/to Flash.
Anyone with very basic JS skills can do it. All you need to do is to call Lectora's functions from the component and vice versa.
If you need specific help, please tell:
a) how did you embed your HTML5 animation into Lectora
b) what data you want to pass
Hi ssneg,
Thanks for the reply, I will be embedding the html5 using the web window.
and what im trying to achieve is enabling a forward button once my anoimation is complete.
Regards
If by web window you mean an iframe, then you have to execute the following line at the end of your animation in your animation file: parent.image38.actionShow(). Of course, you should look into Lectora and see what's the actual html name of your image.
Discussions have been disabled for this post