开发者

Adding scrollbars using ActionScript3

开发者 https://www.devze.com 2023-01-30 16:51 出处:网络
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\'

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);


i think you should define the viewport property

0

精彩评论

暂无评论...
验证码 换一张
取 消