Setting logkey to false when embedding krpano in swf

  • I am having trouble disabling the logkey 'o' in my swf. Here is how I am doing the embed, but typing 'o' still displays the log. Any suggestions would be appreciated. Thanks.

    public function krpano_load():void
    {
    context.parameters = {"logkey": "false"};
    krpanoloader.contentLoaderInfo.addEventListener(Event.COMPLETE, krpano_load_complete);
    krpanoloader.load(new URLRequest("krpano.swf"),context);
    }

    public function krpano_load_complete(event:Event):void
    {
    var panoSwf:Object = (event.target.content as Object);
    panoSwf.embeddedstartup(stage, krpano_ready);
    }


    public function krpano_ready(krpanointerface:Object):void
    {
    krpano = krpanointerface;
    // etc
    }

  • Thanks Alexey. So I guess what I need to know now is how to pass that XML file to krpano.swf. I am loading krpano.swf from within another swf (see code below). Does it look for krpano.xml by default or do I need to pass the path to the XML as part of the loader context?

    -Dave

Jetzt mitmachen!

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