1 Reply Latest reply on Jul 27, 2014 9:24 PM by heathrowe

    Focus iFrame in Edge Animation

    Fagan Level 1

      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!