Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/actionscript-3/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Apache flex 更改列表中已单击项(itemrenderer)的边框颜色_Apache Flex_Actionscript 3_Flex4_Itemrenderer - Fatal编程技术网

Apache flex 更改列表中已单击项(itemrenderer)的边框颜色

Apache flex 更改列表中已单击项(itemrenderer)的边框颜色,apache-flex,actionscript-3,flex4,itemrenderer,Apache Flex,Actionscript 3,Flex4,Itemrenderer,您好,我想设置列表中某些项目渲染器(textInput)的边框颜色。默认情况下,所有项目都有一个共同的边框颜色,但我希望例如在项目中单击时有一个红色边框 我在itemRenderer中的单击事件中尝试了此操作 mytextInput.setStyle("color", 0xDDDDDD); 但它似乎不起作用 任何帮助 Thx就您扩展SparkTextInput控件而言,所有此类问题都应该使用皮肤来解决。使用您喜欢的边框创建自定义外观。样式属性,color表示文本的颜色,您应该使用borderC

您好,我想设置列表中某些项目渲染器(textInput)的边框颜色。默认情况下,所有项目都有一个共同的边框颜色,但我希望例如在项目中单击时有一个红色边框

我在itemRenderer中的单击事件中尝试了此操作

mytextInput.setStyle("color", 0xDDDDDD);
但它似乎不起作用

任何帮助


Thx

就您扩展Spark
TextInput
控件而言,所有此类问题都应该使用皮肤来解决。使用您喜欢的边框创建自定义外观。

样式属性,
color
表示文本的颜色,您应该使用
borderColor
,或者它是示例代码中的输入错误?