![]() |
morphis | wax | |||||
![]() |
||||||
|
Animated Documents
Creating animation sequences is a very simple
task with WAX. There are two tags specifically designed for
animation For WML, the animation tags take care of the timer events or redirection of pages from one to another. Each image or text in the animation sequence is stored in its own block (animationblock) that gets translated to one card. The generated code includes one deck with many cards: the ones that form the animation linked by timer events, the static ones by hard links. For HDML, the code generated includes one deck with many cards where each is connected to the next one by hard links.
For HTML, an animated GIF image can be used and this one must be
specified in the The following example illustrates the use of the animation WAX tags. It generates an animation sequence of both images and text. Ends with a static block.
For WML, this code generates an animation deck of 7 cards. The first
6 cards are
the animated ones. The animation will go on until the user selects
either link for "Text" or "Exit". Note that the first 4 cards jump to each
other after 1/10 second (
Note carefully that the WAX code above defines only 6 cards or blocks.
But 7 cards are generated. The first, hidden card is used for
loading ALL the images in the deck into cache. This way, when the
animation starts, images are completely displayed. Since this tag creates all the animation sequence within one deck, caution has to be taken into account when developing for WML and HDML. The current specifications allow deck sizes of up to 1200 kb otherwise the deck will be too large and will not get displayed in the wireless devices.
|
|||||
![]() |