On 11/13/05, Manish Jethani <[EMAIL PROTECTED]> wrote:
On 11/14/05, Teoti Graphix <[EMAIL PROTECTED]> wrote:


I'm assuming you're creating a new component that has nothing to do
with HBox, because HBox already has the border functionality built in.
Or I'm assuming you're extending HBox but adding a new skin (not
border).

Either way...

Well, kind of. I understand why the Hbox only uses solid inset, outset because of the clip mask right? I think I tried setting the border to something else and the compiler threw an error. I am extending Hbox but, want a border that can be set to whatever borderStyle. The reason is the component I am making uses no clipMasking just the HBox sizing algorithm.

This is one thing that would be nice is a way to composite that algorithm so a Flex2 component dev could use the sizing algorithm without all the baggage of the Container class.  Or can you with a utility class already ?
 

The top-level class to use for creating programmatic skins is -- you
guessed it -- ProgrammaticSkin.  It implements the IFlexDisplayObject
interface.

Skins are not "content children" of a Container, so the way to add
these objects is to add them through the allChildrenList API.



allChildrenList.addChild()


Thanks! This is what I was missing. I did understand that adding a "border" was not a content child. As this goes for all new assets found within a container component.
 

Let me know if you have any quesitons.  Hope this helps!

It helped man! Thanks.
 

Manish


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to