Hi,

Since you are instantiating the component in an Application, the scope is off,

<comp:TimeText id="tt" change="processTime (event)" />

needs to be

<comp:TimeText id="tt" change="tt.processTime (event)" />

I know that isnt what you wanted to here but the scope always refers to the application everywhere except a component tag.

Why don't you add a listener in you custom component say in createChilren()

IE

override proected function createChildren():void
{
   super.createChildren();
   addEventListener(Event.CHANGE, processTime, false, 0, true);
}


Peace, Mike

On 10/3/06, boy_trike <[EMAIL PROTECTED]> wrote:

in my application, i am asking for time input in many places. right now I have a
change="processTime( event)" in the text input of each time variable. (my process time
parses the input". Of course, this requires that I import the ProcessTime function into each
component that uses it. I created a new component called TimeInput based on textInput and
added a public function processTime.

When I try to use this component i.e.
<comp:TimeText id="tt" change="processTime (event)" />

I get the error "call to possibly undefined method"

Help

Thanks
Bruce




--
What goes up, does come down. __._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Software development tool Software development Software development services
Home design software Software development company

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

Reply via email to