Hi,
given this:
Code
<layer name="thumbs" keep="true" type="container" align="leftbottom" width="500" maskchildren="true" height="86" bgcolor="0x000000" bgalpha="0.3">
<layer name="scrollarea" url="%SWFPATH%/plugins/scrollarea.swf" alturl="%SWFPATH%/plugins/scrollarea.js" align="center" width="1000" height="86" direction="h" onloaded="setcenter(0,0);">
<layer name="thumb1" url="thumb1.jpg" align="left" x="10" onclick="loadscene(pano1,null,MERGE,BLEND(0.5));"/>
<layer name="thumb2" url="thumb2.jpg" align="left" x="120" onclick="loadscene(pano2,null,MERGE,BLEND(0.5));"/>
<layer name="thumb3" url="thumb3.jpg" align="left" x="230" onclick="loadscene(pano3,null,MERGE,BLEND(0.5));"/>
<layer name="thumb4" url="thumb4.jpg" align="left" x="340" onclick="loadscene(pano4,null,MERGE,BLEND(0.5));"/>
<layer name="thumb5" url="thumb5.jpg" align="left" x="450" onclick="loadscene(pano5,null,MERGE,BLEND(0.5));"/>
<layer name="thumb6" url="thumb6.jpg" align="left" x="560" onclick="loadscene(pano6,null,MERGE,BLEND(0.5));"/>
<layer name="thumb7" url="thumb7.jpg" align="left" x="670" onclick="loadscene(pano7,null,MERGE,BLEND(0.5));"/>
<layer name="thumb8" url="thumb8.jpg" align="left" x="780" onclick="loadscene(pano8,null,MERGE,BLEND(0.5));"/>
<layer name="thumb9" url="thumb9.jpg" align="left" x="890" onclick="loadscene(pano9,null,MERGE,BLEND(0.5));"/>
</layer>
</layer>
Display More
1) A parent of 500px wide (or 100% but with a onresize event) and a scrollarea of a 1000px. How could you show left/right or top/down arrows to scroll the area with a mousedown.
2) How would you move the area, just alter the x? or apply every inc(1) to scrolltocenter
3rd question: How can you center on the thumbnail the user clicked. I tried onclick=" layer[scrollarea].scrolltocenter(x,0); " on the thumbnail, but it just scrolled back to the start Solved this, had to do get(x)