Skip to content

unic8 Studios

Documentations Tutorials FAQs Links Advanced search
You are here: Home arrow News arrow Labs arrow External image transitions
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)
Comments (5)add comment

knofy said:

 
Hallo,

traumhafte Transitions aber geht das ganze auch ohne auf den Buttons zu klicken??? So das die Bilder alle 3 Sekunden von alleine weiter springen???

Viele Grüße

Knofy
2007-03-13 17:12:43

sverre said:

 
hi there, any possibility of adding an index page of a small version of all the pictures that was loaded?
2007-03-18 07:13:29 | url

erik said:

 
hi sverre,

If i understood you correctly you'd like to add thumbnails. This feature is possible with the usage of the existing function getImage(). You just have to pass a parameter with the image index and it returns a bitmap object from the array aryBitmaps (you could access the array directly because it also gives you the total amount of loaded images by the length property). With the BitmapData-class of ActionScript you're able to resize it and attach it to a seperate movieclip. You should also have a look at the new article and the second version http://www.unic8.com/en/labs/e...art-2.html
2007-03-18 11:13:48

Marlon said:

 
Hello, nice one. Is it possible have that transition automatic without buttons?
2007-03-22 19:45:19 | url

steno said:

 
how do i set which transitions to use?
2008-08-31 19:31:09

Write comment
quote
bold
italicize
underline
strike
url
image
quote
quote
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley

security image
Write the displayed characters


busy
 
< Prev   Next >

Polls

Which data exchange technology do you prefer?