FocusOut may be too late.  There is an ITEM_EDIT_END event you should be
using instead, and I think it also matters when the property specified as
the editorProperty is saved away.

-Alex

On 1/30/14 10:14 AM, "jfb" <[email protected]> wrote:

>I cannot fin explanation why my overrride focus out function is not
>working.
>I try text.replace(',','') but it doesn't work. Maybe because i am using
>the
>latest SDK?
>Any ideas?
>Thanks
>
>override protected function focusOutHandler(event:FocusEvent):void
>                        {
>                                //Check if the source is blank
>                                if (event.target.text != ""){
>                                        _realValue =
>Number(text.replace(',',''));
>                                        //Update component text value
>                                }else{
>                                        //Update component text value
>                                        _realValue = 0;
>                                }
>                                super.text =  formatDecimal(_realValue);
>                        }
>
>
>
>--
>View this message in context:
>http://apache-flex-users.2333346.n4.nabble.com/ADG-with-item-renderers-tp4
>626p4703.html
>Sent from the Apache Flex Users mailing list archive at Nabble.com.

Reply via email to