【问题标题】:how to control the depth (z index) of bordercontainer in flex?如何在flex中控制bordercontainer的深度(z索引)?
【发布时间】:2012-03-21 22:30:41
【问题描述】:

我正在拼命尝试将我的边框容器设置为最高的 z-index,以便它始终出现在顶部。

我如何知道我的 flex 阶段中有多少对象,所以我可以将边界容器设置为最高深度? 我在 depth 属性中写了什么外壳,以便边框容器始终位于顶部? (值得一提的是我创建了动态对象)

    <s:BorderContainer includeIn="state2" width="200" height="200" backgroundColor="#992F2F"
                   horizontalCenter="-61" verticalCenter="23" depth.state2=currentState.num>
</s:BorderContainer>

tnx!

【问题讨论】:

    标签: actionscript-3 flex4 z-index depth


    【解决方案1】:

    你应该可以使用深度参数

       <s:BorderContainer includeIn="state2" width="200" height="200" backgroundColor="#992F2F"
                   horizontalCenter="-61" verticalCenter="23" **depth=999** >
       </s:BorderContainer>
    

    【讨论】:

    • 嘿,那行不通 - 我试图写高数字但什么也没发生..当我简单地将 id 添加到边界容器(“muBorderContainer”)然后写道:addElement( muBorderContainer);
    猜你喜欢
    • 1970-01-01
    • 2016-03-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多