When you do it in MXML, the compiler creates a throwaway function (not sure
if it's anonymous or it just makes up a name, probably the latter), and so
you can't easily get a reference to that function in order to mess with it
or remove it.

-J

On Mon, Apr 21, 2008 at 1:20 PM, Sherif Abdou <[EMAIL PROTECTED]> wrote:

>   you can not and you cant use removeEventListener on mxml either
>
> ----- Original Message ----
> From: luke_lee1124 <[EMAIL PROTECTED]>
> To: flexcoders@yahoogroups.com
> Sent: Sunday, April 20, 2008 10:08:36 PM
> Subject: [flexcoders] what is the defference between addeventlistener and
> hardcode it at mxml
>
>  let us see one row
> textInput.addEventL istener(’change’, do_change);
>
> another row
> <mx:TextInput change="do_change" />
>
> what is the defference?
> using addEventListener, i can using weak references, how can i use
> weak references in mxml?
>
> Thanks
>
>
>
> ------------------------------
> Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it
> now.<http://us.rd.yahoo.com/evt=51733/*http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ>
> 
>



-- 
"Therefore, send not to know For whom the bell tolls. It tolls for thee."

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]

Reply via email to