not deep in your project, but messaging is the route to go ...
the iFrame sends an event along with some data and parent window receives it ... this works bidirectional ...
in fact @MaxZieb wrote an extension that can connect hypeinstances... Hype Global Behavior (Custom Behavior Extension) ... this may help too