One more note:

If you're using mx.controls.Button instead of the top-level Button
class, then ignore what I said. In that case, you might be calling
addEventListener before the component has run its own constructor. Do
some traces to see if that is the case. Where are the calling
createChildren() from. (And why is it called "createChildren" when
it's not actually creating anything? Why not "initChildren" or
something?)

On 12/19/06, T. Michael Keesey <[EMAIL PROTECTED]> wrote:
I'm assuming this is AS2. You should use mx.utils.Delegate, like so:

roomShape_btn.onRelease = Delegate.create(this, click);

The AS2 Button class is not part of the MX architecture. It doesn't
use the event dispatcher pattern.
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to