Layer/hotspot do action on other hotspot ?

  • hello there, i’m looking for the code to execute an action to an hotspot when i click on a layer.
    i have a layer named « delete_hotspot », when i click on it, i want to deleted a selected « hotspot ».

    Code
    set(hotspot[get(_selected_hotspot)].onclick, removehotspot(get(name)));


    this code work: but i need to click on the « hotspot » after i need to click on « layer:delete_hospot » and after to the hotspot himself..

    I want to save a step, click on the hotspot to « _selected_hotspot » and only click to «layer » for delete the selected one.

    i think it’s easy but i don’t find it...

    regards

    Edited once, last by ChukA: Solved :) (May 22, 2018 at 12:13 AM).

Participate now!

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