FMX.Animation-Multi-Platform Sample
From RAD Studio XE2 Code Examples
(Redirected from Animation-Multi-Platform Sample)
This sample represents a FireMonkey 3D animation.
Contents |
Location
You can find the Animation-Multi-platform sample project at:
- Start > Programs > Embarcadero RAD Studio XE2 > Samples and then navigate to FireMonkey\Animation-Multi-platform
- Subversion Repository for Delphi: http://radstudiodemos.svn.sourceforge.net/viewvc/radstudiodemos/branches/RadStudio_XE2/FireMonkey/Animation-Multi-platform/
Description
This application uses several visual objects on a form and animates them using TBitmapAnimation, the TFmxObject.AnimateFloat method, and the TFmxObject.AnimateFloatDelay method.
How to Use the Sample
- Navigate to Start > Programs > Embarcadero RAD Studio XE2 > Samples and either open the Animation-Win-Mac-iOS.groupproj file, or go to the desired folder (Desktop/iOS-iPad) and select the AnimationApp.dproj/iOSAnimationDemo.dproj file.
- Press F9 or choose Run > Run.
Classes
FireMonkey Animation represents the main window of the sample. It contains the following components:
- A TButton
- Two TImage objects, one of them having a subordinated TBitmapAnimation
- A TViewport3D with two TLayer3D, each of them containing a TImage
Implementation
- The BitmapAnimation subordinated to the first Image object makes the looping transition between two bitmap images.
- When the user presses the Start button, all the images are animated through their inherited AnimateFloat and AnimateFloatDelay methods.
Uses
- FMX.Controls.TButton
- FMX.Objects.TImage
- FMX.Ani.TBitmapAnimation
- FMX.Types3D.TViewport3D
- FMX.Layers3D.TLayer3D
- FMX.Types.TFmxObject.AnimateFloat
- FMX.Types.TFmxObject.AnimateFloatDelay