Maybe this will help: http://www.eternaljourneys.com/FlexGallery/bin/main.html
--- In [email protected], "Tracy Spratt" <[EMAIL PROTECTED]> wrote: > > The error means that Flex can't find the goGetIt method on the variable > pImageList. That indicates to me that you may be instantiating the child > component dynamically. Is that so? If so, how are you typing the > variable? If not, how are you instantiating the component. Post the > mxml. > > > > Tracy > > ________________________________ > > From: [email protected] [mailto:[EMAIL PROTECTED] On > Behalf Of happy_christy01 > Sent: Tuesday, January 30, 2007 10:36 AM > To: [email protected] > Subject: [flexcoders] Re: Force HTTPService send() in child component > > > > This is the error I'm getting: > 1061: Call to a possibly undefined method goGetIt through a reference > with static type Class. > > The function from the parent: > private function sharedDataHandler(event:TextEvent):void { > sharedData = event.text; > if (sharedData.length != 0){ > pImageList.goGetIt();//the component name and function name > this.currentState = 'Preview'; > } > The child function: > public function goGetIt():void{ > mx.controls.Alert.show("You're Fired"); > //imgRequest.send(); > } > > --- In [email protected] <mailto:flexcoders%40yahoogroups.com> > , "Tracy Spratt" <tspratt@> wrote: > > > > Make sure the function definition in the child component is marked > > public. If it is you should have no problem calling it. Explicitly > > scope ALL functions. > > > > > > > > mychildComponent.myPublicfunction(event) > > > > Tracy > > >

