It is more likely Firefox bug. Are you using this browser? Because the
described behavior is reproducible in Firefox but not in IE. Try to search
older posts in list seems to me that I saw this problem being discussed
here.

R.

On 1/17/07, eren bali <[EMAIL PROTECTED]> wrote:

  Hi to all,

I have a couple of textinputs that all have focusIn and focusOut
listeners.
One of these tese inputs open a file reference (FileReference.browse)
When you press cancel in file explorer dialog, it closes silently. But
when i click another textinput, two focusIn events are disparchet together,
one for the old textinput one for the recently clicked textinput.

Below is a code to demonstrate the issue.
Just click 1st textinput, than 3rd one. Close the dialog with "cancel"
button, than click the first textinput.
log variable was expected to be:
Laga Luga
Browse
Laga Luga

However it is:
Laga Luga
Browse
Browse
Laga Luga

--
Eren BALİ

=====================================================================

<?xml version=" 1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";
layout="vertical">
    <mx:Script>
        <![CDATA[
            import mx.controls.Alert;
            import mx.controls.Text;
            [Bindable]
            private var log:String="";
            private var fr:FileReference=new FileReference;
            private function focusIn(event:FocusEvent):void{
                log+="\n"+event.currentTarget.text;
                if(event.currentTarget==tiGozat){
                    fr.browse();
                }
            }
        ]]>
    </mx:Script>
    <mx:TextInput text="Laga Luga" focusIn="focusIn(event)" />
    <mx:TextInput text="Laga Luga2" focusIn="focusIn(event)" />
    <mx:TextInput id="tiGozat" text="Browse" focusIn="focusIn(event)" />
    <mx:Text width="300" text="{log}" />
</mx:Application>

Reply via email to