Aspose Demos
Aspose Demos Banner

Here you will find a collection of live ASP.NET and Java demo applications created with Aspose products. The source code of the demos is available on website for download, feel free to check it out at Aspose Downloads Page.


Most Clicked:

 Create Movie Clip Demo - Aspose.Flash

The sample demonstrates how to create movie clip using Sprite.

  1. Define a FlashContainer object and set FrameRate and FrameSize properties
  2. Create a rectangular shape using StyleChangeRecord and StraightEdgeRecord
  3. Apply LineStyle and FillStyle on the Shape and add to FlashContainer
  4. Create a movie using DefineSprite and place it on FlashContainer using PlaceObject2
  5. Place this movie object on the FlashContainer
  6. Set Initial transformation value using MatrixTransform
  7. Now, execute a loop and in each iteration do the following:
     a)  modify existing sprite movie using PlaceType.Modify
     b)  transform the shape by changing MatrixTransform value
     c) rotate the shape by setting rotation angle by calling Rotate method of MatrixTransform
  8. Add ShowFrame method in each loop to show these individual states of the shape
  9. Finally, save the flash movie
  10. Displaying the output flash file in client browser.

Click Process to see how demo generates a flash (SWF) file that demonstrates how to create movie clip using sprite.