Hello Amy,

How could I "monkey patch" in Flex that I could use "self" in the brackets?

This is all I could think of but I don't know how I could use that in 
the Flex framework....
 UIComponent.prototype.self=function():UIComponent
 {
       return this;   
 }

If the solution is more trouble than what it's worth...them I'm just 
getting lazy. :)




-- Keith H --
www.keith-hair.net

Amy wrote:
>
> --- In [email protected] 
> <mailto:flexcoders%40yahoogroups.com>, Keith <[EMAIL PROTECTED]> wrote:
> >
> > Thanks Pat,
> > Sorry I used a bad example earlier, yes I could do that with events
> but
> > I meant like using it in other properties that
> > "event" is not available. .
> >
> > Here's a better example situation where I'd wish for a
> shortcut "self"
> > reference to each component.
> > For example if I wanted to assign the current component's height in a
> > Binding expression for the current component's width property.
> >
> > <mx:CheckBox width="{self.height}" />
>
> You could monkey patch UIComponent and give it a "me" property.
>
> :-)
>
>  


Reply via email to