Hi, i would like to use skin_bottonglow function over my layer and over my hotspot so i have change the default skin_bottonglow function because in the log i have this error: "no parent 'btn-gallery-bagni2' found" and the glow effect doesn't appear over the hotspot.
This is my code (my changes in red):
if(%1 != null,
set(strength,0.7);
if(%2 != null, set(strength,%2));
if (hotspot[1%].name === %1,
set(layer[skin_buttonglow].parent, hotspot[1%]);,
set(layer[skin_buttonglow].parent, %1);
);
set(layer[skin_buttonglow].visible, true);
tween(layer[skin_buttonglow].alpha, get(strength), 0.07);
,
tween(layer[skin_buttonglow].alpha, 0.0, 0.1, default, set(layer[skin_buttonglow].parent, null); set(layer[skin_buttonglow].visible, false); );
);
but the i get the same error. so i'm thinking is it possible to have an hotspot like a parent for a layer?