How to create a loop effect (behaviors)

In this tutorial we're going to create a loop effect using behaviors. Actually, our recommended method is the one directly applied on the timeline; we're going to present this one for diversity and for the situation when you'll need to use Creative TextFX with a lot of ActionScript. Before starting the tutorial, please read “How to install an extension” and install Creative TextFX on your computer.


Click here to download the source file and the required files for solving this tutorial.


1. Let's start by opening Flash and creating a new file.

Create file

Create file

2. We will need two layers for our effect to loop smoothly, so press the Insert Layer button to create a new one. Next, select the second frame of both layers and insert blank keyframes.

Layer structure

Layer structure

3. Open the Components panel and drag on the stage a new instance of Creative TextFX. Name it „myEffect”. Let's configure the effect a little – make the following changes:

Configure the effect

Configure the effect

4. Insert the following code in the Actions panel of the second frame from Layer 2:

myEffect.onEffectFinished = function() {
            gotoAndPlay(1);
}
stop();

5. Preview the Flash file now. It should show a nice effect which loops endlessly.

Preview your file

Preview your file

Thank you for your time and I hope this tutorial was useful to you. I invite you to read the rest of our tutorials and check out our other products on www.extendstudio.com. If you have any questions please contact us at support@extendstudio.com.