You need to have an event handler that runs when the mouse moves. Here is
an example:
<canvas>
<simplelayout/>
<text name="msg"></text>
<view width="50" height="50" bgcolor="#aaaaaa">
<handler name="oninit">
this.counter = 0;
</handler>
<handler name="onmousemove" reference="lz.GlobalMouse">
if (this.isMouseOver()) {
this.counter += 1;
parent.msg.setAttribute("text", this.counter);
}
</handler>
</view>
</canvas>
On Tue, Sep 18, 2012 at 1:03 PM, Chris Janik <[email protected]> wrote:
> Is it possible to do something like this
>
> while (view.mouseover == true) {
> preform action
> }
>
> I want to have an action repeat for as long as the mouse is over a
> specific view.
>
> --
> Chris
>
>