hi all
I am trying to use the mousewheel for a view on swf10 env.
Testcases below(two aspects) works for swf8 properly but not for swf10
<canvas bgcolor="#EAEAEA" width="800" height="510">
<view width="400" height="300" clip="true" bgcolor="0xFFFFFF">
<swatchview width="350" height="900" bgcolor="blue" focusable="true"
clickable="true" name="view1"/>
<vscrollbar usemousewheel="true" focusview="$once{parent.view1}"/>
</view>
</canvas>
referencing :
http://www.antunkarlovac.com/blog/2007/08/03/the-mouse-wheel-in-openlaszlo/
<canvas bgcolor="#EAEAEA" width="800" height="510">
<view width="400" height="300" clip="true" bgcolor="0xFFFFFF">
<swatchview width="350" height="900" bgcolor="blue" focusable="true"
clickable="true" name="view1">
<handler name="onmousewheeldelta" reference="lz.Keys"
args="direction"><![CDATA[
var thisX = this.getMouse("x");
var thisY = this.getMouse("y");
if (this.containsPt(thisX, thisY)) {
parent.myScrollbar.step(-direction);
}
]]></handler>
</swatchview>
<vscrollbar name="myScrollbar" focusview="$once{parent.view1}"/>
</view>
</canvas>
Is there any workaround for swf10
And another question is :
do you know how to set the scroll positon to the bottom of its focusview
Thanks is advance
Best regards
--
Cem SONMEZ