xml parameters in html file...

  • Hi,

    I'm trying to pass some xml parameters in html file, without success. Maybe I've not understood the process (and above all, I'm not really a programmer)
    Hereafter is my script :

    <script type="text/javascript">
    var swf = createswf("myPano.swf");
    swf.addVariable("xml","myPano.xml");
    swf.embed("krpanoDIV");
    so.addVariable("plugin[infoText.url,skin/infoBackground.png");
    so.addVariable("plugin[infoText].preload,false");
    so.addVariable("plugin[infoText].visible,true");
    so.addVariable("plugin[infoText].enabled,true");
    so.addVariable("plugin[infoText].zorder,0");
    so.addVariable("plugin[infoText].alpha,0.3");
    so.addVariable("plugin[infoText].blendmode,normal");
    so.addVariable("plugin[infoText].edge,center");
    so.addVariable("plugin[infoText].width,200");
    so.addVariable("plugin[infoText].height,40");
    so.addVariable("plugin[infoText].align,top");
    so.addVariable("plugin[infoText].onover,showtext('this is my text', infostyle");
    </script>

    There is no reference to this plugin in the xml file, as I've read that it was auto-defined in the html one.

    Any idea of what I'm missing?

    Thanks

    Philippe

  • Hi Philippe,

    Try this code:


    note: swf.addVariable("plugin[infoText].url","images/IMG_1683.jpg");
    so: swf.addVariable("variable","value");
    and: swf.embed("krpanoDIV"); at the end....

    SAlut.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!