When you're assigning to catList, it's no longer the dataprovider for
courseCat, courseCat's provider is whatever catList *used* to be.

-J

On Thu, May 8, 2008 at 4:03 PM, hoytlee2000 <[EMAIL PROTECTED]> wrote:

>   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 [email protected] <flexcoders%40yahoogroups.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 [email protected] <flexcoders%40yahoogroups.com>, "Alex
> Harui" <aharui@> wrote:
> > >
> > > What is the code at courseInfo.mxml at line 299?
> > >
> > >
> > >
> > > ________________________________
> > >
> > > From: [email protected] <flexcoders%40yahoogroups.com>
> [mailto:[email protected] <flexcoders%40yahoogroups.com>] On
> > > Behalf Of hoytlee2000
> > > Sent: Wednesday, May 07, 2008 10:11 PM
> > > To: [email protected] <flexcoders%40yahoogroups.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]
> > >
> >
>
>  
>



-- 
"Therefore, send not to know For whom the bell tolls. It tolls for thee."

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]

Reply via email to