设置Web Flex 应用程序为默认的焦点

在creationComplete对应的函数中加入
focusManager.setFocus(this.txtUsername);
ExternalInterface.call("document.getElementById('Index').focus()");

Index为该FLEX页面在HTML中的ID,或者就是你这个FLEX页面的名称。我测试通过,保证没问题

posted on 2013-06-03 21:56  Lishenyin  阅读(138)  评论(0编辑  收藏  举报

导航