thank u very much .

----- Original Message ----
From: Manu Dhanda <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Thursday, July 10, 2008 3:53:11 PM
Subject: Re: [flexcoders] (TabNavigator component )Error #1009Cannot access a 
property or method of a null object reference



Although I could not exactly understand like how you are proceeding with your
application. But as about this error, it is coming because you haven't
initialized something before you are trying to use it.
as in this case, 
this.day.title = "day schedule";
You might haven't initialized "this.day" to something(like new Date() or
whatever it is here) before using it in the above line.

Try to initialize it and then execute your application.

-Manu.

Ray Zhang wrote:
> 
> After the page is shown ,i have to do some logic handle (add ,edit) in the
> Panel week through popup a window.
> popup a window (PopUpManager. addPopUp)  in the  in the Panel week,and close
> the
> window (PopUpManager. removePopUp) .(Image 1,2  in the attach file)
> after that when I click the Panel day  , and it executes the code
> "this.day.title = "day schedule";"
> and then the following error happened.(Image  3  in the attach file)
> Error #1009Cannot access a property or method of a null object reference
> But I didn't popup  a window in Panel week , after the page is shown
> ,directy click the
> Panel day ,there isn't any error .
> BTW:i have set the creationPolicy= "all" property.
> does someone knows how to deal with the problem
> thank u!
> the relervent code is the following :
> <mx:TabNavigator id="tab" left="10" top="10" right="10" bottom="10"
> creationPolicy= "all" change="tabChange( event)" >
> <mx:Panel id="week" label="week" width="100%" height="100% " >
>     ............ .
> </mx:Panel>
> <mx:Panel id="day" label="day" width="100%" height="100% ">
> ....
> </mx:Panel>
> 
> 
> 
> 
> 
> 
> 

-- 
View this message in context: http://www.nabble. com/%28TabNaviga 
tor-component- -%29Error- -1009Cannot- access-a- property- or-method- 
of-a-null- object-reference -tp18376134p1837 6993.html
Sent from the FlexCoders mailing list archive at Nabble..com.

 


      

Reply via email to