[Xerte] Re: desktop xerte js syntax to call swf function
    Julian Tenney 
    Julian.Tenney at nottingham.ac.uk
       
    Fri Jan 17 08:13:08 GMT 2014
    
    
  
What are you trying to do? Intuitively, this seems a long winded way of achieving it...
From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of KnowledgeWare
Sent: 17 January 2014 00:00
To: Xerte discussion list
Subject: [Xerte] desktop xerte js syntax to call swf function
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/20140117/83dc59a7/attachment-0001.html>
    
    
More information about the Xerte
mailing list