Home > Uncategorized > V2 ScrollPane

V2 ScrollPane

October 23rd, 2004 Randy

Should be more like scroll pain! I am working on version 2 of my runningmap site. My new version uses v2 components where version 1 uses v1 components. The scrollPane component does not act like it use to. New are “progress” and “complete” events that are useful. One would think that calling refreshPane() after “complete” broadcasts would make sense, but refreshPane() itself causes “complete” to broadcast, so don’t call that method on complete.

This discovery came from a problem I was having with the loading of content into a scrollPane. I have a large jpg (approx 3000 x 3000 pixels) loading dynamically and it gets cut off when you scroll around. Plus, my zoom function (adjusting scale of content) does not refresh propery, even when using scrollPane.redraw(true). I put the jpg in an swf and the opposite happened, there is extra space around the image and it does not redraw properly on zoom. SOLUTION: if I place a border around the jpeg (a box behind it on the stage) and compile the swf, this version loads into scrollPane perfectly and zooms in and out as expected by adjusting the scale and then calling the redraw(true) method.

Categories: Uncategorized Tags:
Comments are closed.