RIACHINA 中国RIA开发者论坛RIA 客户端开发FLASH 开发专区 backgroundColor 不能使用变量吗????

backgroundColor 不能使用变量吗????

backgroundColor 不能使用变量吗????

代码如下:       

        <mx:Canvas id="A1MSP410" x="82" y="10" width="40" height="66" backgroundColor="{statulist.A1MSP310.status}" >
            <mxabel x="2.5" y="25" text="{statulist.A1MSP310.status}"/>
        </mx:Canvas>

      backgroundColor  始终是黑色, Label 显示是可变的

    请各位大侠帮忙, backgroundColor  是不能使用变量吗?
 

回复:backgroundColor 不能使用变量吗????

用网页参数。
或者是弄一个mc,然后:
_root.backMC._x=-0.5*Stage.width;
_root.backMC._y=-0.5*Stage.height;

_root.backMC._width =2*Stage.width;
_root.backMC._height=2*Stage.height;

setMCColor(_root.backMC,BgColor);

不过您用的是flex,后面这招不知好不好用?
欢迎来我的博客转转:
http://blog.csdn.net/emilmatthew
 

回复:backgroundColor 不能使用变量吗????

setMCColor(_root.backMC,BgColor);

什么意思?
 
1  /  1  页   1 跳转

版权所有 riachina.com   Sitemap

Powered by Discuz!NT 2.1.202    Copyright © 2001-2008 Comsenz Inc.
Processed in 0 second(s) (Cached).
返顶部