Flash ‘wMode’, AS3, arrow key focus on Internet Explorer, stacking order and a possible solution
===

**Flash ‘wMode’, AS3, arrow key focus on Internet Explorer, stacking order and a possible solution.**

The following issue may have been asked in various forms several times, but I hoping for some guidance on a possible solution I created.

When ‘wMode’ in instigated and a user is playing a Flash game requiring arrow keys, on Internet Explorer the browser window also moves. Seemingly, the only way round this is to remove the ‘wMode.’ But, if the ‘wMode’ is removed the Flash game rises to the top of the stacking order and all other elements such as expandable banners or dropdown menus go behind the Flash. No amount of iFrames or CSS resolves this issue.

I have found a solution that lets the ‘wMode’ remain, whilst also enabling the Flash game to have keyboard focus once clicked and therefore the Internet Explorer browser window does not move. This solution means other Dom elements can go above the Flash.

I have put the AS3 code below into a simple example and it seems to work. It basically puts a srollPane in the content and then this is made invisible.

Being a PHP developer and not an AS3 developer, my questions is – can any AS3 developers see an issue or detrimental impact of placing the code below into a Flash based/AS3 built game. Equally could this work in AS2?

Much appreciated

    _scrollPane = new ScrollPane();
    			
    _scrollPane.setSize(stage.stageWidth, stage.stageHeight);
    			
    _scrollPane.horizontalScrollPolicy = ScrollPolicy.OFF;
    			
    _scrollPane.verticalScrollPolicy = ScrollPolicy.OFF;
    			
    _scrollPane.alpha=0;
    			
    stage.addChild(_scrollPane);

