window is the default wmode value if nothing is set.

You should easily be able to set focus to the object with some simple js
like:
document.getElementById("FlashObjectID").focus();

This is obviously a simplification, and you should ensure that you swf is
actually available before trying to call this method (use the swfobject
callback function)


Aran



On Wed, Nov 11, 2009 at 11:30 AM, Steve Thames
<[email protected]>wrote:

>  Actually, I tried with opaque/transparent/window and no setting at all.
> No differences.
>
>
>
> *From:* [email protected] [mailto:[email protected]] *On
> Behalf Of *Aran Rhee
> *Sent:* Tuesday, November 10, 2009 4:03 PM
>
> *To:* [email protected]
> *Subject:* Re: Setting Focus to SWF in Firefox using SWFObject
>
>
>
> Yes, this is a known Mozilla bug with wmode (amongst many others).
>
>
>
> The easiest solution is to avoid wmode = opaque/transparent if at all
> possible...
>
>
>
> Aran
>
>
>
> On Wed, Nov 11, 2009 at 5:36 AM, Steve Thames <[email protected]>
> wrote:
>
> Thanks for responding, Sam.
>
> Actually, the consensus I am finding is that this is a general Mozilla
> issue.  Some think it is related to setting *wmode* to *transparent* but I
> find these results with any setting.  As I said, it works fine in IE.  Don’t
> know yet about Opera or Safari.  I am looking to find anyone that has found
> a solution to this problem.
>
>
>
> I did find one site in which someone had apparently solved this but it
> involved about three pages of Javascript code and I’m looking for something
> a little easier than that.
>
>
>
> *From:* [email protected] [mailto:[email protected]] *On
> Behalf Of *Sam Sherlock
> *Sent:* Tuesday, November 10, 2009 10:03 AM
> *To:* [email protected]
> *Subject:* Re: Setting Focus to SWF in Firefox using SWFObject
>
>
>
> swfobject is working fine, this is a general flash issue - does using
> traditional object/embed method rather than swfobject make it work?  (I
> would imagine not - why I see this as a general flash issue)
>
>
>
> I have found (but not tried it)
>
>
> http://www.bigresource.com/FLASH-Creating-Keyboard-class-setting-the-focus-to-input-text-fields-uTOPHnuQQO.html
>
>
> - S
>
>  2009/11/9 smthames <[email protected]>
>
>
> Using SWFObject 2.0:
>
>    <div id="app"></div>
>
>      <style>
>        object:focus { outline: none; }
>      </style>
>
>      <script type="text/javascript">
>
>        var flashvars =
>          {
>          AppPath: '<%=String.Format("{0}://{1}{2}",
> Request.Url.Scheme, Request.Url.Host, ai.Path)%>'
>          };
>
>        var params =
>          {
>          allowScriptAccess: "always",
>          wmode:             "transparent"
>          };
>
>        var attributes =
>          {
>          };
>
>    swfobject.embedSWF("flash/CAPTAClient.swf?128988943755758144",
>                           "app",
>                           "950",
>                           "480",
>                           "9",
>                           '/CAPTA/include/expressInstall.swf',
>                           flashvars,
>                           params,
>                           attributes);
>
>    swfobject.addDomLoadEvent(function() { document.getElementById
> ("app").focus(); });
>
>    </script>
> </div>
>
> The SWF contains a username/password input panel.  This works fine in
> IE.  In FF, the caret is flashing in the User Name field, as it
> should, but no keyboard input works and will not work until the user
> clicks on the SWF object, itself.  Further, when the SWF is active,
> tabbing will only tab through the SWF fields--not out into the browser
> location bar.
>
> I don't care so much about the tabbing but would really like to know
> how to allow the user to type into the focused input field without
> having to click on the SWF.
>
> Anyone have any idea?
>
>
>
>
>
>
>
>
>
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SWFObject" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/swfobject?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to