PDA

View Full Version : scroll pane not working...


pixel8ed
06-27-2007, 10:46 AM
I have a flash file that loads in some xml, then creates a text field within a movie clip for each specific item of the xml. I believe it's necessary to do it this way rather than just dumping the text because I want to manipulate each clip seperately. The behavior ultimately would be like that of an expanding menu, or like a file browser where you can click to expand and see folder contents.

That being said, I thought encapsulating the whole thing in a scroll pane would give me the ability to scroll through content that I need. But something is wrong... the content loads into the pane fine, but even though I know there is content beyond the height of the pane, no scroll bar appears. Even setting the scrollPolicy to be on just displays the bar, but no controls.

I'm fairly newb at this, is there anything I should check for that a newb would miss? Also, I'm open to suggestions if it seems I am going about this the wrong way. Thanks in advance!

LOLFlash
06-27-2007, 08:14 PM
try: invalidate();

Make sure you calling this function after your panel receive content:



myscrollPanel.addEventListener("complete",myscrollPanelComplete);
funtion myscrollPanelComplete(evt:Object){

evt.target.invalidate();

}

pixel8ed
06-30-2007, 11:35 PM
Thanks man... that worked and I can finally put this behind me!