|
|
|
| Component |
Three text effect components are featured in this chapter: Flush, Spin, and Scramble. Each of the
|
Once you install the component set, you will see all the components you have installed through the Extension Manager so far, as shown in Figure 7.1. The extension you just installed is named TextEffect Component Set, although more extensions may be listed, depending on what you have installed previously. The
Figure 7.1:
Components installed through the Extension Manager
Figure 7.2:
Use the Components panel to add the text effects to your movie.
After you have dragged a few components to the stage, you will see the folder structure that has been created, as in Figure 7.3. One main folder contains the component movie clips, and a few
Figure 7.3:
Folder structure created by the components
|
|
|
|
|
|
Open a fresh Flash movie and drag the FlushTextEffect component to the stage. The first thing you will notice is that text is in the component already, as shown in Figure 7.4. This is actually a live preview that displays the set of text to be animated, and it will change when you change the component's parameters. Do not mess with the parameters just yet; we are only experimenting for now.
Figure 7.4:
The live preview shows what the text will look like when fully animated.
Test the movie by pressing Command/Ctrl+Enter. The movie starts with a blank screen, and then small pieces of the text gradually come into form until the entire set of text is visible. Then, shortly after the text has been fully uncovered, the animation reverses itself and the text
Figure 7.5:
The Flush Text effect in midaction. The text is uncovered slowly by a series of animated rectangles.
You will notice that the text continuously animates in and out in a loop. This is because only one set of text is entered in its parameters. One of the most powerful features of this component is that you can enter any number of text sets into an array; the component will cycle through the sets, performing the animation on each. The parameters also allow you to customize what the component should do once it has cycled through all the text sets; it can either go back to the beginning and start over or simply quit and remove itself from the stage.
Table 7.1 is an exhaustive list of the parameters you can customize in the FlushTextEffect component.
|
|
|
PARAMETER
|
DESCRIPTION |
|---|---|
|
|
|
|
Text Messages |
Array that holds all the sets of text you want the component to cycle through. These messages are HTML-enabled, so you can use Flash-compliant HTML tags, such as bold, italics, and line break. |
|
Text Size |
Size of the text in each set. |
|
Text Font |
Font of each set of text. This value is case-sensitive, so be sure to enter the exact font name. |
|
Text Color |
Color of the text in each set. |
|
Text Alignment |
Alignment of the text in each set. |
|
Flush Density X |
Number of rectangles created along the x-axis of the text. |
|
Flush Density Y |
Number of rectangles created along the y-axis of the text. |
|
Flush Start Difference |
Controls how many frames must pass before all rectangles animate. Each rectangle waits a random number of
|
|
Flush Color |
Color of the rectangles that flush over the text. |
|
Loop |
True or false value that determines if the sets of text should play continuously in a loop or not. |
|
Uncovered Frame Delay |
Number of frames that the sets of text
|
|
|
There are just a few things we should discuss when looking at these parameters. Firstly, the text font parameter says we can use HTML in our messages, but what exactly is Flash-compliant HTML? The only tags supported by Flash are <a> , <b> , <font color> , <font face> , <font size> , <i> , <p> , <br> , and <u> . Any other tags will produce unreliable results.
Also, the values for Flush Density X and Flush Density Y should be used in strict
| On the CD |
To
|
The next,
FlushEffect02_Sample.fla
,
Figure 7.7:
Text can flow into two or more lines through the use of the line break tag
<br>
.
In the file FlushEffect03_Sample.fla , I have used the exact same parameter settings as in the previous file, with the exception that the density values have been increased. Each flush density is now 15, which results in 225 rectangles. If you test this movie, you can see that smaller bits of the text become visible (as shown in Figure 7.8), and it appears to be smooth. However, if you had any other animations or actions playing elsewhere in the movie, you would see a noticeable drag in their performance. On top of that, the effect is not much better compared to the previous file, so in general the CPU lag is not worth it.
Figure 7.8:
The increased flush densities do not necessarily result in a better effect.
With these examples, you should start to see how you can use this text effect in your own files. You can also experiment with using the effect to flash bytes of text in a banner or to display instructions to a viewer. However, always keep in mind that the component can truly bog down someone's computer if not used in moderation. Using many instances of this component on the stage is not a good idea.
|
|
|