I have tried...

Remeber FLex Builder is in 2.0 actual 1.0. There are a lot of rough spots
and design view is far from perfect.

There is no way to subclasss for stuff and keep the tricks going.

This is hardcoded into FlexBuilders code.

Would like to learn how to extend it though.

Peace, MIke

On 13 Mar 2007 04:26:19 -0700, Sean Sell <[EMAIL PROTECTED]> wrote:

  To the adobe developers,

I have found that I can extend the simpler display classes without much
issue, I have really only had issues with sub-classing the Form based
components. For our project (and probably many Flex projects) the form
concept is a strong one and the ability for designers to layout input
screens very quickly with Form,  FormItem and FormHeader is fantastic. I
want to extend these classes primarily to preserve the integration with Flex
Builder. Maybe trying to make these classes infinitely extensible is the
incorrect approach. Maybe a tool that would allow me to integrate my
components more tightly in Flex Builder would be a better solution.

Specifically when someone drags an NForm on the page I want flex builder
to automatically wrap other components in an NFormItem etc.

--Sean

----- Original Message ----
From: Michael Schmalle <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Tuesday, March 13, 2007 6:42:00 AM
Subject: Re: [flexcoders] Re: Are other developers hesitant to extend
existing classes in Flex?

 > However, the indicator is added as a child to rawChildren, which is
public. This means you could reach it without problems.

No, that is not true. You know why? They didn't name it! That should be a
requirement of all composites Aodbe people.

You need to name every instance, this way if us devs do want access to it
we can get it.

EECOLOR, as far as the indicator, you would have to call getStyle(),
create the class instance, loop through all the rawChildren and do an is
comparison. This is just to get a reference, it sucks.

But, Is possible through that hack, I haven't tried it though.

Peace, Mike

