I have to be missing something but I can't get Scrollarea's scrolltocener() to work. The change is instantanious, like setcenter(). Here is an Example.
And here is the code:
Code
<plugin name="planbase" type="container" keep="true" width="600" height="500" align="center" zorder="2" >
<layer name="plan_scrollbase" type="container" width="100%" height="100%">
<layer name="plan_scrollarea" url.html5="%VIEWER%/plugins/scrollarea.js" url.flash="%VIEWER%/plugins/scrollarea.swf" mwheel="false" direction="all" overscroll="0" align="center" width="100%" height="100%" >
<layer name="plan" url="%VIEWER%/skin/carlsbad-caverns-map.jpg" scale="0.5" align="center" x="0" y="0" width="" onloaded="copy(layer[plan_scrollarea].width, pixelwidth); copy(layer[plan_scrollarea].height, pixelheight); layer[plan_scrollarea].update();" />
</layer>
</layer>
<layer name="set_left" type="text" align="bottomleft" edge="topleft" y="-10" html="Set Left" css="font-size:20px; font-weight:bold; text-align:center; " bg="true" bgcolor="0xbbbbbb" bgborder="true" padding="5" onclick="layer[plan_scrollarea].setcenter(-500,0)" />
<layer name="scroll_right" type="text" align="bottomright" edge="topright" y="-10" html="Scroll Right" css="font-size:20px; font-weight:bold; text-align:center; " bg="true" bgcolor="0xbbbbbb" bgborder="true" padding="5" onclick="layer[plan_scrollarea].scrolltocenter(1000,1000);" />
</plugin>
Alles anzeigen
Probably something painfully obvious.
Tested with v1.20.5