Groups | Blog | Home
all groups > flash (macromedia) > april 2007 >

flash (macromedia) : Strange behaviour with tabIndex in movie clips


Outside5.com
4/1/2007 8:49:42 PM
Hi all,

I have a flash form set up as follows on frame 1 of my movie:

textInput (t1)
comboBox (t2)
comboBox (t3)
textInput (t4)
textInput (t5)
textInput (t6)
-movieClip (mc_additional)
-textInput (t7)
-textInput (t8)
--movieClip (mc_more)
--textInput (t9)
--textInput (t10)
-textInput (t11)
-textInput (t12)
-textInput (t13)

and the following script, also on frame 1:
mc_additional.tabChildren = true;
mc_additional.tabEnabled = true;
mc_additional.mc_more.tabChildren = true;
mc_additional.mc_more.tabEnabled = true;
t1.tabIndex = 1;
t2.tabIndex = 2;
t3.tabIndex = 3;
t4.tabIndex = 4;
t5.tabIndex = 5;
t6.tabIndex = 6;
mc_additional.t7.tabIndex = 7;
mc_additional.t8.tabIndex = 8;
mc_additional.mc_more.t9.tabIndex = 9;
mc_additional.mc_more.t10.tabIndex = 10;
mc_additional.t11.tabIndex = 11;
mc_additional.t12.tabIndex = 12;
mc_additional.t13.tabIndex = 13;
stop();

If I replace textInput (t11) with a comboBox, and give it an instance name of
t11 the tabIndex ends at t11.

If I replace textInput (t4) with a comboBox, and give it an instance name of
t4 the tabIndex continues as expected.

It only seems to affect the tabIndex if it is contained in a movie clip.

Am I missing something here?

Thanks in advance,
Paul

Using Flash 8

http://www.outside5.com/tabTest.fla
Outside5.com
4/2/2007 12:00:00 AM
Any ideas anyone?

This is causing me real problems on a site due to go live.

Thanks,
Outside5.com
4/2/2007 1:50:58 PM
All fixed,

I removed

mc_additional.tabEnabled = true;
and
mc_additional.mc_more.tabEnabled = true;

AddThis Social Bookmark Button