[Laszlo-user] Custom cursors in openlaszlo
Max Carlson
max at openlaszlo.org
Thu Feb 5 04:19:15 PST 2009
It should work fine. It might be nice if the registration point could
be specified for compiled resources...
warren at warrenandrachel.com wrote:
> I wanted to create a cursor where the "hot spot" is not the upper-left corner [like http://www.openlaszlo.org/jira/secure/attachment/10771/cursor_resize_x.png], and I think I have found a workable solution to the problem illustrated here: http://www.openlaszlo.org/jira/browse/LPP-2044
>
> Using swfmill, I was able to place the cursor in a .swf at negative x and y coordinates [sample swfmill .xml below], thus emulating the "registration point" behavior of flash. I then used the resulting .swf as the cursor and it worked beautifully.
>
> -Warren
>
>
>
>
> <?xml version="1.0" encoding="UTF-8"?>
> <movie version="8" width="600" height="300" framerate="30">
> <background color="#ffffff"/>
> <frame>
> <clip id="cursor_resize_x.png" import="cursor_resize_x.png" />
> <place id="cursor_resize_x.png" x="-8" y="-8" />
> </frame>
> </movie>
--
Regards,
Max Carlson
OpenLaszlo.org
More information about the Laszlo-user
mailing list