Many thanks for the replies, but I am not sure you have addressed the question I am asking.
How do get the component to behave when used at design time (in another application) as it does at run time in the same application. Thanks BOb --- In [email protected], "Michael Schmalle" <[EMAIL PROTECTED]> wrote: > > // CSS file bundled with your component > > Manish, > > This goes back to an original question I had at the 'beginning'. > > When you say bundled, what is the correct way to get that 'default'(IE > selector with the class name) css file to be compiled with your swc? Using a > library project does not seem to work correctly. > > Is the .css file supposed to be named anything? Have you had any experience > with a Library Project? > > Any thoughts? > > Peace, Mike > > On 7/19/06, Manish Jethani <[EMAIL PROTECTED]> wrote: > > > > On 7/19/06, bobpardoe1959 <[EMAIL PROTECTED]<bob.pardoe%40kuehne-nagel.com>> > > 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 > > > > > > > > > > -- > What goes up, does come down. > ------------------------ Yahoo! Groups Sponsor --------------------~--> Great things are happening at Yahoo! Groups. See the new email design. http://us.click.yahoo.com/TISQkA/hOaOAA/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/
