Triggering a Lectora Command from a Flash File

plc Community Member Posts: 18 ☆ Roadie ☆
We are trying to program a flash file to send a message to Lectora to trigger an action (the show action). We would use this to show text blocks at different points in the .swf.

We have tried to do this using the following code in Flash:

import flash.external.ExternalInterface;"bullet1.actionShow");

As it is supposed to, when we run the file locally, we get a Flash message: "Flash player has stopped a potentially unsafe location. The following local application is trying to comunicate with this Internet-enabled location .... "

When we run it on a web server, we don't get this message.

Can you please help us figure out how to trigger a Lectora action from Flash? Any help is greatly appreciated.

Thank you,


  • timk
    timk Community Member Posts: 1,245 ✭ Legend ✭
    To stop the flash player warning you can set the flash player securtiy settings on the Adobe website to trust the folder, your course is in.

    To call an action from a SWF your code is basically correct, you just need to use the objects html name:

    import flash.external.ExternalInterface;"insert_the_html_name_of_the_object.actionShow");

    Easier than calling a specific action is to run an action group from flash:"runGroup_html_name_of_the_group");

    Then you wouldn't have to edit the FLA if you wanted to change the action.

  • plc
    plc Community Member Posts: 18 ☆ Roadie ☆
    Thank you. Your solution worked.

    I like the idea of using an action group. That will make things much easier for us. Great tip!:D