Removing krpano from stage

  • 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:

    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

  • Thanks Klaus! that fixes it! I was so focussed on the krpano object, I did no think the contextmenu actually could be binded to the parent Class that called it :)

    This is the whole code for unloading for future reference

    It's probally no the best way. But for now it works.

Jetzt mitmachen!

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