Preface: I'm extending a RectBorder and am trying to paramterize the
coloring, etc., and have one problem with two ways to go about it --
neither of which I can figure out. In one sense this is a more general
problem...
Problem: In a programmatic skin I'm writing, I cannot get access to
the 'alpha' value of an object, say a VBox where I set the borderSkin
to my subclass. I *can* get access to "backgroundColor" thought, for
instance.
Proposal 1) When I need the value: getStyle("alpha") -- this always
returns 0. Or just saying `this.alpha' always returns 1. Regardless of
the value, it seems that if you set the alpha of a VBox, it applies it
to the skin anyway, whether you want to override the behavior or not.
Ugh.
Proposal 2) More generally, what if I want to instantiate my skin
subclass with a constructor -- not just the default constructor, but
including values like alpha and keeping them privately? Skins must
provide default constructors, otherwise they don't compile -- is there
a way to provide constructor arguments to a skin, and then use it? I
tried instantiating a skin like this, and passing the instance to
borderSkin, but it didn't do anything. (dataBinding would be an ideal
solution, so the skin gets redrawn).
Cheers,
Jono :~)
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/