Forum Moderators: open

Message Too Old, No Replies

tab index with flash and html

tabbing in and out of Flash

         

oona

1:32 pm on May 20, 2005 (gmt 0)

10+ Year Member



Hi,
I'm having trouble tabbing back out of a flash application.
My Tab index order tabs into the swf alright, but doesn't move on out to the next href in html although the tab index order is clear.
Has anyone any experience with this problem?
(Site Search isn't working at the moment, so if there's a post I've missed, sorry for the repetition)

Una

BlobFisk

1:34 pm on May 20, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi oona,

You may need to script this in your Flash movie and use the DOM to set the focus to the next element...

oona

1:40 pm on May 20, 2005 (gmt 0)

10+ Year Member



Hallo BlobFisk,
I presume you mean setting the TabIndex with AS instead of the accessibility panel -?

How do I use the DOM to switch to the next element?

Una

BlobFisk

3:12 pm on May 20, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi Oona,

You will need to use the fsCommand to run some Javascript from inside your Flash movie. In this case you may want to call a function that sets the focus to a specific field. So, you would create a JS function for your page that does this, something like:

Don't forget to add the swLiveConnect="true" parameter!

Macromedia Flash TechNote: [macromedia.com ]

A JS function to do this would look like:


function setFocus(elementID) {
document.getElementById(elementID).focus();
}

HTH

oona

3:25 pm on May 25, 2005 (gmt 0)

10+ Year Member



Hallo BlobFisk,
thanks for your help,sorry it's taken me so long to get back to this.

Oddly enough, when I removed the wmode transparent parameter from my object tag i had no problems tabbing from html through flash and on to the rest of html in explorer.

Mozilla though, is still causing some problems.
As I have no embed tag (for validation purposes - using the Flash Javay method) I suspect that this is where the problem lies and will be fiddling around with this inbetween times.

In the meantime thanks for your help,
any more suggestions as to where the problem might lie are very welcome!

Una

oona

3:58 pm on May 25, 2005 (gmt 0)

10+ Year Member



...another odd bug is that tabindex works when exporting as ActionScript 1.0 but not Action Script 2.0...