Hi,
I know removing and embedded krpanoviewer from a flashfile is still experimental, but I feel so close now, perhaps someone could help me crack this
Atm I have this:
Code
if(krpano !== null){
krpano.call('unloadkrpano()'); //unloads but doesn't remove the container, experimental method
for(var i:int = 0; i < stage.numChildren -1; i++){
var mc_name:String = stage.getChildAt(i).name;
var classname:String = getQualifiedClassName( stage.getChildAt(i) ) ;
if(classname == "kflashpano::Kpano"){
var obj:DisplayObject = stage.getChildByName(mc_name);
stage.removeChild(obj);
obj = null;
}
}
}
Alles anzeigen
This seems to remove everything. But 1 thing seems to be still lingering: The context menu. When I rightclick the flashfile I get this error:
Code
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at kflashpano::Kpano/menuSelectHandler()
Any idea? rightmouse click event still seems to be binded