Hi,
There are many ways to focus your swf file when it's loaded.
1. Using HTML + Javascript code :
"<" body scroll='no'onLoad="document.getElementById('${appSwfVarname}').focus();" ">"
or
"<" body scroll='no'onLoad="document.getElementById('swffilename').focus();" ">"
2. Using ActionScript Code :
ExternalInterface.call('function browserFocus(){document.getElementById(\'swfname\').focus();}');
txtUserName.setFocus();
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment