Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

inporting swf, input text, btns TabIndex "hopping out/ignoring"

Status
Not open for further replies.

Curisco

Programmer
Feb 6, 2002
90
SE
After spending many moons searching for an answer i seem to be missing something...

Howdy folks,
The situation is this, I have quite a large movie where i have a contact btn

navContact_btn.onPress=function()

whith this btn among other things i "loadMovie"

_root.mail_mc.loadMovie("mail.swf",1)


Now mail.swf contains a "form" made of 4 InputText fields and 3 btns. This mail.swf contains the following code:

selection.setFocus("namn");
namn.tabIndex = 0;
tele.tabIndex = 1;
mail.tabIndex = 2;
note.tabIndex = 3;
clear_btn.tabIndex = 4;
close_btn.tabIndex = 5;
ok_btn.tabIndex = 6;
stop ();

Apart from close_btn and ok_btn this code works...!?!

when i call this movie(mail.swf) using navContact_btn the Tab index starts behaving ...can i say globally?

selection.setFocus is the start point as expected then after pressing the tab it jumps out of the imported swf and on each consecutive press it tabs through the whole page quite erratically.

So if you understand what i have done then hopefully you can see my problem, which is two fold
1: why does the mail.swf code stop working after reaching the first btn?
2: why does the mail.swf lose focus after the fist tab press when loaded into the main movie?


navContact_btn.onPress=function()
{
_root.arrow_mc.gotoAndStop(1);
_root.fade_mc.loadMovie("fadeIt.swf");
_root.gbHeading_mc.gotoAndStop(1);
_root.guestbook_mc.unloadMovie("guestbook.swf");
_root.imageLinks_mc.gotoAndStop(2);
_root.catogery_mc.gotoAndStop(4);

_root.mail_mc.loadMovie("mail.swf",1) // Spaced out for easy reading

_root.slide_mc.gotoAndStop(1);
_root.inMotionSlide_mc.gotoAndStop(1);
_root.members_mc.gotoAndStop(1);
_root.ctaBg_mc.gotoAndStop(1);

showUrl = 0;
}

I have a "working" link if it helps here: just click contact and try to tab through.

i have seen similar problems but none regarding inporting swf's and i am not using combo boxes or components of any kind here.

Thanks for your time and help if any
What more can i say apart from thanks again

/Ramsey

-------------------------------------
Laughing out loud every day,
keeps the doctor away....
Question is ...What's so funny?
-------------------------------------
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top