At one point in my Flex application, when I create a new
container/button/whatever and give it an ID, and then use that ID
later on in some function, Flex gives me 1120 error and says that
that ID is undefined.
All the ID:s that I created before this 'one point' are
e.g. I have a textinput with ID="test".
Then I have a function that uses test.text value to
something. Works fine.
Then after the problem occurred, I create another textinput
with ID="test2" in the same place. And try to access test2.text
-value – again at the same place where the first one was
working – and flex makes an error that says test2 is
Even thou, everything works still, the function gets access
to test2.text value and nothing is wrong. Put it's frusthrating to
have 40 good-for-nothing error and then when there is a real error,
it's a pain in the *** trying to find it.
This is Flex builder 3, and i remember that my Flex builder 2
did the same thing with some project.
In my form I have to identical combobox, with different ID:s.
First one is made earlier and is not giving any errors. Second one
gives the 1120 error. I access the comboboxes in a function that is
called when form button is pressed.
And like I said, all works fine, except these stupid error
Strange. It only occured in two different .as -files that I
included in the beginning of the application. When I made a copies
of the two problem files with a different names and included them
instead of the problematic ones, errors disappeared! Yay.
Still it would be nice to know why the errors were there at
the first point :)