Nested Artboard with no events
Hello, I am getting a message saying my nested artboard has no "events", so I cant add a listener to it. Yet the artboard does have animations and a functioning state machine, its fully animated and even gets triggered in the parent artboard. I want to add another layer of interaction in the parent artboard
Hi
hello
Thanks!
Yes. This is correct. The nested artboard cannot be used as a target, so you can do two things. Use a shape as you have in the file or, better, create the interaction in the button with a listener and have this listener fire an event. Then in the main artboard when you click on the button, you can use the event to fire the input you want.
ok, thank you for clarifying and suggesting the other method! When you mention "event" thats different from using the event tool?
No, it is the same type of event, but on the button you fire it using the listener and on the main artboard you listen to it to trigger an input. For example, let’s say I want to add a button to a main artboard. For this I create the button on another artboard with the interaction using a listener. To this interaction I add an event, using the event tool, that is triggered every time I click on the button. Then on the main artboard, you add the button using the nested artboard option and create a listener using the button’s nested artboard as the target. This is where we listen to the button event and you can configure it so that every time it is triggered, it triggers an input.
Ok, thank you! I will try this out.