使用 ActionScript3 添加滚动条
添加默认的 Spark.components.VScrollBar 滚动条时遇到一些问题。我所做的就是创建一个新的 VScrollBar,设置它的坐标、宽度和高度并执行 addChild,但它没有显示。我还添加了其他确实出现在相同代码中的组件,因此这不应该成为问题。
我可能会缺少什么?
var a:VScrollBar = new VScrollBar();
a.x = 100;
a.y = 100;
a.height = 500;
a.width = 100;
addChild(a);
Having some problems adding the default spark.components.VScrollBar scrollbar. All I'm doing is creating a new VScrollBar, setting it's coordinates, a width and height and doing an addChild but it's not showing up. I'm adding other components too that do show up in the same code so that shouldn't not be the problem.
What might I be missing?
var a:VScrollBar = new VScrollBar();
a.x = 100;
a.y = 100;
a.height = 500;
a.width = 100;
addChild(a);
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为你应该定义
视口
属性i think you should define the
viewport
property