For everyone to solve the dynamic text of the effects of the display and file size contradictions between

Source: Internet
Author: User
Tags delete key file size final modify reference requires
Dynamic | resolution | Special Effects | In the forum, I will see some people ask about the dynamic text of the problem, in which the most asked is the dynamic text transparency, rotation and mask and other effects, as well as embedded characters after the file becomes large and so on.
To make it easier for more people to use dynamic text, and to avoid repeated occurrences of similar posts in a forum, the author is determined to write a dynamic text usage tutorial on the above issues.
Description
The 12 floor mainly discusses the principle of text display, the theory is relatively strong, if the reader just to solve the problem, to make the desired effect, the contents of the second floor can be skipped.
The 23 floor mainly presents the solution of the problem, including the display, and avoid the problem of the file becoming larger.
3 in the display and file size This is good for the contradictions, the need to make the desired effect sometimes is not, for this, the four floors provide some alternative effects of thinking methods and reference programs.
4 substitution effect is not good, how to do? directly from the font file, five floor to introduce a font editing software. Help you reduce the font file size and then embed it in Flash.
Q: Why can't dynamic text be transparent, rotate, and mask?
A: By default, static text in the generation of Flash will be the text of the corresponding vector information also saved in the SWF, this practice can avoid the work on the other machine because of lack of fonts and can not display the normal text of the problem. Dynamic text does not do this because the text content is changed, If, like static text, it is necessary to generate all the text vector information into flash, resulting in large files. Therefore, by default, the Flash Player will invoke fonts from the system in real time when the animated text is to be displayed, so that the font being displayed is called the device font.
Device font After the call to Flash, only some of the lattice information, there is no vector information (this is the reason for the text to appear jagged). Therefore, it can not be like graphics to do geometric operations, can not get the rotation of the vector in the end is what shape.


As for why not Transparent, the author believes that transparent display also to calculate the transparency layer and the following layer of color overlay. As to where to stack, it is also necessary to support vector information.


Then, the mask is also a special effect, which requires the mask layer and the mask layer of the contour overlay to calculate the shape of the graphic, so the device font display dynamic text is not.
Q: How do we solve this problem?
A: It's a very simple one. After selecting dynamic text, click the "character" button in the property panel and select "All characters". Because this is actually embedding the vector information of the font, so you can do the processing of special effects.


Q: The above problem is solved, but the resulting file is very large (m to more than 10 m), what is the solution?
A: It says, embedded fonts are actually vector information embedded in the font. If you embed all the characters, you actually put the entire font file inside the SWF file.
If you are using the song body, you can do the following:
Open the system's Control Panel and double-click Font to enter


Find "Song body", look at the size of the file, your SWF will also increase (the author of this file is 10M, so, embedded font contour, SWF will be large 10M more.)


Q: Such a large flash on the Internet is not practical, want to make it smaller how to deal with?
A: This requires specific analysis of specific issues.
Q: My dynamic text display is definitely a number, how to operate?
A: The "character" option is available in the following figure. This way the SWF file is only a 10-digit vector message, and the file is not much larger.


Q: Now I'm going to do a navigation menu, which uses dynamic text to set the label, and the dynamic text needs special effects.
A: As a navigation menu, your columns are generally relatively fixed, so, your menu items used in which words are embedded in the outline of which words can be. (see chart below)


In this way, the next time you want to update the column, open the source file, change the text value, but also the corresponding changes in the embedded font profile.
Q: But more often, the text is loaded and the content is not known at all. It's like this:


I loaded the lyrics of the content really do not know, but also do not rule out the English, Japanese, and I need to mask the effect, this how to do to have the effect, and will not make the document become larger ?
A: Although the mask can not be used, but the cover is still OK, in this lyric player, the real more out of the Mask section only the following red-labeled areas.


So, in the red marker area, draw two rectangles with the same background color, and cover the dynamic text.
Q: If the background is complex, not a single color, and there may be multiple layers, wouldn't it be troublesome to handle it? What if the background is changed, or if you want to move the dynamic text, wouldn't it be difficult to change it? Can this problem be solved?
A: In this case, it is recommended to convert the background section to a component, and then the background layer above the text, the text on a layer, the same as the background layer, the background layer put a layer above, used to mask a background layer. The shape is the shape of the red area (the final effect is the following figure)


