How to add/remove points to/from polygonal hotspot?

  • Hello,

    I am looking for a way to add and to remove points to/from poligonal hotspot from the code. I cannot use VUI via the editor.swf plugin.

    There are functions to add/remove hotspots and layers objects but I cannot see the same for the point in the poligonal hotspot.
    Is there a way to add remove points?

    Kind Regards,
    Dmitry.

  • Hi,

    adding points is possible just by setting new points,
    e.g.

    Code
    copy(cnt, hotspot[spot].point.count);
    set(hotspot[spot].point[get(cnt)].ath, ...);
    set(hotspot[spot].point[get(cnt)].atv, ...);

    and for removing the removearrayitem function could be used - e.g. to remove the 11. point use the 10 as 0-based index:

    Code
    hotspot[spot].point.removearrayitem(10);

    Best regards,
    Klaus

Jetzt mitmachen!

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