Yes, did it like this, works now. Thanks

--- In flexcoders@yahoogroups.com, Scott Melby <[EMAIL PROTECTED]> wrote:
>
> I'm going to guess that your problem is that you have declared 
> completeParameters() incorrectly (since it is private in your 
subclass 
> example).  You need to declare it as protected or public in the 
parent 
> class is order to allow subclasses to override it.  Note: it must 
be 
> declared in the parent class, even if it is has an empty 
implementation.
> 
> hth
> Scott
> 
> 
> Maciek Sakrejda wrote:
> >
> > 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 <http://www.truviso.com>
> >
> > -----Original Message-----
> > From: markgoldin_2000 <[EMAIL PROTECTED] 
> > <mailto:markgoldin_2000%40yahoo.com>>
> > Reply-To: flexcoders@yahoogroups.com <mailto:flexcoders%
40yahoogroups.com>
> > To: flexcoders@yahoogroups.com <mailto:flexcoders%
40yahoogroups.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 
> > <mailto:flexcoders%40yahoogroups.com>, Maciek Sakrejda 
<msakrejda@>
> > 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 <http://www.truviso.com>
> > >
> > > -----Original Message-----
> > > From: markgoldin_2000 <markgoldin_2000@>
> > > Reply-To: flexcoders@yahoogroups.com 
> > <mailto:flexcoders%40yahoogroups.com>
> > > To: flexcoders@yahoogroups.com <mailto:flexcoders%
40yahoogroups.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
> > >
> >
> >
>


Reply via email to