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
this.loaderInfo.addEventListener(Event.COMPLETE, loaderComplete);
function loaderComplete(myEvent:Event) {
var myQueryStrings = root.loaderInfo.parameters;
if(myQueryStrings.sid)
{
sid = myQueryStrings.sid;
}
if(myQueryStrings.id)
{
tourId = myQueryStrings.id;
}
if(myQueryStrings.panoId)
{
panoId = myQueryStrings.panoId;
}
}
Display More
traces panoId: null
Any idea, how I can retrieve the flashvars within a plugin swf?
Thanks.
P