Google
 
Webnews.only-4-geeks.com
Interesting places
news.only-4-geeks.com Forum Index » Flash

Selection.setFocus and HTML

 
Jump to:  
 
budd101
PostPosted: Thu Jul 10, 2008 7:54 am    Post subject: Selection.setFocus and HTML
       
When publishing in HTML I cannot get the focus to set on my input text box.

Using Selection.setFocus in the action script and Transparent Windowless in
the Windows Mode in Publish Settings, I am able to get a flashing cursor, but I
still must click on the screen to allow for keyboard input.

It works fine when I open it as an swf file, but not when I open it embedded
in an HTML file. I have read that this is a problem that must be fixed in
HTML, but I have not found the solution. Any suggestions?

Thank you
 

 
rritchey
PostPosted: Thu Jul 10, 2008 11:58 am    Post subject: Re: Selection.setFocus and HTML
       
You need to use javascript to set the window's focus on the flash.
 

 
budd101
PostPosted: Fri Jul 11, 2008 4:02 am    Post subject: Re: Selection.setFocus and HTML
       
Thanks for your help.

For Internet Explorer goto
LINK for the
solution.

For Firefox it is a lot more complicated. Goto
LINK

I haven't tried the solution for Firefox yet
 

Page 1 of 1 .:.

Google
 
Webnews.only-4-geeks.com

Windows Update | C++ | C | PHP | JavaScript | Photoshop | Programming | Windows 2000 | Python | Windows XP | Object | Flash | Flash - ActionScript | Paint Shop Pro | Excel | PowerPoint | Access | Word | Windows 98 | Internet Explorer 6.0 | CorelDraw12 | Java | XML | asm x86 | Linux Mandrake | Linux RedHat | Outlook |  | news from newsgroups |_ | s

Web Templates

Awesome Website Templates ©

Zarabianie przez internet Informacje świata może Czarny chleb - Dżem kostiumy kąpielowe