Great! Thanks, Alex!

The trick was to understand the setters/getters format (I am new to Flash)
The name of the property should be __something (two underscores), then
setter will just
function set something()

Cheers,
Dmitri.





--- In [email protected], "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> You might be better off writing a setter function and using
> [Bindable("someEvent")].  That's how virtually every property in the
> framework is implemented.
> 
>  
> 
> ________________________________
> 
> From: [email protected] [mailto:[EMAIL PROTECTED] On
> Behalf Of Dmitri Girski
> Sent: Thursday, March 13, 2008 12:18 PM
> To: [email protected]
> Subject: [flexcoders] Re: Flash component in Flex
> 
>  
> 
> Thanks Alex!
> I did and it kind of works there. But I am trying to implement a
> behavioursimilar to RadioButton, when you set a property selected =
> true from Flex, component should catch this event and change its
> state, but I can't find anything similar to PropertyChange event to
> listen to. 
> 
> Dmitri.
> 
> --- In [email protected] <mailto:flexcoders%40yahoogroups.com>
> , "Alex Harui" <aharui@> wrote:
> >
> > As long as you've put [Bindable] metadata on the properties.
> > 
> > 
> > 
> > ________________________________
> > 
> > From: [email protected] <mailto:flexcoders%40yahoogroups.com>
> [mailto:[email protected] <mailto:flexcoders%40yahoogroups.com>
> ] On
> > Behalf Of Dmitri Girski
> > Sent: Thursday, March 13, 2008 8:59 AM
> > To: [email protected] <mailto:flexcoders%40yahoogroups.com> 
> > Subject: [flexcoders] Flash component in Flex
> > 
> > 
> > 
> > Hi folks,
> > 
> > I've created a component in Flash CS3 using Flex Component Kit and I
> > am wondering - is it possible to use data binding to component
> > internal variables?
> > 
> > I.e. if I draw a custom radio button in Flash and I want to have
> > similar functionality as Flex RadioButton has - 
> > 
> > <mx:RadioButton
> > selected="{something-something}" />
> > 
> > Thanks!
> > 
> > Dmitri.
> >
>


Reply via email to