10/13/2004

Engineering Rich Internet Applications: Rotating an Image

Engineering Rich Internet Applications: Rotating an Image

I have a response to the above article:

<canvas>
<view resource="cd_cover.jpg" x="30" y="30" height="20" bgcolor="red"
onmouseover="anim.pause(true);"
onmouseout="anim.pause(false);">
<animator name="anim" repeat="Infinity" attribute="rotation"
duration="7200" from="0" to="360"
motion="linear"/>
</view>
</canvas>

I don't know what a registration point is but I'd bet that it has something to do with the rotation point of that graphic. In that case, add:

xoffset="foo" yoffset="bar"

where foo and bar are integer values, to the view.

The fun that can be had here continues with this app:


That's 31 lines in LZX and 12 of them are for the trailing views...

0 Comments:

Post a Comment

Links to this post:

Create a Link

<< Home