Tracy, my original message ( flexcoders message 149740 <http://tech.groups.yahoo.com/group/flexcoders/message/149740> ) showed all the code I thought to be pertinent.
I do think, though, that the problem might lie with the initialization of one or both of the functions in new mxml component, initCollections () or menuHandler(event:MenuEvent). When all the code was in my main.mxml it ran fine. When I placed the menubar code in its' own mxml component file and left the calls to initCollections() and menuHandler() in my creationComplete() function of my main.mxml file I received an 1080:Call to a possibly undefined function. When I commented these lines out and they were "called"(??) in the mxml component file I received a 1046 Error: Type was not found or was not a compile time constant. I am still very new at this. Any suggested reading would be greatly appreciated. I know I am bound to be committing some fundamental error. many thanks, Tex --- In [email protected], "Tracy Spratt" <tr...@...> wrote: > > You haven't shown us enough code to tell what is wrong. Are you running the > functions to initialize the dataProvider? > > > > Tracy Spratt, > > Lariat Services, development services available > > _____ > > From: [email protected] [mailto:[email protected]] On > Behalf Of tex_learning_flex > Sent: Sunday, November 15, 2009 3:04 PM > To: [email protected] > Subject: [SPAM] [flexcoders] Re: my first Custom Component is not working > > > > > > Alex, > > > > I mis-spoke -- when I said "button"... I meant "menubar" (it looks like a > button in design mode). > > > > Did you happen to see my later post? (Flexcoders > <http://tech.groups.yahoo.com/group/flexcoders/message/149756> message # > 149756) > > > > again, many thanks, > > > > Tex > > > > > > > --- In [email protected], Alex Harui aharui@ wrote: > > > > What is the Button supposed to do? How is it related to the MenuBar? > > > > Alex Harui > > Flex SDK Developer > > Adobe Systems Inc.<http://www.adobe.com/> > > Blog: http://blogs.adobe.com/aharui > > > > From: [email protected] [mailto:[email protected]] On > Behalf Of tex_learning_flex > > Sent: Saturday, November 14, 2009 4:34 PM > > To: [email protected] > > Subject: [flexcoders] Re: my first Custom Component is not working > > > > > > > > > > Alex, > > > > I'm not quite sure what to say... > > > > 1. I don''t receive any errors, > > > > 2. there is a button visually displayed, but it does nothing. > > > > thanks, > > > > Tex > > > > --- In [email protected]<mailto:flexcoders%40yahoogroups.com>, > Alex Harui aharui@ wrote: > > > > > > Please explain what errors you are getting or what isn't working. > > > > > > Alex Harui > > > Flex SDK Developer > > > Adobe Systems Inc.<http://www.adobe.com/> > > > Blog: http://blogs.adobe.com/aharui > > >

