[Xerte] desktop xerte js syntax to call swf function

KnowledgeWare knowledgeware at kccsoft.com
Fri Jan 17 00:00:25 GMT 2014


Can anyone see anything wrong with this. this is in the index.htm page that
loads my RLO. I'm loading a swf file in the RLO that calls the
'flashInititialized' function below. The function runs, because if I remove
the comments around the alert('xxxxx') that will display.

 

<script type="text/javascript" language="JavaScript">

myRLO = new rloObject('975','731','ron_acoustic.rlo');

</script>

 

 

    <script type="text/javascript">

    // called by our action script after initialization

   function flashInitialized()

    { 

 

                //alert('xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx');     THIS
RUNS WHEN COMMENT REMOVED

                

      var isInternetExplorer = navigator.appName.indexOf("Microsoft") != -1;

 

      // get flash object

      //flash = isInternetExplorer ? document.all.myRLO.newMenu :
document.myRLO.newMenu;

                flash = isInternetExplorer ? document.all.myRLO.newMenu :
document.myRLO.newMenu;  

 

WHAT SYNTAX SHOULD I BE USING HERE TO CALL A FUNCTION IN THE SWF LOADED BY
THE RLO? NONE OF THESE WILL RUN..

      // call action script function

      flash.setText('Hello from javascript via xerte RLO');

      //myRLO.newMenu.setText('Hello from javascript via xerte RLO');

      //_level0.engine.newMenu.setText('Hello from javascript via xerte
RLO');

    }

 

    </script>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20140116/975954c9/attachment.html>


More information about the Xerte mailing list