How do I replace a plugin?

  • Is it possible to force a plugin that is already open to re-open when a hotspot is clicked? Normally when I try to add the plugin with the same name it will be ignored. But if I use removeplugin before addplugin, when the plugin isn't open in first place I get "ERROR: remove - unknown array item". How can I make sure the old plugin is closed, if it exists, and the new one always opens?

  • Hi Protected,

    Quote

    How can I make sure the old plugin is closed, if it exists, and the new one always opens?

    I think you could check about a given plugin before doing anything in this way:

    Code
    if(plugin[%1].loaded, trace('plugin[%1] exist'), trace('plugin[%1] does not exist') );

    Hope this help...

    SAlut.

Participate now!

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