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]> 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.updateDisplayList(unscaledWidth, unscaledHeight);
   var labelAlign_str:String = getStyle("labelAlign");

   if (labelAlign_str == "left" && label.length)
   {
    var vm:EdgeMetrics = viewMetricsAndPadding;
    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 <[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.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