Link an image to an URL with a click

This script, does not work because onActivate is deprecated. Can somebody tell me new sintax to link with a click a image to an URL.

let leptolepis = Scene.getItem(“4JnQTLcYOn”) as BaseItem
leptolepis.onActivate(function: () {
open(“https://easyzoom.com/imageaccess/8df09dbdb106429a80c134bf11ab9929”)
})

Hi,

onActivate was moved to input namespace. The usage is the same:

leptolepis.input.onActivate(function: () {
open(“https://easyzoom.com/imageaccess/8df09dbdb106429a80c134bf11ab9929”)
})

Thank, i try but don’t work

I am having the same issue. Has this been resolved yet?