Set plugin through action script

  • Hello All, can set the plugin object through action script, sample:


    import krpano_as3_interface;
    var krpano:krpano_as3_interface = null;
    this.addEventListener(Event.ADDED_TO_STAGE, startplugin);


    function startplugin(evt:Event):void
    {
    // get interface to krpano
    krpano = krpano_as3_interface.getInstance();


    // first - disable the build-in progressbar
    krpano.set("progress.showload","none");
    krpano.set("progress.showwait","none");
    krpano.set("plugin[fundoloading].visible","true");
    krpano.set("plugin[backgroundloading].visible","true");


    I tried doing this but nothing happened!


    Thanks!!!! *smile*

  • Hi,

    the posted code itself is okay, so the problem must be somewhere else...

    best regards,
    Klaus

    Hi Klaus, without mysterious, but the Murphy Law follows me!!

    I will check the XML archive. Below the code:

    Code
    <plugin name="backgroundloading"			url="paththeimage" 		        align="center"			visible="false"			x="0"			y="0"		/>


    I think that is all right!


    Thanks for help me!

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!