[Laszlo-user] Browser integration: problem passing parameters to flash objects

Pierre Augier pierre.augier at inrialpes.fr
Thu Apr 26 01:29:05 PDT 2007


Hi !!!

i have problems with passing parameters to an flash openlaszlo SOLO 
application.

I looked to OL doc :

http://www.openlaszlo.org/lps/docs/guide/browser-integration.html
and especially section 8 and 8.2

so I tried this :

** OL APP :
...
<!-- "global" declaration of attribute -->
<attribute name="serveraddress" type="string" />
...
<!-- a small test, i also try with debug console-->

  <button id="myButton" text="TEST ATTRIBUTE"
          onclick="Debug.write(canvas.serveraddress, 
canvas.serverprotocol, canvas.serverport)" />



** INDEX.HTML:
<!-- i tried with both html generated by OL servlet using swfobject.js 
and the exemple on the OL doc using embed.js-->

        <!-- first solution -->
              <script type="text/javascript" src="swfobject.js" ></script>
               
        ...

        var so = new SWFObject(src, movie_id, w, h, v, bgcolor);
                    
        <!-- tried with addparam() and addvariable() -->          
                    so.addParam("serveraddress", "***.***.***.***");
                    <!-- so.addVariable("serveraddress",
        "***.***.***.***");-->
                    
                     so.addParam("username", "bob");
                     so.addParam("quality", "high");
                     so.addParam("scale", "exactfit");
                     so.addParam("salign", "LT");
                     so.addParam("menu", "false");
                     so.addParam("wmode", "opaque");
                     so.addParam("name", movie_id);
                     so.addParam("allowScriptAccess", "always");
                     so.write(div_id);

        ..

------------------------------------------------------------


<!-- 2 solution -->

      <script type="text/javascript" src="embed.js" ></script>
            ....
       
    lzEmbed({url: 
'videoconferenceweb2.swf?+window.location.search.substring(1)', bgcolor: 
'#ffffff', width: '800', height: '600', serverAddress: '***.***.***.***'});

------------------------------------------------------------


both cases don't work for me, does somebody have an example ? (variable 
is undefined)  a quick copy cut would be great :-)

thanks

Pierre



More information about the Laszlo-user mailing list