Removing Plugin via AS3 button within the actual plugin??

  • Hi All,

    Do you know if I could create a button within the flash file of the plugin (like a close button) that will actually call krpano to remove the plugin??

    I know I could use the xml to do it but this will close it always (even though there will be other buttons in the plugin that should not close it)

    Hope you can help........

    *tongue*

  • Hi,

    I haven't tested the closing of a plugin itself, but it should work via the "removeplugin()" call,
    you can make this call also from AS3:

    e.g.:

    Code
    krpano.call("removeplugin(NAME);");

    maybe it would be necessary to delay the removing call a little big to avoid problems,
    e.g.

    Code
    krpano.call("delayedcall(0.1, removeplugin(NAME) );");

    but I will test that soon

    best regards,
    Klaus

Jetzt mitmachen!

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