[flexcoders] Re: How can I test a UIComponent to see if it is user editable?

2007-02-07 Thread gotgoose09
OK, that'll work, but I'll have to add new components I make to the list each time. Oh well... :/ --- In flexcoders@yahoogroups.com, dougmccune [EMAIL PROTECTED] wrote: I don't think there's a good answer to this question. There's no way to figure out via AS whether a component MIGHT dispatch

Re: [flexcoders] Re: How can I test a UIComponent to see if it is user editable?

2007-02-06 Thread Ralf Bokelberg
I guess the only way to do it reliable is to ask for the type. You can use if( X instanceof Y) for example Cheers, Ralf. On 2/6/07, gotgoose09 [EMAIL PROTECTED] wrote: No one has done type checking like this before? If not, oh well. :) --- In flexcoders@yahoogroups.com

[flexcoders] Re: How can I test a UIComponent to see if it is user editable?

2007-02-06 Thread dougmccune
I don't think there's a good answer to this question. There's no way to figure out via AS whether a component MIGHT dispatch a given event. I did a search on livedocs to try to find all classes that dispatch a change event. This only seems to include base classes, so subclasses of any of these