之前在Egret论坛发的。现在用到忘了怎么设置了。贴到blog备用。
/** * 测试 * @author chenkai * [url=home.php?mod=space&uid=81950]@since[/url] 2017/10/20 */ class HomeScene extends eui.Component{ private testScroll:eui.Scroller; public constructor() { super(); this.skinName = "HomeSceneSkin"; } private bar:TestBar; public childrenCreated(){ this.testScroll.scrollPolicyV = eui.ScrollPolicy.ON; let thumb:any = this.testScroll.verticalScrollBar.thumb; thumb.texture = RES.getRes("thumb_png"); } }