Graphic primitives are more lightweight. Right?

Line is not really a replacement for HRule and VRule, because you need to add 
stroke every time you add one. That's at least four lines of mxml to one for 
HRule and VRule.

I think I'll work on this. It should be pretty easy…

On Feb 26, 2013, at 10:06 PM, Alex Harui wrote:

> 
> 
> 
> On 2/26/13 11:11 AM, "Harbs" <gavha...@gmail.com> wrote:
> 
>> While going through the mx components I'm trying to remove, I'm looking into
>> HRule and VRule.
>> 
>> For my purposes it's simple enough to just draw some lines, but I figured I'd
>> look into what's necessary to create Spark versions.
>> 
>> Looking at the HRule and VRule classes, it seems to me that all that's really
>> needed is to copy the mx components and just change the package to spark. 
>> It's
>> based on UIComponent which Spark components are also based on.
>> 
>> Am I missing something?
>> 
>> Also, is it really necessary to base HRule and VRule off UIComponent, that's 
>> a
>> lot of dependent code there for a very simple componentŠ
>> 
> Vrule and Hrule either have to be IUIComponents or be based of the graphic
> primitives like Line otherwise it may not work like you want in MXML.
> 
> -- 
> Alex Harui
> Flex SDK Team
> Adobe Systems, Inc.
> http://blogs.adobe.com/aharui
> 

Reply via email to