屏蔽输入文本字段不显示
我在图层上有一个空的影片剪辑(比如说 A),然后我用一个显示对象(比如说一个矩形)掩盖它。现在我有一个包含输入文本字段的影片剪辑(例如 B),并且我正在影片剪辑(A)中动态添加此影片剪辑(B)。
当我编译它时,输入文本字段肯定会接受输入,因为我已经对该字段的更改事件应用了一些跟踪。
但字段内的字符并未显示。
我还根据某人的建议嵌入了该字符,但之后该字段甚至没有得到输入。
希望现在一切都清楚了。
I have an empty movie clip(say A) on a layer and then I have masked it with a display object(say a rectangle). Now I have an movie clip(say B) containing a input text field and I am adding this movie clip(B) dynamically in movie Clip(A).
When I compile it, the input text field is taking input for sure, cz I have applied some traces on change event of that field.
But the characters inside the field are not showing up.
I have also embed the character after someone's suggestion, but after that the field is not even getting input.
Hope this clears now.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试在运行时设置蒙版,而不是在时间轴中设置。
http://www.fayazmiraz.com/masking-test-input- fields-in-flash/
http://www.fayazmiraz.com/masking-test-input-fields-in-flash-example/
当遇到此类问题时,在相同的
MovieClip
所以您知道遮罩有效。这样您就可以专注于真正的问题,在本例中是TextField
。Try setting the mask at runtime instead of doing it in the timeline.
http://www.fayazmiraz.com/masking-test-input-fields-in-flash/
http://www.fayazmiraz.com/masking-test-input-fields-in-flash-example/
When having these kind of problems it is always nice to draw debug graphics in the same
MovieClip
so you know that the mask works. This way you can focus on the real problem, in this case theTextField
.