Hello, I’m doing this:
my_sp.contentPath = “loader”; // loaded from the library (is this really necessary?)
var content_mc:MovieClip = my_sp.content;
…then I am looping through some arrays and attaching textfields and radio buttons to “content_mc”.
It all works except the vertical scrollbar isn’t appearing when it needs to. How do i update the visiblity of the scrollbar after ive dynamically attached my stuff? I only want it visible when it is necessary.
Thanks
edit: I’ve tried just manually setting the vScrollPolicy to “on” after the scripts that do the attaching run, but the scrollbar doesn’t scroll far enough?
edit edit: I traced the _height of “content_mc” and it was only slightly higher than the scrollpanes height, which is not what I expected because there are several textfields/button off the bottom of the scrollpane… what in the world is going on!!!
edit edit Edit: I found that i could work around this by adding a movieclip to “loader” in the library, setting it’s alpha to 0, and then scaling it taller using the _y position of the last attached button+its height and plus about 50 pixels because it still wasn’t scrolling all the way down. This works, but is a sloppy, pathetic, embarrassing, hack…SHAME… I must be missing something.