It should work fine. It might be nice if the registration point could be specified for compiled resources...

[email protected] 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

Reply via email to