diff -r 80ef3a206772 -r 48780e181b38 Symbian3/SDK/Source/GUID-1AF99DF6-C5BE-5713-940D-5E9FBD43F123.dita --- a/Symbian3/SDK/Source/GUID-1AF99DF6-C5BE-5713-940D-5E9FBD43F123.dita Fri Jul 16 17:23:46 2010 +0100 +++ b/Symbian3/SDK/Source/GUID-1AF99DF6-C5BE-5713-940D-5E9FBD43F123.dita Tue Jul 20 12:00:49 2010 +0100 @@ -9,33 +9,31 @@ --> -Animation -example -
Description

This example is a UI application, which -demonstrates how to create and play basic and sprite animations. It implements -all the standard classes required by any application using UI controls such -as an application, a document, an application UI and a view.

The application +Animation example +

Description

This example is a UI application, which demonstrates how to create +and play basic and sprite animations. It implements all the standard +classes required by any application using UI controls such as an application, +a document, an application UI and a view.

The application provides UI controls to create a sprite animation and a basic client-side -animation. It also provides UI controls to control the behavior -of an animation such as, start, stop, pause, resume and move.

The -application plays an animated .gif file both as a basic -client-side animation and a server-side sprite animation. It performs the -following tasks in the order they are listed to create the basic and sprite -animations:

    -
  1. Creates an object of -the CICLAnimationDataProvider class.

  2. -
  3. Loads the animated .gif file -into the object.

  4. -
  5. Configures the animation -to play in an infinite loop using TAnimationConfig.

  6. -
  7. Creates objects of CBasicAnimation and CSpriteAnimation classes by passing the data provider object as an argument.

  8. -
  9. Starts animations with -the TAnimationConfig object as an argument.

  10. -

Once both the animations are started, the window server will automatically -draw the animations onto the window by calling the Draw() method.

-
Download

Click on the following link to download -the example: AnimExample.zip

Click: browse to view the example code.

-
Class summary
    +animation. It also provides UI controls to control the behavior of +an animation such as, start, stop, pause, resume and move.

    The application plays an animated .gif file +both as a basic client-side animation and a server-side sprite animation. +It performs the following tasks in the order they are listed to create +the basic and sprite animations:

      +
    1. Creates an object +of the CICLAnimationDataProvider class.

    2. +
    3. Loads the animated .gif file into the object.

    4. +
    5. Configures the +animation to play in an infinite loop using TAnimationConfig.

    6. +
    7. Creates objects +of CBasicAnimation and CSpriteAnimation classes by passing the data provider object as an argument.

    8. +
    9. Starts animations +with the TAnimationConfig object as an argument.

    10. +

    Once both the animations are started, the window server will +automatically draw the animations onto the window by calling the Draw() method.

+
Download

Click on the following link to download the example: AnimExample.zip

Click: browse to view the example code.

+
Class +summary
  • CEikApplication

  • CEikDocument

  • CEikAppUi

  • @@ -46,14 +44,10 @@
  • CICLAnimationDataProvider

  • TAnimationConfig

-
Build

The Symbian -platform build process describes how to build an application. But, -use abld export command before abld build to -copy the animated .gif file to RAM (C:\ drive) -of the target platform.

The AnimExample builds an executable called AnimExample.exe in -the standard location (\epoc32\release\winscw\ udeb -or urel for CodeWarrior). Either launch the executable or launch the emulator -and then select the AnimExample application from the Emulator's extras bar.

-
See also

Using -Animation

+
Build

The Symbian platform build process describes how to build an +application. But, use abld export command before abld build to copy the animated .gif file to RAM (C:\ drive) of the target platform.

The AnimExample builds an executable called AnimExample.exe in the standard location (\epoc32\release\winscw\ udeb or urel for CodeWarrior). Either launch the executable +or launch the emulator and then select the AnimExample application +from the Emulator's extras bar.

+
See +also

Using Animation

\ No newline at end of file