Sorry mate, I didn't see the last part of your initial post where you
mention the styles. You're correct in that there is no public
properties that you can access to directly set these values so it's
best to use getStyle/setStyle. That way (in)validation, updating of
the display list, etc., is handled for you. Otherwise you'd have to
override updateDisplayList at the very least to achieve the same result.

I'm using Flex Builder 3 beta 3 now so I can't verify but you should
be able to see the values for these styles change in your MXML code by
switching between Source and Design views as you move these anchors.

Cheers,
Daz.

 --- In [email protected], "Josh McDonald" <[EMAIL PROTECTED]> wrote:
>
> Well that was the question. I knew they existed in styles, I just didn't
> know whether or not that was the mechanism used when you anchor
stuff from
> MXML, and I guess now I do :)
> 
> -Josh
> 
> On Feb 11, 2008 1:38 PM, dazweeja <[EMAIL PROTECTED]> wrote:
> 
> >   "left" and "right" are *styles* of UIComponent and all subclasses -
> > not *properties* - so really nothing funky happenin' here ;)
> >
> > You can use getStyle and setStyle if you want to access/change them
> > dynamically.
> >
> >
> > --- In [email protected] <flexcoders%40yahoogroups.com>,
"Josh
> > McDonald" <dznuts@> wrote:
> > >
> > > Well, when I have left="20" and right="20" defined in the MXML for a
> > > component, it's doing something funky, as they're not properties
of the
> > > Component objects, and I'm just trying to figure out exactly what
> > it's doing
> > > so I can replicate it in the most efficient way possible. I'm sure
> > there's a
> > > better way to express what I'm interested in than simply "anchor
> > system",
> > > but I can't really think of it :)
> > >
> > > -Josh
> > >
> > > On Feb 9, 2008 5:03 AM, Tracy Spratt <tspratt@> wrote:
> > >
> > > > What do you mean by "anchor system"?
> > > >
> > > > Tracy
> > > >
> > > >
> > > > ------------------------------
> > > >
> > > > *From:* [email protected] <flexcoders%40yahoogroups.com>
> > [mailto:[email protected] <flexcoders%40yahoogroups.com>] *On
> > > > Behalf Of *Josh McDonald
> > > > *Sent:* Thursday, February 07, 2008 8:54 PM
> > > > *To:* [email protected] <flexcoders%40yahoogroups.com>
> > > > *Subject:* [flexcoders] Shortcut to generate bindings for
left="foo"
> > > > right="foo" etc? Or styles?
> > > >
> > > >
> > > >
> > > > Hi guys,
> > > >
> > > > Is there some sort of shortcut method to programmatically
generate the
> > > > bindings to emulate the anchor system that you have access to when
> > you're
> > > > defining your GUI in MXML? If not, what exactly does the MXML->AS
> > compiler
> > > > generate? I'd like to be doing things "the right way".
> > > >
> > > > Or, is it simply done with styles?
> > > >
> > > > -Josh
> > > >
> > > > --
> > > > "Good people will do good things, and bad people will do bad
> > things. But
> > > > for good people to do bad things—that takes religion."
> > > >
> > > > :: Josh 'G-Funk' McDonald
> > > > :: 0437 221 380 :: josh@
> > > >
> > > >
> > >
> > >
> > >
> > > --
> > > "Good people will do good things, and bad people will do bad things.
> > But for
> > > good people to do bad things—that takes religion."
> > >
> > > :: Josh 'G-Funk' McDonald
> > > :: 0437 221 380 :: josh@
> > >
> >
> >  
> >
> 
> 
> 
> -- 
> "Good people will do good things, and bad people will do bad things.
But for
> good people to do bad things—that takes religion."
> 
> :: Josh 'G-Funk' McDonald
> :: 0437 221 380 :: [EMAIL PROTECTED]
>


Reply via email to