Ok, what's the context here? If this is the error, it could be that you're not defining the method in the parent form. This is true even if the method doesn't do anything and *must* be overridden in child forms--most object-oriented languages provide the 'abstract' keyword to ensure this, but ActionScript doesn't. Then specify the 'override' keyword on child forms as I mentioned before.
If this still isn't it, can you please post the parent and child forms for context? -- Maciek Sakrejda Truviso, Inc. http://www.truviso.com -----Original Message----- From: markgoldin_2000 <[EMAIL PROTECTED]> Reply-To: flexcoders@yahoogroups.com To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Prototyping a form Date: Thu, 02 Oct 2008 21:15:48 -0000 1180: Call to a possibly undefined method completeParameters. --- In flexcoders@yahoogroups.com, Maciek Sakrejda <[EMAIL PROTECTED]> wrote: > > It's possible if you tell us the compilation errors you're hitting. > However, in this case, you're probably hitting something telling you > that you can't override something not marked for override, so you need > to add the 'override' keyword to the completeParameters() function > definition. > > -- > Maciek Sakrejda > Truviso, Inc. > http://www.truviso.com > > -----Original Message----- > From: markgoldin_2000 <[EMAIL PROTECTED]> > Reply-To: flexcoders@yahoogroups.com > To: flexcoders@yahoogroups.com > Subject: [flexcoders] Prototyping a form > Date: Thu, 02 Oct 2008 20:41:15 -0000 > > Lets' say I want all my forms to be based on same form. Base form > would have just a push button. A click of this button might look like > this: > > runButton.addEventListener("click", handleClick); > private function handleClick(e:MouseEvent):void > { > completeParameters(); > mainApp.reportArea.source = runStrng; > } > > I am subclassing main form in mxml. That might look like this: > .... > <mx:Script> > <![CDATA[ > private function completeParameters():void > { > runStrng = runStrng + sku.text; > } > ]]> > </mx:Script> > ... > > It fails at completeParameters(); during compilation. > Is it possible to have such design working? > > Thanks >