diff -r 51a74ef9ed63 -r ae94777fff8f Symbian3/SDK/Source/GUID-1AF99DF6-C5BE-5713-940D-5E9FBD43F123.dita --- a/Symbian3/SDK/Source/GUID-1AF99DF6-C5BE-5713-940D-5E9FBD43F123.dita Wed Mar 31 11:11:55 2010 +0100 +++ b/Symbian3/SDK/Source/GUID-1AF99DF6-C5BE-5713-940D-5E9FBD43F123.dita Fri Jun 11 12:39:03 2010 +0100 @@ -1,59 +1,59 @@ - - - - - -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
    -
  • CEikApplication

  • -
  • CEikDocument

  • -
  • CEikAppUi

  • -
  • CCoeControl

  • -
  • CActive

  • -
  • CBasicAnimation

  • -
  • CSpriteAnimation

  • -
  • 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

+ + + + + +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
    +
  • CEikApplication

  • +
  • CEikDocument

  • +
  • CEikAppUi

  • +
  • CCoeControl

  • +
  • CActive

  • +
  • CBasicAnimation

  • +
  • CSpriteAnimation

  • +
  • 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

\ No newline at end of file