[Laszlo-user] Custom cursors in openlaszlo
warren@warrenandrachel.com
warren at warrenandrachel.com
Wed Feb 4 11:38:25 PST 2009
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>
More information about the Laszlo-user
mailing list