Wednesday 9 July 2014

3D shuffling image transition

Here the final result:


Requirements

Flash CS3 or Flash CS4.
Two images (in this case 550×400, image available in the tutorial zip file)
Note: The screenshots in this tutorial are made in Flash CS3. It works exactly the same in Flash CS4. This tutorial is an ActionScript 3 Project (This component is exclusively available for AS3, so there will be no AS2 version in the future).

Step 1 – Install the effect component

Purchase the Shuffle Transition Effect. Please follow the installation instructions and drag the component from the component panel into the library of your .fla file.
Drag component into library

Step 2 – Import Slideshow images

Import two images [press Ctrl-R] or “File” -> “Import” -> “Import to Stage…”.
Import images to stage
Select the first image and convert it into a Movieclip [press F8] or right click on the MovieClip -> “Convert to Symbol…”. Give the Movieclip the name “image1”.
Convert first image to Movieclip
Set name of first image Movieclip
Select the second image and convert it into a Movieclip [press F8] or right click on the MovieClip -> “Convert to Symbol…”. Give the Movieclip the name “image2”.
Convert second image to Movieclip
Set name of second image Movieclip

Step 3 – Set instance name of image Movieclip

Give the Movieclip of the first image the instance name “my_image_01” (You can choose a different name if you want. Make sure that the instance name is unique). Without an instance name, the component is unable to detect the Movieclip. Set the instance name for the second image Movieclip to “my_image_02″.
Set instance name of first Movieclip
Set instance name of second Movieclip

Step 4 – Apply effect

Drag the component from the library onto the upper Movieclip. The effect component will snap automatically.
Drag component onto Movieclip

Step 5 – Adjust settings of the effect

Click on the component and open the component inspector panel [press SHIFT-F7] or “Window” -> “Component Inspector”. In the “Start Movieclip” select list “ my_image_01” should be selected.
Check if my_image_01 is set as Start Movieclip
All Movieclips with instance names in this frame are listed in the “Start Movieclip” and “End Movieclip” select list. Since you dragged the effect on the Movieclip “my_image_01″, this is the first Movieclip. As “End Movieclip” select “my_image_02″. Leave the other setting for now.
Set my_image_02 as End Movieclip

Step 6 – Export

Export the flash movie [press Ctrl-ENTER] or “Command” -> “Test Movie” and you’ll see the image transition.
Result

Step 6 – Play!

Now you can play around with the parameters to customize you effect. You can also use this effect with ActionScript. Find the full documentation here.

Download

Click here to download the .fla of this tutorial. Note: The .fla does not includes the effect component. In order to make the fla work, you need to purchase the Shuffle Tile Effect here.
Here you can find a video tutorial of how to implement a different effect.

No comments:

Post a Comment