Am Donnerstag, 16. November 2006 22:02 schrieb zzwi89:
> Hello,
>
> I am using programattic skinning for some tabs in a TabBar. Rather
> than write a class for the selected tab, one for the deselected tab,
> etc.., I would like to use the same tab class but change CSS styles to
> alter the style.
>
> In my CSS file, rather than specify tab styles like this:
>
> disabledSkin: ClassReference("...");
>
> I would rather specify
>
> disabledSkin: styleName
>
> .styleName
> {
> disabledSkin: ClassReference("...");
> attribute1: value;
> attribute2: value;
> }
>
> Unforunately, I do not know of a way to do this? Do you?
Look at ButtonSkin.as, I think they use the switch(name)-statement to
accomplish this:
-----------------------------------------------------------------------
[...]
switch (name)
{
case "selectedUpSkin":
case "selectedOverSkin":
{
[...]
}
case "upSkin":
{
[...]
}
case "overSkin":
{
[...]
}
case "downSkin":
case "selectedDownSkin":
{
[...]
}
case "disabledSkin":
case "selectedDisabledSkin":
{
[...]
}
}
[...]
-----------------------------------------------------------------------
O.
--
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/