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 AS3:Textfield活动状态_Apache Flex_Actionscript 3 - Fatal编程技术网

Apache flex AS3:Textfield活动状态

Apache flex AS3:Textfield活动状态,apache-flex,actionscript-3,Apache Flex,Actionscript 3,我想在舞台上创建一些不响应鼠标活动的文本。我发现,在向我用来绘制的类添加一段文本后,它会覆盖我的类的一些鼠标区域,并禁止用户滚动其他图形元素 是否有类似于: var t:TextField = new TextField(); t.text = "hello"; t.active = false; //i know that this is wrong, but I haven't found an equivalent method 谢谢, jml使用这个 t.selectable = f

我想在舞台上创建一些不响应鼠标活动的文本。我发现,在向我用来绘制的类添加一段文本后,它会覆盖我的类的一些鼠标区域,并禁止用户滚动其他图形元素

是否有类似于:

var t:TextField = new TextField();
t.text = "hello";
t.active = false;  //i know that this is wrong, but I haven't found an equivalent method
谢谢, jml使用这个

t.selectable = false;

谢谢,山姆。我不知道我怎么会错过这个。FWIW,这个问题也与我添加孩子的顺序有关。因为textfield有“在顶部”,它阻碍了其他图形的鼠标区域。解决这个问题的一个快速方法(不知道其他方法)是添加子文本字段,以便它在其他内容的“下方”绘制。