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: () {


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

Thank, i try but don’t work

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