最好还是用skin吧,你画一个背景,然后在 flash设link
var clase :Class = getDefinition(link/*你需要的背景*/) as Class
myInput.setStyle("upSkin", clase ) 就可以了
当然你也可以
var shape :Shape =new Shape
var g :Graphics = shape.graphics
g.beginFill(0xFF0000 )
g.drawRect(0,0,100,22)
g.endFill()
myInput.setStyle("upSkin",shape )
这样可以设TextInput的背景为红色,呵呵
希望有帮助
标签里:contentBackgroundColor="0xff0000"
代码里:ti.setStyle('contentBackgroundColor', 0xff0000);
contentcolor 这样样式好像 很久没写flex了 不太清楚了