My Plugins are only apperaing once?

  • Hi Klaus,

    I use the below to open a new plugin - And unload plugins. This works fine once.... second time you click on the hotspot it doesnt come up --- is there somerthing permenant to removeplugin?

    Thanks In Advance

    John


    <action name="hideallimages">

    if(plugin[i_2].loaded, removeplugin(i_2) );

    </action>


    onclick="set(visible,0); looktohotspot(h_2, 80, smooth(50,50,50));
    action(hideallimages);
    set(plugin[i_2].url,items/6/2.png);
    set(plugin{i_2}.visible,true);"

    />


    <plugin name="i_2"
    url=""
    keep="true"
    visible="true" enabled="true" handcursor="true" capture="true" children="true"
    zorder="100"
    alpha="1.00" blendmode="normal"
    smoothing="true"
    origin="centre" edge="centre"
    scale="1"
    onloaded=""
    onover=""
    onhover=""
    onout=""
    ondown=""
    onup=""
    onclick="action(hideallimages)"
    ox=""
    oy=""
    rotate="0"
    />

  • Hi,

    when it has been removed with removeplugin() it must be added again with addplugin()

    what do you want to do?
    changing the "url" is also possible without removing and adding,
    and for hiding - changing "visible" can be used,

    best regards,
    Klaus

Participate now!

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