I can't target the mask in javascript. I need it to follow the mouse
Hi. First post, thanks for reading
Here is what I have to target the movie clip on the mask layer:
exportRoot.labelXMask.x = props.graph.maskX.x
Now this works fine when the layer is not a mask but becomes un-targetable once the layer is made a mask. I've done a bit of reading and from what I've gathered once I've published that movie clip on the mask it loses its instance name.
Other people seem to have cracked it by targeting 'mask', which I have to admit is not making much sense to me. I've tried the following:
exportRoot.mask.x = props.graph.maskX.x
exportRoot.labelXMask.mask.x = props.graph.maskX.x
mask.x = props.graph.maskX.x
mask_1.x = props.graph.maskX.x
but no luck 😞 Can anyone shed some light, please?
Save me Obi-Wan!
