是否可以在as3中将一个类的文本区域共享给另一个类?
这是类text.as3
private function showTextArea():void{
textField = new TextArea();
canvas.addChild(textField);
}
这是创建文本区域的代码,我想将文本区域传递给另一个类(text2.as3)。这可能吗?
This is the class text.as3
private function showTextArea():void{
textField = new TextArea();
canvas.addChild(textField);
}
This is the code to create the text area,i want to pass the text area to another class(text2.as3).Is it possible?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
和主类
and Main class