On 13 Mar 2007 03:10:38 -0700, EECOLOR < [EMAIL PROTECTED] com<[EMAIL 
PROTECTED]>>
wrote:
>
>   I ran into the same problem when i wanted to align the label to the
> left. However, i found that there is a reference to the label in the
> mx_internal namespace.
>
>   override protected function updateDisplayList( unscaledWidth: Number,
> unscaledHeight: Number):void
>   {
>    super.updateDisplay List(unscaledWid th, unscaledHeight) ;
>    var labelAlign_str: String = getStyle("labelAlign");
>
>    if (labelAlign_ str == "left" && label.length)
>    {
>     var vm:EdgeMetrics = viewMetricsAndPaddi ng;
>     var labelObject: UIComponent = mx_internal: :labelObject as
> UIComponent;
>      labelObject. move(vm.left, labelObject. y);
>    };
>   };
>
> This however does not work for you, since there is no equivalant for the
> indicator. However, the indicator is added as a child to rawChildren, which
> is public. This means you could reach it without problems.
>
>
> Greetz Erik
>
>
>
> On 3/12/07, Sean Sell <rough68fish@ yahoo.com <[EMAIL PROTECTED]>>
> wrote:
> >
> >    Alex,
> >
> > I understand exactly what you mean about testing requirements for
> > public method and I can really only speak to the FormItem class, but here's
> > my experience.. .
> >
> > The first thing I wanted to do was change where the required field
> > asterisk is displayed; and put it in front of the label. No big deal right.
> > To do it all I need to do is override updateDisplayList
> > and move:
> >
> > // Position the "required" indicator.
> >             displayIndicator( left, y);
> >             left += indicatorGap;
> >
> > above
> >
> > // Position our label.
> >             if (labelObj)
> >             {...
> >
> > But there are calls to about 16 private methods or values within this
> > function which I would have to re-write to make this work. Ironically I
> > think all of those would work as written if I could just call them.
> >
> > --Sean
> >
> >
> >  Recent Activity
> >
> >    -  130
> >     New 
Members<http://groups.yahoo.com/group/flexcoders/members;_ylc=X3oDMTJncGkyb2cwBF9TAzk3MzU5NzE0BGdycElkAzEyMjg2MTY3BGdycHNwSWQDMTcwNTAwNzIwNwRzZWMDdnRsBHNsawN2bWJycwRzdGltZQMxMTczNzMxNjY2>
> >
> > Visit Your Group
> > 
<http://groups.yahoo.com/group/flexcoders;_ylc=X3oDMTJmM3ExYWtrBF9TAzk3MzU5NzE0BGdycElkAzEyMjg2MTY3BGdycHNwSWQDMTcwNTAwNzIwNwRzZWMDdnRsBHNsawN2Z2hwBHN0aW1lAzExNzM3MzE2NjY->
> > SPONSORED LINKS
> >
> >    - Software development 
tool<http://groups.yahoo.com/gads;_ylc=X3oDMTJkNzE5bm5nBF9TAzk3MzU5NzE0BF9wAzEEZ3JwSWQDMTIyODYxNjcEZ3Jwc3BJZAMxNzA1MDA3MjA3BHNlYwNzbG1vZARzdGltZQMxMTczNzMxNjY2?t=ms&k=Software+development+tool&w1=Software+development+tool&w2=Software+development&w3=Software+development+services&w4=Home+design+software&w5=Software+development+company&c=5&s=152&g=2&.sig=-g7I-F8ruxPL8no8ZFAx0w>
> >    - Software 
development<http://groups.yahoo.com/gads;_ylc=X3oDMTJkNW4ybGRrBF9TAzk3MzU5NzE0BF9wAzIEZ3JwSWQDMTIyODYxNjcEZ3Jwc3BJZAMxNzA1MDA3MjA3BHNlYwNzbG1vZARzdGltZQMxMTczNzMxNjY2?t=ms&k=Software+development&w1=Software+development+tool&w2=Software+development&w3=Software+development+services&w4=Home+design+software&w5=Software+development+company&c=5&s=152&g=2&.sig=gr9mtAoKFJnQF06zjx1waw>
> >    - Software development 
services<http://groups.yahoo.com/gads;_ylc=X3oDMTJkM21tYTkzBF9TAzk3MzU5NzE0BF9wAzMEZ3JwSWQDMTIyODYxNjcEZ3Jwc3BJZAMxNzA1MDA3MjA3BHNlYwNzbG1vZARzdGltZQMxMTczNzMxNjY2?t=ms&k=Software+development+services&w1=Software+development+tool&w2=Software+development&w3=Software+development+services&w4=Home+design+software&w5=Software+development+company&c=5&s=152&g=2&.sig=ntjRNxtOdZ_jUSLfJPIkiw>
> >    - Home design 
software<http://groups.yahoo.com/gads;_ylc=X3oDMTJkbXJuaWdxBF9TAzk3MzU5NzE0BF9wAzQEZ3JwSWQDMTIyODYxNjcEZ3Jwc3BJZAMxNzA1MDA3MjA3BHNlYwNzbG1vZARzdGltZQMxMTczNzMxNjY2?t=ms&k=Home+design+software&w1=Software+development+tool&w2=Software+development&w3=Software+development+services&w4=Home+design+software&w5=Software+development+company&c=5&s=152&g=2&.sig=UKtw8jm7fEaJty2hcCVyFg>
> >    - Software development 
company<http://groups.yahoo.com/gads;_ylc=X3oDMTJkMDVhdDIyBF9TAzk3MzU5NzE0BF9wAzUEZ3JwSWQDMTIyODYxNjcEZ3Jwc3BJZAMxNzA1MDA3MjA3BHNlYwNzbG1vZARzdGltZQMxMTczNzMxNjY2?t=ms&k=Software+development+company&w1=Software+development+tool&w2=Software+development&w3=Software+development+services&w4=Home+design+software&w5=Software+development+company&c=5&s=152&g=2&.sig=v7C6JKvvBLf0I6WC1FPTvA>
> >
> >  Cool Websites
> >
> > Know a good 
site?<http://us.ard.yahoo.com/SIG=12j75jg7b/M=493064.10322723.10977639.9706567/D=groups/S=1705007207:NC/Y=YAHOO/EXP=1173738866/A=4438988/R=0/SIG=111nufaaj/*http://www.bix.com/contest/4746>
> >
> > Share and vote
> >
> > on Bix.com <http://bix.com/>!
> >  Y! Toolbar
> >
> > Get it 
Free!<http://us.lrd.yahoo.com/_ylc=X3oDMTJwbHFkZTUwBF9TAzk3MzU5NzE0BF9wAzIEZ3JwSWQDMTIyODYxNjcEZ3Jwc3BJZAMxNzA1MDA3MjA3BHNlYwNuY21vZARzbGsDdG9vbGJhcgRzdGltZQMxMTczNzMxNjY2;_ylg=1/SIG=11c6dvmk9/**http%3A//toolbar.yahoo.com/%3F.cpdl=ygrps>
> >
> > easy 1-click access
> >
> > to your groups.
> >  Yahoo! Groups
> >
> > Start a 
group<http://groups.yahoo.com/start;_ylc=X3oDMTJwc2Y2bWdwBF9TAzk3MzU5NzE0BF9wAzMEZ3JwSWQDMTIyODYxNjcEZ3Jwc3BJZAMxNzA1MDA3MjA3BHNlYwNuY21vZARzbGsDZ3JvdXBzMgRzdGltZQMxMTczNzMxNjY2>
> >
> > in 3 easy steps.
> >
> > Connect with others.
> > .
> >
> >
>


--
Teoti Graphix
http://www.teotigra phix.com <http://www.teotigraphix.com>

Blog - Flex2Components
http://www.flex2com ponents.com <http://www.flex2components.com>

You can find more by solving the problem then by 'asking the question'.


------------------------------
Don't pick lemons.
See all the new 2007 
cars<http://autos.yahoo.com/new_cars.html;_ylc=X3oDMTE0OGRsc3F2BF9TAzk3MTA3MDc2BHNlYwNtYWlsdGFncwRzbGsDbmV3Y2Fycw-->at
 Yahoo!
Autos.<http://autos.yahoo.com/new_cars.html;_ylc=X3oDMTE0OGRsc3F2BF9TAzk3MTA3MDc2BHNlYwNtYWlsdGFncwRzbGsDbmV3Y2Fycw-->




--
Teoti Graphix
http://www.teotigraphix.com

Blog - Flex2Components
http://www.flex2components.com

You can find more by solving the problem then by 'asking the question'.

Reply via email to