Nested iframe communication using contentWindow and window parent

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

Thank you
this is very much useful.can you please attach the code

andrewpravin
Автор

I'm stuck... here's my setup (adobe animate canvas):
main clip, frame 2 spawns iframe0 with mkdiv
iframe0 frame 1 spawns iframe1 with mkdiv
iframe1 has a button and when I press it, I want it to move the timeline of iframe0 forward by 1. same website, same domain. how do I do this? (looking for a ready to copy/paste/use code, others have tried suggesting postMessage(); but I can't seem to get it to work...


also in the mix, i seem to be required to post window.parent most of the time, see if that info is useful if you have an answer :)

IzludeTingel