Skip to main content
October 2, 2008
Question

Tab index throwing an error

  • October 2, 2008
  • 21 replies
  • 1575 views
I'm getting an error on a form when I press tab. The error is Error #2025: The supplied DisplayObject must be a child of the caller. It does not show an error when I test movie on my local machine. Only when it is uploaded.

I have a main movie which loads an swf. The loaded swf has a form when the user enters data like first name, last name, etc. I get the error when I press tab to go to the next field.

Any ideas? Thanks.
This topic has been closed for replies.

21 replies

kglad
Community Expert
Community Expert
October 6, 2008
click on the publish settings, flash and tick permit debugging. retest and see if you get a line number containing the error.
October 6, 2008
ok I have been commenting out parts and trying to pinpoint it. Sucks that I can't just target the line of code. The debugger says there is no source. Also, if i click on all the buttons in the movie and then go to the order mc it tabs without an error. Getting closer but still haven't targeted what it is.
kglad
Community Expert
Community Expert
October 6, 2008
start commenting out parts of your code to pinpoint the code that causes the problem.
October 6, 2008
I've tried to tabEnable= false everything and that didn't do it either.
October 6, 2008
removed all the components and replaced the text input component fields with regular textinput fields. no such luck. still getting the same error. It triggers the error as soon as I press tab. I don't have to be on the error form.
kglad
Community Expert
Community Expert
October 6, 2008
remove the components and see if the problem resolves.
October 6, 2008
ok here is something else that is wierd. In test movie, when I tab the textinput fields to the combobox, it stops tabbing. If I continue to press tab, it begins tabbing my layers in the flash authoring environment.
October 6, 2008
ok here is the code that is inside the OrderNow_mc. It is not very pretty but it is functional.
October 6, 2008
ok here is something else that is wierd. In test movie, when I tab the textinput fields to the combobox, it stops tabbing. If I continue to press tab, it begins tabbing my layers in the flash authoring environment.
October 6, 2008
yes the textinput, the combobox, and the checkbox. Now that I have moved around some code. Just organizing my layers and such. When I publish, it still throws an error but now the tabbing goes from the first text input to an error. Then I press dismiss all and it tabs to the address bar of internet explorer. Before it would dismiss and tab the textfields correctly. Strange.

I'm looking into the try/catch/finally statement to possibly handle the error. I may put the code online in a bit to see if you might see the code error. It's not the prettiest code. But you may spot it easily. Thanks for your assistance.
kglad
Community Expert
Community Expert
October 6, 2008
do you have any components in your test fla?