fiddle with flash

Search > Fiddle > Learn

Thursday, February 01, 2007

Scrollpane scrollDrag problems

If you've ever tried to toggle the scrollDrag property of the ScrollPane component in Flash 8 you will realize that it disables any interactivity with the contents of the pane i.e. if you have a button within the pane with press, release etc events they won't work even after you reset scrollDrag back to false. Seems like.. its a bug!

You have two alternatives to fix this -
If no dynamic content within ScrollPane:
pane.scrollDrag = false;
pane.refreshPane();

Whether or not dynamic content is loaded:
pane.scrollDrag = false;
delete pane.onPress;
delete pane.onRelease;
delete pane.onReleaseOutside;