FlashVars to Plugin

  • Hi,

    Just trying to read flashvars from the krpano.swf embed (not the plugin embed in the xml file) inside a plugin.

    Part of the krpano SWFObject:

    Code
    var so = new SWFObject("krpano.swf", "krpanoSWFObject", "100%", "100%", "9.0.28","#000000");
            	so.addVariable("id", "23");
            	so.addVariable("panoId", "40");

    And my AS3 plugin snippet:

    Code
    krpano.trace(0, "panoId: " + panoId);


    traces panoId: null

    Any idea, how I can retrieve the flashvars within a plugin swf?

    Thanks.

    P

  • Code
    var myQueryStrings = this.parent.loaderInfo.parameters;

    Instead of root use this.parent to retrieve flashvars from the main mc (krpano.swf) within a plugin .swf file.

Participate now!

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