mx:Style
.treeNoIcons
{
disclosure-open-icon: ClassReference(null);
disclosure-close-icon: ClassReference(null);
}
/mx:Style
- Gordon
From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of genuinexeal
Sent: Thursday, October 12, 2006
12:39 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Problems
with styles of type Class (embedded assets)
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
SPONSORED LINKS
Software development tool
Software development
Software development services
Home design software
Software development company
Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group
|
Yahoo! Groups Terms of Use
|
Unsubscribe
__,_._,___