css - TreeCheckbox CSS 可见文件夹

标签 css flash apache-flex adobe external

我正在使用 sephiroth 复选框树,我试图隐藏文件夹和图标,这是我在内联代码中所拥有的,但它似乎不起作用。有什么建议吗?

TreeCheckBox {
  backgroundAlpha: 0.0;
  folderClosedIcon: ClassReference(null);
  folderOpenIcon: ClassReference(null); 
  defaultLeafIcon: ClassReference(null);
}

最佳答案

这对我有用,代码如下:

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" xmlns:controls="it.sephiroth.controls.*">
    <mx:XML id="wut">
        <node label="Mail Box">
            <node label="Inbox">
                <node label="Marketing"/>
                <node label="Product Management"/>
                <node label="Personal"/>
            </node>
            <node label="Outbox">
                <node label="Professional"/>
                <node label="Personal"/>
            </node>
            <node label="Spam"/>
            <node label="Sent"/>
        </node>
    </mx:XML>
    <mx:Style>
        TreeCheckBox {
      backgroundAlpha: 0.0;
      folderClosedIcon: ClassReference(null);
      folderOpenIcon: ClassReference(null); 
      defaultLeafIcon: ClassReference(null);
    }

    </mx:Style>
    <controls:TreeCheckBox dataProvider="{wut}" width="100%" height="100%" showRoot="true" labelField="@label" />
</mx:Application>

我的猜测是您没有在您的应用程序中正确链接样式文件。 如:

<mx:Style source="/correct-path-relative-to-src/my.css" />

关于css - TreeCheckbox CSS 可见文件夹,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5006441/

相关文章:

JQuery 碰撞无法正常工作

javascript - 在 Internet Explorer 中禁用文本选择

javascript - 在html页面中调用externalinterface js

flash - AS3 sound.extract() 用于波形

android - 通过 RTMP android 连接到闪存媒体服务器

actionscript-3 - Flex 将类对象与类进行比较

javascript - 模态内可扩展文本的 CSS 问题

javascript - iOS Safari - 禁用滚动/弹跳但保留缩放

actionscript-3 - 弹性/mxml : How to display a Number in scientific notation in TextInput box?

apache-flex - 弹性 : Cannot tab between controls on a modal popup