Skip to main content
K
7d ago

Reporting nested event

I have a button with an URL event that is nested and want to know if there is a way to report the URL event on the nested composition. I have the url event on artboard A (cause the event fire once the button animation is done), witch is nested into B, and B is nested into C, is there a way to trigger it from the C artboard after pressing the button?

3 replies
K
(edited) 6d ago

Nested artboard events are not exposed to the runtime. In this case, they’ll need to “bubble up” the event.

To do this, first, they’ll create a new event on the parent artboard (likely named the same as the one they are repeating from the child). Then they can create an event, targeting the child artboard. From there, they can select the event they want to listen for. Usually theres only 1 event coming from a child, so it shouldn’t be difficult to find. From there, they just have the listener action report an event, and then select the Parent level event.

This process essentially listens for the child event, then reports another event on the parent level that can be seen at runtime.

K
6d ago

first of all, thank you very very much for taking the time, i think i made it with your help, it's a little bit sketchy because the original event is 2 layers deep beneth the nested artboards, but i think i link them rigth, at least the console is reporting an event when the button is pressed, so that should work.
Again, thank you very very much for taking the time.

10h ago

Awesome, glad I could help!