If you want to change the background, directly modify the background elements, to move the text, the text and mask move together, the operation is more convenient.
Q: Like the above, you need all the characters to be displayed, but what about the transparent effect?
A: Suppose you want to do this with dynamic text now.

Is it not necessary to embed the font outline to achieve it?
The answer is in the negative.
This effect I do with flash, may be thought that this is the use of alpha-tween. In fact, the author is using a tonal tween to do, the first frame tones white, the last frame tone "None", the text itself red.
This shows that, in the case of a solid background color, you can use the hue instead of Alpha, and although the hue is a special effect, but it is actually just a color compound, the result is that the text displays a single color, calling
The device font can be displayed. So, in this case, you can replace the transparency effect with the tonal effect to avoid embedding the font contour.
But if the background itself is a complex picture, or a fading color, a plurality of color blocks, it is necessary to use transparency. If you want to avoid the embedding of font contour, we suggest some substitution effect, I will give you some references to the substitution effect.
Q: Can the rotation be solved?
A: Because the rotation has fundamentally changed the distribution of the lattice (if the device font), you must use the vector, that is, embedded characters, so the author will also provide some alternative effects.
Q: Tilt does not seem to work, how to solve it?
A: Tilt is actually a combination of scaling and rotation, so it is also required font profile (on the tilt, scaling and rotation of the relationship, you can refer to this post
Q: Can you talk about the alternative transparency effect of the reference program?
A: If you want to finally, long-term display transparency effect, the author does not have a good alternative, but, if it is from transparent to opaque changes, you can find an alternative solution.
Take the following effect as an example.


Obviously, the implementation of this effect requires a font profile to make the file large.
So, in this case, don't be too obsessed with this effect, think of a close point.
If the text is not transparent, then the text will appear when it is not natural, how to have the effect of the gradual?
The author thinks, can be in the text comes out, take some completely opaque thing first to cover up, then let the opaque things fade away, can achieve the effect of the gradual. And the effect will not be worse than the above.


Q: What about rotation?
A: Like a line of text rotation, in fact, each word is around the same point to do circular motion results. So, the text can be made into circular motion effect. And the text itself does not rotate.
Originally want to do the effect:



Alternative effect:


Q: This is just some special situation, in fact, sometimes, some effects are not replaceable, how to do?
A: Before you answer this question, allow me to say a few words:
The above effect is some basic effect, on this basis, many effects can be replaced very well, so I hope you through these reference alternatives, can extrapolate.
After all, the substitution effect is to resolve the contradiction between the dynamic text display and the file size, these two are often not both, so the substitution effect can not achieve the best of both worlds. However, if you can spread your mind out, you can think of a better alternative effect, sometimes more cool than the original effect.
Now, when you really need to embed all the font outlines, what is the way to reduce the size of the file?
You should have seen garbled. In fact, garbled is also called font file to display. Since it is garbled, we do not need to let it show.
So, is not garbled character characters knock in the characters options there?
Obviously this is a thankless task, and it is extremely difficult to guarantee that all normal characters can be entered. So here's a final Solution: Modify the font file.
How do i modify the font file? Introduce a software: font Creator;
Download :(file is too big to upload.
Installed and cracked after running. The following starts the interface as follows:


Now, if you want to embed a font, the operation is as follows:
Menu "File"-"Open", you can choose which fonts are installed, or you can select other font files on the machine.
Then, in the Open dialog box to find the font you need to use (recommended to back up before opening).


When you open it, you will find that all the text is displayed in vector graphics.


Then, if you find that some characters are displayed in garbled form, these words (you can use CTRL and SHIFT keys to select more), click the Delete key to remove.
Then save the file, then click "Font-install" (we recommend that you close all other Windows programs before you do this), and then start Flash (reboot If you are already running)
Now, create a dynamic text, select the font you just edited, and embed the font outline.
Export a SWF file, you will find that your Flash file will be smaller than before (but it may be more large, if so, you measure it yourself.) Delete Some of the fonts that may be used almost 0 if needed.
Q: Can font creator Add or modify text?
A: Yes. You can double-click the character to enter the edit state to modify the shape of the text.
Here, the author made a small thing, is by modifying the font to achieve. Notice, this does not need as to be able to achieve Oh!



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.