Hello there, The styles used by Flex components can be specified either as properties of a component (i.e. "paddingTop") or - even better - inside a <Style> tag, ideally linked to an external CSS file (i.e. "padding-top").
Well, I have this problem when I want to assign _nothing_ to a style of type Class (i.e. "disclosureOpenIcon" from Tree). By assigning _nothing_ (a null value) I am trying to make that particular icon invisible, because there is no public property to turn it off and it is not off by default. For example if I want to hide the disclosure icons used by the Tree component (the arrows), I can write: <mx:Tree id="treeView" disclosureOpenIcon="undefined" disclosureClosedIcon="undefined"/> And if I want to do the same thing via CSS, I can write: <mx:Style> .treeNoIcons { disclosure-open-icon: undefined; disclosure-close-icon: undefined; } </mx:Style> <mx:Tree id="treeView" styleName="treeNoIcons"/> Unfortunately for CSS this does not work as expected. _undefined_ gets converted to a String, which cannot be cast to a Class so I get the runtime error 1034 (Type Coercion failed: cannot convert _ to _.) when running the app. It doesn't matter what value is used for disclosure-* properties (null, void, etc (with or without "")) because everything will be converted to a String so I will get the error 1034. Is there any solution (besides an Embed('1pixeltransparent.gif') ;)) for assigning _nothing_ to a style property of type Class via CSS? TIA, Alex Muntean -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> 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/