1. What is flash?
Flash movies are portraits or animations designed for Web Services (of course, they can also be used for other purposes ). It mainly contains vector graphics, but it can also contain imported bitmaps and sound effects. It can also link the information entered by the browser with interactivity to generate Interactive effects, or generate non-linear movie animations. This animation can interact with other web programs. Web designers can use flash to create navigation controllers, dynamic logos, long animations containing Synchronous sound effects, and even produce complete and sensitive Web pages. 2. How to make a simple Flash animation?
First, open your Flash software and draw a circle (the circular tool on the Left can be drawn directly). Then press F8 to add it as a symbol, next, press F6 to add a key identifier, move the position of the symbol appropriately, and right-click the position of the first symbol and select motion. 3. What is a vector image?
Vector images can be scaled at will without affecting the image quality of flash. bitmap images are generally used only as static elements or background images. Flash is not good at processing bitmap images. Therefore, animation of bitmap image elements should be avoided. 4. How to quickly align objects in Different frames?
Use inspector "CTRL + ALT + I" to directly input coordinates.
Or the toolbar> WINDOW> Panel> arrange "Ctrl + K" to bring up the panel. 5. How can I adjust the transparency of a symbol/MC?
Select symbol/MC, and find modify> instance> color effect> alpha (transparency) on the menu bar, after the flash is properly placed on the HTML, it always loops. How can we keep it from repeating?
The last local action is set to stop (STOP) 7. How can I perform a pre-loading location loading for flash?
Use the action syntax if frame is loaded to create a new layer,
First frame,
Ifframeloaded ("scenario", frame) {// if the number of records in the scenario has been loaded
Goto and play () // jump to and play a certain role (set by yourself)
}
Second frame,
Goto and play ("scenario 1", 1) // jump to and play the first loop
After adding a load-based Mc Loop Playing in the middle of the two frames, it will be OK. 8. How to click a button to open a page HTML instead of a sheet.
Create a button and write it directly as above:
On (release ){
[$ Nbsp] [$ nbsp] [$ nbsp] [$ nbsp] geturl ("***. html ");
}
Here ***. HTML is the page file name you want to open, of course, it can also be other URL addresses, such as http://www.chinadv.com/forum; 9, I put a lot of MC in the button over hosts, why do I move my mouse to the home State without clicking the button?
The real activation area of the button is in the hit (Press) cursor location. If you want to control the button position as a fixed value, you can draw a transparent image in the hit cursor to determine. 10. If you right-click the screen? What do FS commands mean?
Fscommand ("fullscreen", "True/false"); (full screen setting, true on, false off) fscommand ("showmenu", "True/false "); (right-click menu settings, true display, false Do Not Display) fscommand ("allowscale", "True/false"); (scale setting, true auto scaling, false: adjust the image size without affecting the film size. fscommand ("trapallkeys", "True/false"); (shortcut key setting, true shortcut key on, false shortcut key off) fscommand ("EXEC"); (called by the EXE program) fscommand ("quit"); (exited to close the window)
11. The font in Flash is always vague. Can I use a clearer method?
After writing the text, press Ctrl + T to open the text settings panel, and select the design font in the final text box option. (It is best to use, with a size of 12 or 8.) 12. How can I import sound into an MTV video?
Very easy. Just press Ctrl + R to import the sound file. 13. The music and lyrics are always not synchronized.
CTRL + F open the audio control panel, find the sound tab on the right, and adjust the sound synchronization effect to the strem (Audio Data Stream) mode. 14. Why is the MTV file very large?
Refer to this Article 15. How can I make font effects very beautifully?
Some third-party software swish and swfx can be used. 16. How to optimize flash?
(See 30. Q :)
17. How to load a SWF File
Loadmovienum
Add an empty space MC. Object Name: OK, action:
Loadmovie ("Dr/test.swf", "_ root. OK"); controlling the position and size of this MC and other relative properties will affect the position and size of the imported SWF.
Setproperty ("MC", _ XScale ,"****");
Setproperty ("MC", _ yscale ,"****");
Setproperty ("MC", _ x ,"****");
Setproperty ("MC", _ y ,"****");
Setproperty ("MC", _ Alpha ,"****");............ 18. How to import a bitmap with better background transparency?
We recommend that you use the PNG format (firework). Flash provides excellent support for the transparent effect of PNG bitmaps. 19. Q: How can I set a page as a home page and add it to my favorites using ActionScript?
1. Use the geturl method: set as the homepage:
On (release ){
Geturl ("
Javascript: Void (document. links [0]. style. behavior = 'url (# default # homepage) '); void document. links [0]. setHomePage ('HTTP: // www.chinadv.com/'); "," _ Self "," Post ");
} Add to favorites:
On (release ){
Geturl ("
Javascript: Void window. External. AddFavorite ('HTTP: // www.chinadv.com ', 'China digital video online'); "," _ Self "," Post ");
} II. The fscommand method is a bit complicated. 1. Add the code on the flash button: homepage:
On (release ){
Fscommand ("setHomePage", "http://www.chinadv.com ");
} Favorites:
On (release ){
Fscommand ("AddFavorite", "http://www.chinadv.com | China Digital Video online ");
} Then, select flash with fscommand in the release settings and publish it to HTML 2. Modify HTML: Find
// Handle all the fscommand messages in a Flash Movie
Function sethomepage_dofscommand (command, argS ){
}
Modify this section:
// Handle all the fscommand messages in a Flash Movie
Function sethomepage_dofscommand (command, argS ){
VaR sethomepageobj = internetexplorer? SetHomePage: Document. setHomePage;
If (command = "setHomePage "){
Document. Links [0]. style. Behavior = "URL (# default # homepage )";
Document. Links [0]. setHomePage (ARGs );
} Else if (command = "AddFavorite "){
ARGs = args. Split ("| ");
Window. External. AddFavorite (ARGs [0], argS [1]);
}
} Finally, if no link exists in the HTML, you must add <a href = "before <script language = JavaScript>"
Javascript: "> </A> 20. How can I automatically disable an animation after it is completed?
Select fscommond in the action of the last queue, and then select Quit on the right.
21. How to introduce transparent bitmap?
A: It is best to input a PNG file. PNG is a fireworks document. Of course, you can also enter a transparent GIF image in gif89a format. 22. How to open a new custom browser window in flash?
This is a common and simple method.
Get URL ("
Javascript: Too Many open('new.htm', 'newwin', 'width = 320, Height = 320 ');")
There are many problems. For example, after opening a new window, the content of the original window is replaced. 1. Insert the following statement where the new window is opened in flash:
FS command ("open_window", "filename.htm; newwin; toolbar = No, location = No, status = No,
Menubar = No, scrollbars = No, resizable = No, width = 320, Height = 200 ")
Where arguments:
Filename.htm file name to open
Newwin new window name
Toolbar = No, location = No, status = No,
Menubar = No, scrollbars = No, resizable = No, width = 320, Height = 200 related properties of the new window, including size
Note that the preceding three parts must be separated by semicolons (;). 2. Set them in File> Publish setting ....
Tempalte in HTML: Flash with fscommand
Release 3. Edit the HTML file generated by the release and find the following code: ---------------------------------------------------------------------------- <script language = JavaScript>
<! --
VaR internetexplorer = navigator. appname. indexof ("Microsoft ")! =-1;
// Handle all the fscommand messages in a Flash Movie
Function movie1_dofscommand (command, argS ){
VaR movie1obj = internetexplorer? Movie1: Document. movie1;
//
// Place your code here...
//
}
...
Rewrite to: Code: ---------------------------------------------------------------------------------- <script language = JavaScript>
<! --
VaR internetexplorer = navigator. appname. indexof ("Microsoft ")! =-1;
// Handle all the fscommand messages in a Flash Movie
Function movie1_dofscommand (command, argS ){
VaR movie1obj = internetexplorer? Movie1: Document. movie1;
// Place your code here...
If (command = "open_window ")
{
Arg_array = args. Split (";");
Window. Open (arg_array [0], arg_array [1], arg_array [2]);
}
}
...
-------------------------------------------------------------------------------- OK!
If you want to insert an existing HTML page, you can publish it first and then copy the corresponding code to the HTML file. 25. How to Use action to control reverse playback?
Make an MC and put it in a proper place. There are two frames in it.
Frame 1:
If (getproperty ("/a", _ currentframe) <= 1)
Begin tell target ("/")
Go to and stop (getproperty ("/a", _ totalframes ))
End tell target
Else
Begin tell target ("/")
Go to and stop (getproperty ("/a", _ currentframe)-1)
End tell target
End if
Frame 2:
Go to and play (1) can reverse/a, but there is another problem that cannot be solved:
What if I just want to stop for a while? [/Color]
For example, I added a stop at the tenth key frame and a stop at the second key frame. Now I want to stop at the Stop frame, but there is no way to do this. If (getproperty ("/a", _ currentframe) <= 1)
Begin tell target ("/")
Go to and stop (getproperty ("/a", _ totalframes ))
End tell target
Else
Begin tell target ("/")
Go to and stop (getproperty ("/a", _ currentframe)-1)
End tell target
End if
Frame 2:
Go to and play (1)
This section must be placed in a MC,
Assume that the MC is/B.
Set the frames to be stopped at/
Begin tell target ("/B ")
Stop
End tell target
Stop
26. What is the difference between an internal sound role and an external sound role?
No big difference
If an external file is exported, the file size can be reduced.
The DCR file must be used together with the DCR file at the time of release or when the disc is made, and the path remains unchanged. There is another problem of stream playback.
If the imported audio file is too large, the synchronization effect will be affected and the sound lags behind. (Because ctor pre-planted the internal sound into RAM before playing it) the external sound file is streaming, playing and downloading. But pay attention to the connection path. 27. How to make the sound infinite loop?
Define the number of audio loops as large enough. If your music is set to strem, your SWF file will be large enough. 28. How to control the playing and stopping of sound
Right click the sound file in the library and select the linkage...
Set export this symbol
Entifier:
Get the name "sound" and you can set it in the stage.
S = new sound ();
S. attachsound ("sound"); To turn off the sound, you only need
Run:
S. Stop ();
To start playing the video
S. Start (); 29. How to call the SWF file and control its size and location?
1. How to call a SWF file: Call a SWF file and place it to a layer loadmovienum ("path/moviefile.swf", 0 );
Its "path/moviefile.swf" is the address of the file to be transferred, "0" is the layer number, and "0" is the layer 0th. Call a SWF and set it to MC.
Loadmovie ("path/moviefile.swf", "mc_name"); its "path/moviefile.swf" is the address of the file to be transferred, and "mc_name" is the name of MC. Ii. How to change the SWF size after calling: setproperty ("mc_name", _ XScale, size_x );
Setproperty ("mc_name", _ yscale, size_y); "mc_name" is the name of the MC, "_ XScale" and "_ yscale" refer to the positions of the X and Y points of the MC, which are used to control the MC size. "Size_x" and "size_y" are the values that set the specific size of the MC. 3. How to change the position: A simple method is to move the MC that has been placed in the movie file, just as we used to change the position of a picture and drag it with the mouse.
Another method is to use setproperty to change the position of the MC.
Setproperty ("mc_name", _ x, "position_x ");
Setproperty ("mc_name", _ y, "position_y"); "mc_name" is the name of MC, "_ x" and "_ y" refer to the X coordinate and Y coordinate points, while "position_x" and "position_y" refer to the specific positions.
[Reprint] 30. How to optimize Flash animation to make the file smaller and play more smoothly?
Flash, as a professional software developed by Macromedia, is easy to operate and has powerful functions. It has become a de facto standard for interactive vector graphics and Web Animation.
However, if the size of the Flash Movie File is large and hundreds of KB, it will often make the online viewers lose patience. It is necessary to optimize Flash movies, but the premise is that we cannot damage the quality of movies.
1. Use multiple symbols ). If an element in a movie is used more than once, consider converting it into a symbol. Repeated use of symbols does not significantly increase the file size, because the file only needs to store the graphic data of the symbol once.
2. Use gradient animation whenever possible. Whenever possible, try to use the Create motion tween method to produce the animation effect, instead of frame-by-frame) to generate an animation. The more key frames are used, the larger the movie file.
3. Use solid lines instead of dotted lines. Limit the number of special line types, such as dashes, dotted lines, and wavy lines. Because the line diagram of the solid line is the simplest, using the solid line will make the file smaller.
4. Use multiple vector images and less bitmap images. Vector images can be scaled at will without affecting the image quality of flash. bitmap images are generally used only as static elements or background images. Flash is not good at processing bitmap images. Therefore, animation of bitmap image elements should be avoided.
5. Use a simple vector image. The more complex a vector image is, the more effort the CPU can perform. You can use the menu command modify (modify)/curves (curve)/optimize (optimize) to delete unnecessary lines in a vector image to reduce the file.
6. The imported bitmap image file is as small as possible and compressed in JPEG mode.
7. It is best to compress audio files in MP3 mode. MP3 is a format that minimizes sound usage.
8. Limit the font and Font Style quantity. Try not to use too many different fonts. The more fonts you use, the larger the movie file. Use the font set in flash as much as possible.
9. do not include all font shapes. If a text field is included, select include only specified font outlines (only including the specified font shape) in the text field Properties dialog box ), do not select include all font outlines (including all font shapes ).
10. Try not to scatter the font (the menu command is modify/break apart ). After the font is dispersed, it becomes a graph, which will increase the file size.
11. use as little as possible the transition fill color. Filling an area with the transition fill color takes about 50 bytes more than filling the area with solid color.
12. Try to narrow down the action area. Limit the area in which the key frame changes. Generally, the action should occur in the area as small as possible.
13. Try to prevent multiple objects from generating actions at the same time. Do not arrange objects with actions in the same layer as other static objects. Action objects should be arranged in their own layers to accelerate the Flash Animation processing process.
14. Run the load movie command to relieve the burden on starting a Movie Download. If necessary, you can divide a movie into multiple sub-movies, and then use the load movie and unload movie commands in the main movie to call and uninstall the sub-movies at any time.
15. Use the pre-Download screen. If necessary, you can add a predownload screen (preloader) at the beginning of the movie so that the video can be played smoothly. Large audio files must be pre-downloaded.
16. The smaller the length and width of a movie, the better. The smaller the size, the smaller the movie file. You can use the menu command modify (modify)/movie (movie) to adjust the length and width of a movie.
17. Make a small-sized movie and then enlarge it. To reduce the file size, you can consider setting the size of the movie to a smaller value in flash, and then export the mini SWF movie. Next, set the menu file/publish settings... (Release settings ...) In the HTML tab, the size of the movie is larger. In this way, a large movie is displayed on the webpage, and the image quality is intact and beautiful.
When making these changes, do not forget to test the playing quality, download status, and view the file size of a movie at any time.
31. Why is it always moving along the straight line when using flash for "moving along the track"? I compared it with the tutorial. The practice is exactly the same. Why not?
A: This question seems to always plague beginners, but it is actually very simple. The center position of the first and second frames is not placed on the track. A simple check method: You can set the screen size to 4 00% or greater to check whether the circle in the middle of the graph is aligned with the motion track. 32. Why is rotation always not fast in flash. Is there any way to make it faster?
Adjust the playback speed quickly, for example, 38 Gb/s/second. The method is as follows: Main Menu-> modify (modify)-> movies (video), and increase the frame rate (film speed) the value can be 33. What is "hit" used for creating buttons? When will it be used? [/Color] the usage of "hit" is not detailed in many tutorials. [/Color]
Hit is the exciting area of the specified button. The areas set in hit are not displayed during playback. If the hit area is not specified, flash usually uses your new area as the excitation area by default. For example, when using text as a button, it is best to define a rectangle as the trigger area, rather than the default text content. 34. How can I put flash in fp2000 and fp98?
Fp98 and fp2000 have poor support for flash, so Flash Animation cannot be directly inserted. The solution is to <;; you can copy some of the objects. It is recommended that you use dreamweave to create a flash animated webpage, which is much more convenient. 35. How to output a FLA file to a GIF file like SWF
First in publish settings (release settings)-> Format (Format)-> GIF image (GIF image), and set it accordingly, use publish (publish) function to output GIF files. If the FLA file contains MC, The GIF file will not contain the animation in MC, but will only convert the first segment of m c to GIF. 36. After you put a flash with only a dozen K pieces of data into a webpage, why does it take a long time for flash to be displayed when previewing the webpage.
Check whether the name and path of the SWF file are correct. If the path is incorrect, the system will try to wait for a long time. 37. How to set the flash background?
To set the background color, press Ctrl + m to select the background (background) in the color field. To use a picture as the background, you only need to import (input) at the bottom layer) an image is ready. 38. In flash, how do I draw a circle and modify the color of the circle?
A: Set the fill color (the upper left corner of the color setting) to none when the circle is drawn! Set the border color to the corresponding color. 39. How can we turn words into rings and rotate around the center of the circle?
You can use CorelDraw or related software and import it to flash! 40. How can I change the font color of a TXT file imported externally?
Set the font color when setting the text box. 41. You can use the Pencil tool to draw a circle when you start flash4, but when you create a new one, use the Pencil tool to draw a circle (the pattern is smooth). It is not a circle or an elliptical! What's going on?
Shift to draw a circle at the same time, you can draw a circle! 42. It is always difficult to align the text with the image. How can I align the target and place them in the desired position.
Select the target, and then choose Main Menu> Windows> Inspector> object to adjust its height (H) and width (W), the start position (x, y) and whether the center is aligned (use center ). 43. How can I adjust the playback order among multiple scenarios of Flash 4?
Main Menu-> Windows (window)-> Inspector (View window)-> scene (scene), you can adjust the playing sequence, change the name, delete the scene, and other operations. 44. How can I watch Flash Animation in Linux? Is there a plug-in for Linux?
A: Yes. But you need to find it yourself. 45. Where has the flash plug-in just been downloaded and installed settled in the computer?
Check 46 in C: \ WINDOWS \ SYSTEM \ macromed \ flash. How can I generate an EXE file directly from the FLA file?
A swf file with a title bar can generate an EXE directly through the menu. in Flash Player, open the SWF file and select File> creat projector to create a project ). If the file title bar is not displayed in full screen with the FS command, you can use the CTRL + F hotkey to generate the file. The generated execution file has a built-in player, which is more than two hundred K larger than the s wf file. 47. How can I convert a good flash into a screen saver?
A: Use SWF browser 2.8 or screensaver. 48. How can I borrow content from others' works. Whether the SWF file can be fully decoded into a FLA file.
With SWF browser 2.8, You can unbind other SWF files and extract and save the images and sounds. So far, no software can completely convert SWF files into FLA files. 49. How to Implement 3D effects in flash.
A: In flash, 3D animations cannot be generated. You need to use other software. For example, 3D max, and then install vecta3d or javasstrate! The 4.0 (4.1) Plug-in can directly output an animation in swf format. (The new flash version is becoming more and more powerful, maybe 3D animation can be done in the future) 50. Can the animation background of Flash be transparent? How to Set it?
Of course you can. One of the HTML columns in the publishing settings is the window mode. Select a transparent window and click OK. If you reference flash in HTML, you can add the following statement in front of the HTML file :. However, transparency can only be used in IE, and becomes invalid in NC.
51. Is there any way to convert a normal bitmap image into a vector image?
You can also use adobestreamline software or freehand8 for conversion. 52. Which format (suffix) is a vector image? Which software can be used to browse these vectors?
*. Ai *. EPS *. WMF *. CDR. The first three can be directly referenced in flash. The CDR format must be converted to the first three formats for reference. If you have installed corldraw, You can preview the CDR format in resource manager. No software in other formats can browse a large number of images as ACDSee does. 53. In SWF, how does one remove the content displayed by right-clicking?
Check show menu in publish settings. However, for the flash on the web page, it will always contain the flash words. If you make it an EXE file, nothing will happen. 54. How can I enable full screen playback when double-clicking a SWF file?
Select fscommond in the action of the last queue, and then select fullscreen and true on the right! 55. How to make a music switch? Put the music into MC and use tell target to control the playing and stopping of the MC. 56. How can I adjust the volume?
The volume cannot be continuously adjusted with pure flash, but can only be adjusted in segments. 57. How to make the sound infinite loop?
A: define the number of cycles of the voice to be sufficient for defecation. 58. How can I intercept music?
Soundforge, which is recorded using the inner recording method. The effect is very good. If the volume is reduced, use dynamic -- Graphic -- expand in effect to expand. In addition, cooledit and goldwave are also good choices.