Why does this code generate two "ony" events ??

<canvas>

    <view name="A" width="100" height="100">
       <view name="B" width="100" height="100">
          <view name="C" width="100%">
             <handler name="ony">
                Debug.write("on y : " + A.y + A.B.y + A.B.C.y);
             </handler>
          </view>
          <scrollbar/>
       </view>
    </view>

</canvas>

Produces the following output:

on y : 000
on y : 000

I added the third view, because I initially thought that the
instantiation of a view resulted in an "ony" event being sent, but it
doesn't. Adding the axis="x" attribute to the scrollbar turns them off.
So why does the scrollbar object send this event and why does it send it
twice?

Reply via email to