To clarify

catList is the dataprovider for a combobox whose id is courseCat.  So
I am reading in an xml file of course categories and then adding a
'None' choice to the list that will be its'default' selection.

thanks,
hoyt

--- In flexcoders@yahoogroups.com, "hoytlee2000" <[EMAIL PROTECTED]> wrote:
>
> private function configHandler(evt:ResultEvent):void {
>       catList = evt.result.config.categories.cat;                            
> catList.addItemAt('None', 0);                         
>         courseCat.selectedIndex = 0;
> }
> 
> 
> this is line 299:  courseCat.selectedIndex = 0;
> 
> 
> thanks,
> hoyt
> 
> --- In flexcoders@yahoogroups.com, "Alex Harui" <aharui@> wrote:
> >
> > What is the code at courseInfo.mxml at line 299?
> > 
> >  
> > 
> > ________________________________
> > 
> > From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On
> > Behalf Of hoytlee2000
> > Sent: Wednesday, May 07, 2008 10:11 PM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] need help deciphering error message
> > 
> >  
> > 
> > Hello,
> > 
> > I get the error message below when I am running my application,
> > however it runs fine when I click continue. There isn't an error when
> > I compile in Flex builder. I checked the function that references the
> > object and they are all defined and the objects exist.
> > 
> > The only thing I can think of is that the object that is referenced in
> > the function isn't displayed on the application startup (its on the
> > second canvas of a view stack) so it throws this error, however when I
> > move the call to the function to execute only when the second canvas
> > is displayed I still get the error.
> > 
> > I'm sure its a common error that many newbies must hit. I appreciate
> > any clues to look for in the code.
> > 
> > Thanks,
> > Hoyt
> > 
> > TypeError: Error #1009: Cannot access a property or method of a null
> > object reference.
> > 
> > at
> >
courseInfo/configHandler()[/Users/hoytng/Sites/pdiCMS/CourseMgmtSystem/c
> > ourseInfo/src/courseInfo.mxml:299]
> > at
> >
courseInfo/__courseCatHTTP_result()[/Users/hoytng/Sites/pdiCMS/CourseMgm
> > tSystem/courseInfo/src/courseInfo.mxml:429]
> >
>


Reply via email to