I figured it out. "try and catch" are my friends.
It was a undefined property.

Sorry for the brain fart.


--Keith H--

----- Original Message -----


> Is there any "gotchas" to cause a MouseEvent.CLICK to not respond?
> 
> I've got other MouseEvents to work but not CLICK on UITextField.
> //=============================================
> 
> import mx.events.MenuEvent;
> import flash.events.*;
> 
> private function initApp():void
> {
> 
> var tf:UITextField=new UITextField();
> tf.autoSize="left";
> tf.text="This is my Text";
> app_panel.addChild(tf);
> 
> function singleClick():void
> {
> tf.background=true;
> tf.backgroundColor=0x00FF00;
> }
> tf.addEventListener(MouseEvent.Click,singleClick);
> 
> }
> 
> //=========================================
> 
> --Keith H--
> 
_______________________________________________
Flashcoders@chattyfig.figleaf.com
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