Input Text Box Auto Selected in HTML page

Hello,

I have a form and I need the first Input Text Box to be automatically selected when the user goes to the page.

I got this code and put it in but I am still have problems
Use this in the frame that holds the textbox:
Selection.setFocus(“textboxname”);
The name has to be in quotes.

When I put that code in and tested the movie it worked great but once I put it into an html page it doesnt work anymore. The text in the input box is still selected but it isnt on focus so the user still has to click in the text box to input the text. Is there a way around this?

Thanks!!!

–I am using Flash 8

yeah, you will probably have to put the focus to the flash movie then to the text area, so in the HEAD tag of your html put


<script language="javascript" type="text/javascript">
document.getElementById("Flash_files_ID").focus();
</script>

then to your flash


myInt=setInterval(function(){
Selection.setFocus("textboxname");
}, 500);

so what i have done is used js to set the focus of the flash movie, then after 500 ms i have told the flash movie to then set the focus… hope it works, though I do not know if it works, get back to us:D