Controlling Flash with EI

approg
approg Community Member Posts: 258 ♪ Opening Act ♪
I'm trying to get Lectora 9.3 to control a SWF under the Flash Player 10 with ActionScript 3.



In the SWF I have some AS that look like this



ExternalInterface.addCallback("loadMovies", loadMyMovies);



function loadMyMovies(str:String):void {

// blah

}



Within Lectora I'm using an action with

Action: Flash Command

Target: mySWF

Command: Call Function

Name: loadMovies

Value: foo.swf



When I HTML publish the course and run it off a web server IE 8 complains that there's an error (a generic one in the SWF's javascript).



If I hand build a HTML page for the SWF the calls to the SWF behave as expected.



Can anyone provide some guidance on how to get this to work within Lectora?



Andrew Poulos