我創建了一個SkinnableContainer運行時,因爲我想爲它設置一些樣式屬性,然後基於一些外部數據,我需要創建一個新的SkinnableContainer並將其添加爲第一個子項。這個孩子的身高可以大於父容器。如何將滾動條添加到SkinnableContainer創建的運行時?
如何使用一些滾動條創建SkinnableContainer運行時?
I read in the documentation that I need to create a new Skin。
運行時可以達到相同的結果嗎?
// ... in a container ...
var father = new SkinnableContainer();
this.addElement(father);
var child = new SkinnableContainer();
// ... some initialization... child is filled with some other elements from outside
father.addElement(child);
// ... now if child.height > father.height
// I want to add a vertical scrollbar
我能問什麼是這樣做的呢?你想達到什麼目的? – 2011-05-18 21:49:46
我嘗試瞭解如何使用Actionscript中的滾動條而不使用MXML,因爲我正在開發一個從遠程主機讀取XML並構建複雜接口的類 – yuri 2011-05-18 23:20:09