On 7/19/06, bobpardoe1959 <[EMAIL PROTECTED]> wrote:

> I am overridding the initialize () function and setting a number of
> style settings i.e. setStyle("dropShadowEnabled", false);

setStyle() is for users of your component. Never call setStyle() on
yourself, unless you don't want the following to work:

 .myStyle {
  dropShadowEnabled: true;
 }

 <BobComponent styleName="myStyle" />

In this case, if you've called setStyle() on yourself, the user's
setting will not be honoured (because setStyle() has higher
precedence).

The right way to set a default style is using a type selector:

 // CSS file bundled with your component
 BobComponent {
  dropShadowEnabled: false;
 }

> When I then use my component in my app and look at it in design view
> these settings are not being honoured !
>
> Am I overridding the correct method ?

Try calling trace() to see if your method's being called. If you have
trace() disabled, just throw an exception.

  throw new Error(); // just to check if this actually gets thrown

Manish


------------------------ Yahoo! Groups Sponsor --------------------~--> 
See what's inside the new Yahoo! Groups email.
http://us.click.yahoo.com/2pRQfA/bOaOAA/yQLSAA/nhFolB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcomponents/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to