I dynamically create textfield hotspots, and I would like to be able to remove them by clicking on them.
<action name="mouse_add_label">
inc(label_hotspot_num);
txtadd(tname, 'label', get(label_hotspot_num));
addhotspot(get(tname));
set(hotspot[get(tname)].url, plugins/textfield.swf);
...
set(hotspot[get(tname)].onclick, if (delete_label_mode == 1, removehotspot(get(tname)) );
</action>
There is a problem with removehotspot(get(tname)). If I create multiple hotspots tname is changed. Is there a way to tell it to remove hotspot where onclick originates?
Thanks,
Marek