|
External image transitions |
|
Tuesday, 28 November 2006 |
|
We already provided a small sample how to extend the fantastic transitions component from Satori Canton. We get several request to provide a sample for loading external images in combination with the component. I spent about 1 hour on that and finished it. Hopefully many of you could sleep better now :)
NOTE: New article! External image transitions - Part 2
It uses 3 external JPEGs which are defined in an XML file. Below you can find the source code in our new syntax highlighter or download the whole project files.
For those ones who are interested in the technical part
- XML file is parsed and adds details (title, url) of each image to an array
- A "queue" loads the images into a hidden movie
- Each time an image is loaded a snapshot is taken of it and stored as a bitmap in a separate array
- The "SmartTile" movie just attachs the current/next bitmap to show from this array
Source code
Download
Source files (614.19 KB)
Trackback(0)
|