Animations
Animation resource
<animation
name="..."
bitmap="..."
mode="..."/>
Attributes:
| name |
animation name, to be used in onMouseover, onMousedown...
|
| bitmap |
referes to a <filmstrip> in resources section which contains the animation film strip.
Filmstrip
|
| mode |
can be "repeat" or "once"*
Additional flags:
| forward | - play filmstrip forward |
| backward | - play filmstrip backward |
| interrupt | - interrupt animation immediately if event is over |
|
HOWTO animate switches
To animate a switch, you have to specify an animation name in one of the event handlers.
| Event |
Trigger |
| onMouseover |
mouse enters the control |
| onMouseout |
mouse leaves the control |
| onMousedown |
mouse clicks the control |
| onMouseup |
mouse released after click |
| onSwitchon |
switch turned to ON state |
| onSwitchoff |
switch turned to OFF state |
| Animation |
Notes |
| blend |
Fades the control bitmap in and out with a period of 20ms.
|
| rotate |
Rotates the control bitmap clockwise one time around.
|
Example:
<resources>
<filmstrip name="anim1" path="bitmaps\anim1.bmp" framecount="10"/>
<animation name="animation1" bitmap="anim1" />
</resources>
<template ...>
<switch ... style="push"
onMouseover="blend" onMousedown="animation1"/>
</template>
Button/Switch
Last Modified: