Aspose Examples
Aspose Examples Banner

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


 Add Image Demo - Aspose.Flash

The sample demonstrates how to add image in a flash movie.

  1. Define a FlashContainer object and set FrameRate and FrameSize properties
  2. Create a Bitmap object using an image file
  3. Create a FlashBitmap object from the Bitmap object define in previous step
  4. Create FillStyle array list and add FlashBitmap object as BitmapFill style
  5. Define a new rectangle shape object
  6. Create DefineShape2 object to apply FillStyle and LineStyle on the Shape object
  7. Create PlaceObject2 object to place DefineShape2 object on the display list
  8. Add ShowFrame object in the container and save the movie
  9. Displaying the output flash file in client browser.

Click Process to see how demo generates a flash (SWF) file that demonstrates how to add image in a flash movie.

Upload Image: