Hi Brian,

2. ...

If there is no backgroundColor defined it is NaN which will not render in
the drawRoundRect() method.

3...

Stupid question but, have you made sure all other vars are not null that are
being passed to the drawRoundRect() method?

That example has to work, can you paste all of your code for the mxml and
class?

Peace, Mike


On 6/15/07, Brian Morearty <[EMAIL PROTECTED]> wrote:

  Hi friends,

I'm seeing the following behavior: if a component's backgroundColor is not
set, its borderSkin is completely ignored--even if the borderSkin does not
care about the backgroundColor.

This seems wrong to me. Does anyone have information about whether this is
the correct behavior?

Example:

   1. Take the "Programmatic skinning" sample code from
   http://www.adobe.com/devnet/flex/quickstart/skinning_components/
   2. Remove   backgroundColor="0xCCCC99"  from the sample and see that
   it doesn't work.
   3. If you think that's because the skin is now drawing with an
   invisible color, go into the skin and change this line:
      var backgroundColor:int = getStyle("backgroundColor");
   to
      var backgroundColor:int = 0xff0000;
    (hard-code the color as red). You'll see that it still doesn't
   draw.

Am I crazy or is this the right behavior?

- Brian Morearty
  Intuit




--
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