Wow. What a great project. Thank you so much Max! I got it to work for a parent child situation as I described above, where a Hype document (parent) has a rect element that contains an iframe containing another Hype document (child). They are able to send messages back and forth, however, when the parent sends a message to the child, it get repeated four times. It has something to do with the for loop where it’s checking through the ids of the documents. However, It works fine for the child sending a message to the parent.
Here’s an example project I’ve worked on. The parent and child both send each other messages, through an inline button and also through a Hype function via a Hype button. Each has a behavior that receives the messages and passes it along to a function, which announces that it has received a message.
If you can spot what is causing it to repeat the message from the parent to the child, that would be much appreciated.