[Laszlo-user] Custom cursors in openlaszlo

Henry Minsky henry.minsky at gmail.com
Wed Feb 4 11:58:34 PST 2009


I wonder if this will work with swf9/10 ?


On Wed, Feb 4, 2009 at 2:38 PM,  <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>
>



-- 
Henry Minsky
Software Architect
hminsky at laszlosystems.com



More information about the Laszlo-user mailing list