AS3 syntax to call Lectora actions
January 20, 2009 12:00 AM
import flash.external.ExternalInterface; addEventListener(MouseEvent.MOUSE_UP, runActionGroup); function runActionGroup(evt:MouseEvent):void{ ExternalInterface.call("runGroup_og38"); }[/CODE]That will call the javascript to trigger your action group assuming the HTML name associated with your action group is og38 - to find the HTML name you need to make sure that under File --> Preferences you have the check box checked for "Show HTML-published object names in object properties" Then on the general tab of your group properties you'll see the HTML name in the top right - use that to replace og38. Hope that helps.[CODE]import flash.external.ExternalInterface; addEventListener(MouseEvent.MOUSE_UP, runActionGroup); function runActionGroup(evt:MouseEvent):void{ ExternalInterface.call("runGroup_og38"); }[/CODE]That will call the javascript to trigger your action group assuming the HTML name associated with your action group is og38 - to find the HTML name you need to make sure that under File --> Preferences you have the check box checked for "Show HTML-published object names in object properties" Then on the general tab of your group properties you'll see the HTML name in the top right - use that to replace og38. Hope that helps.
Discussions have been disabled for this post