TypeError: Error #1009: Issue
I placed a TabNavigator with 2 tabs, labeled Main, Line1.
On the main page I have several TextInput boxes, I also have TextInput boxes
on the Line1 page as well.
I have a created a public function called "public function
Line1Refresh():void". In there all I do is initialize the TextInput boxes with
default values until it can connect to my sever and get the real data.
I.E. L1.text= "Please Wait";
In the parameters for Line1, I have added the "Line1RefreshI();" call to the
Creation Complete option so that when the page is done rendering, it will call
this function and fill in the blanks.
I have the same for the Main page as well initializing the TextInputs on that
page as well.
OK..... Now for the problem.....
When the Main page is finished rendering and it called MainRefresh(); I
initialize the TextInputs in there with no problems.
All worked fine until I decided to also initialize the TextInput fields in the
Line1 page.
When I did that I got a :
TypeError: Error #1009: Cannot access a property or method of a null object
reference.
at Index/ParseReceivedData()[G:\Flex3\Index\src\Index.mxml:412]
at Index/onData()[G:\Flex3\Index\src\Index.mxml:170]
Anyone know what's the deal here, why I cannot access items on a different
page ?
|