Hi there,
I have an edge animate composition.. at one point in my timeline, an iFrame become visible.
It has a game in it and requires a space bar to start. The problem is that because it is not in focus, I have to first click on the iframe and then hit spacebar.
CODE:
var container = sym.getSymbol("facts").$("spaceinvaders"); // iFrame is a div on stage
container.append('<iframe id="spaceWindow" width="332px" height="493px" src="spaceinvaders/index.html" frameBorder= "0"></iframe>');
Has anyone any ideas how to force a focus from edge animate from a click? or something similar? I'd like to avoid having to click on the iframe
Thanks!
Try something like this (based on contentWindow property), after the two lines of code you have above.
container.contentWindow.focus();
Darrell