Groups | Blog | Home
all groups > flash actionscript > april 2004 >

flash actionscript : Tab Order on a MX04 Flash file


Paul Whitham
4/13/2004 8:25:12 PM
I have spent most the day trying to create an input form that would have
taken me 10 minutes to write in CFM, but I am determined to make it work.

The latest issue is that I can not get the flash to tab properly and hope
that someone can tell me what I am doing wrong.

The file is using forms with the following structure

Application
- display

On this sheet are 10 input fields each given a name. In the action script I
have written the following to try to bring focus to the first field

//set the initial focus
focusManager.setFocus(_root.application.display.firstName_ti);

and then have entries like this

_root.application.display.firstName_ti.tabEnabled =true;
_root.application.display.lastName_ti.tabEnabled =true;
_root.application.display.address_ti.tabEnabled =true;
_root.application.display.firstName_ti.tabIndex =1;
_root.application.display.lastName_ti.tabIndex =2;
_root.application.display.address_ti.tabIndex =3;

the problem is that they do not work. The firstbox does not get the focus
when the flash opens, and the tab key does not work at all.

The strange thing is that if this section of code is removed, the file will
allow tabbing but only between the first 3 boxes added to the file.

This is happening even when viewing the file in the browser.


--
regards

Paul Whitham
Valleybiz Internet Design
www.valleybiz.net

Team Macromedia Volunteer for Dreamweaver MX
www.macromedia.com/support/forums/team_macromedia/
Certified Dreamweaver MX2004 Professional


chuckvollmer NO[at]SPAM hotmail.com
4/29/2004 6:53:10 AM
Hi Paul,

I was wondering if you ever came up with a solution for this? I am
currently experiencing the same problem with tabIndex within a movie
clip. Any info you got on this one would be greatly appreciated.

Thanks,

Chuck Vollmer



[quoted text, click to view]
studio-playground.com
5/23/2004 4:39:38 AM
I think that TabManager Class is just buggy.
I have wasted alot of time on the same issue. The only thing I can find on it
that there may be a known issue when you do not place your componenets on the
_root timeline. If you do this, they generally should work (tab order I mean).

I cant get anyone from Macromedia to address this issue at all -
and in every forum there is silence on the issue. Its kinda spooky I think.

It has to improve.

AddThis Social Bookmark Button