So, it appears that if you apply the [Bindable] metadata to a
property, Flex inserts quite a bit of logic that may not be obvious
(and certainly doesn't appear to be documented). I haven't checked the
generated AS yet, but I get the impression it does these things for you:
- creates
: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of thirtyfivemph
Sent: Friday, April 25, 2008 9:51 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Bindable metadata too smart for its own good!
So, it appears that if you apply the [Bindable] metadata to a
property, Flex
[Bindable(someEvent)] then you can control what happens inside the setter.
Ah, so if specify the event name, then bindable truly is just
metadata, no code-generation, right? That sounds like the info I was
looking for...
Troy.
Ah, so if specify the event name, then bindable truly is just
metadata, no code-generation, right? That sounds like the info I was
looking for...
Which leads me to think, what exactly is bindable doing for me at that
point? If I'm firing the event (and thus creating it), is the metadata
you're telling the flash player when to fire bindings on the listeners for
your property. Sure, if you don't want to use their binding mechanism you
could hook it all up yourself, but you'd have to make all your classes
explicitly listen for the custom events you're firing. If you specify a
custom
.
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Troy Gilbert
Sent: Friday, April 25, 2008 10:36 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Bindable metadata too smart for its own good!
Ah, so if specify the event name, then bindable truly is just
In that case, the bindable(someEvent') tells the binding code which event
to listen for before updating anything depending on that property.
Gotcha. Good to know about the code generation.
Here's a question for ya:
If you let Flex fill-in all the binding code (if you don't specify an
event
You are correct.
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Troy Gilbert
Sent: Friday, April 25, 2008 1:44 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Bindable metadata too smart for its own good!
In that case
8 matches
Mail list logo