flash - how do I put checkboxes or other content in a scrollpane? -


how put buttons or checkboxes in scroll pane scroll. tried adding them children seem attached scrollpane not inside. not scroll extend out of it?

is there way put content in scrollpane besides text. problem i'm trying solve dealing large number of checkboxes in small area. checkboxes dynamically generated script.

thanks, dan

if talking standard scrollpane, should have .source property. if add name of checkbox, scrollpane.

now, if want add complex content, suggest create empty movieclip , put scrollpane. want add scrollpane, add movieclip.

//create container var mc:movieclip = new movieclip(); //you don't need add displaylist (addchild(mc))  //now set source of scrollpane your_scrollpane.source = mc;  //any time add new item mc.addchild(your_checkbox);  //you can set properties your_checkbox.x = 0; your_checkbox.y = 0;  //and refresh scrollpane your_scrollpane.update(); 

you can setup mc before making source of scrollpane.

hope helps.


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -