FAQ 3

Source: Internet
Author: User

Taking the hexagonal form as an example: first draw a horizontal line segment, then copy the line segment and rotate it for 120 degrees. Repeat steps 2nd and 3 to copy and rotate it for five times, finally, use the arrow tool to place the heads and tails of each line segment. Note that the adsorption function is enabled.

61. How to crop sound?

A: Select the layer where the sound is located, press Ctrl + F, and select the above sound tab. "Edit..." is displayed below... click it to crop your incoming sound.

62. How to make the font clear in Flash?

A: use Ctrl + B to scatter the FONT, or use CW FONT as the traditional Chinese character.

63. How to create circular motion of text?

Answer: File-> New, text tool input "B" (font Arial Black, size 24, blue), Add Guide Layer, it is best to select the magnet tool (Snap), select the circle tool, line Color is eye-catching, and Fill Color is colorless (there is a box in the upper left corner of the Color palette, click it to change to X), and hold Shift on the Guide layer to draw a circle, drag "B" to the center of the top of the circle with an arrow tool. On the left of "B", use an eraser to erase a small gap and select the letter layer, insert a key frame at 16th frames by pressing F6 (you want to insert a key frame at the first frame if you want to write a few words ), drag "B" to the circle on the left of the gap (this is the position of the last letter, you can try multiple times to make all the letters evenly exclusive), right-click the first frame and select Properties, set the Motion change and place the right sign before Orient to path direction so that the letters can be vertically arranged in the circumference and OK. Click the letter layer, select all frames, and press F6 to change all frames to key frames. Click the fourth Time Line icon Edit Multiple Frames, click the fifth Modify Onion Markers, and select Onion All. All right, all 16 letters are displayed. Of course, they are all "B ". Delete the Guide layer. Select all letters and press F8. Press Ctrl + L to open the library window, double-click Symbol 1 to enter the editing page, select a letter, and double-click to change to the expected letter and color. Modify all the letters in sequence. OK. The main project has been completed. Below we can try it. Create a new layer to delete the original letter layer. Drag Symbol 1 into the first frame of the new layer, insert a key frame in the second frame, right-click the first frame, select Properties, select Motion, Rotate select Clockwise, 1 times, and then publish.

64. How can I create an image repeatedly?

A: You can create several more layers in one MC, import a graph to each layer, and set the order.

65. How to make the effect of writing?

A: Enter the text to be written, for example, "dynamic", select the font, adjust the size, and scatter. This is the last frame. Copy and insert to the previous frame. Use an eraser to erase the last point of the animation, which is the last frame. Copy again, and then erase a point in the inverse order of the Strokes. This is the last third frame. The same is true. You can feel it by yourself or refer to the source files for writing effects. Note that you need to add one or more key frames when writing a pause, as long as it depends on the playback speed.

66. How can I optimize my work?

Minimize the use of large-area gradient, especially deformation (Shape). Second, minimize the number of gradient objects at the same time point. It is best to arrange the changes of each object at different times.

To reduce the animation file size, use less bitmap or vector images with more nodes. The border of a line or component should be in the basic shape, with less dotted lines or other fancy shapes. Try to use the built-in font of windows, use less eccentric Chinese fonts, and minimize the font types of an animation. Less frame-by-frame animation, repeated motion changes should adopt Graphic or Movie clip. Suitable bitmap and sound compression ratio are used for animation output.

67. How to call the EXE file in Flash?

Fscommand ("exec", "path/*. exe ")
Path is the path name and must be an absolute path.

68. How can I disable the exported. EXE file automatically?

On the last frame of flash or on the button
Fscommand ("quit ")

69. How to adjust the font size in the Action?

Click the triangle button in the upper-right corner of the Action panel, select Font Size from the menu, and select a large or medium Size based on your needs. The default Font is a small Font.

70. How do I disable the menu, Zoom In (Out) function, and complete the direct full screen when double-clicking the SWF file?

Full screen-> FS Command ("fullscreen", true) this full screen simply fills up the screen, and the animation part does not zoom in.
Disable zoom-> FS Command ("allowscale", False)
Disable menu> FS Command ("showmenu", False) MovieName_DofsCommand to mount the Flash animation. MovieName is the Name of the Flash animation. It is specified by the Name attribute of the Embed tag or the ID attribute of the Object tag. If the Flash Player Name is MYMOVIE, the JS function Name should be called MYMOVIE_DOFSCOMMAND.

71. How can I send an email to someone else through the button?

Add the following statement:
Get url: mailto: yourname@sina.com

72. What is the effect of TV interference?

1. First draw some short white lines (a little finer, a little grayscale), then make several key frames, randomly place them in each frame, and play them continuously.

2. use PS to make a TV snowflake image, then import it to Flash, select the image, and use anf8 to generate MC for the image and put it in the home scene, named xh, add the following in the first frame of the scenario:

SetProperty ("xh", _ x, random (10)-5 );

SetProperty ("xh", _ y, random (10)-5 );

Add gotoAndPlay (1) in the second frame );

73. Will the Stop script in the key frame take effect?

The Stop statement only stops frame playback and does not Stop the execution of the Action statement of the key frame where the Stop is located.

74. What is the role of the path in Flash?

If you have used DOS, you can easily understand the FLASH path. Simply put, the path is the path through which variables or symbols can be found during FLASH programming. Similar to DOS, it is divided into two types: Relative and absolute.

75. What is the difference between "/" and "/" in "Action?

/: Indicates the variable in a path. For example,/: a indicates the variable a in the root path, and/indicates the absolute path.

76. How to control the playback of the main scenario in MC?

In Flash 5, _ root indicates the main scenario. You can use _ root. play () to control the playback of the main scenario.

77. How to open a new custom browser window in Flash?

Add:
Get URL ("java script: too many open('new.htm', 'newwin', 'width = 320, height = 320 ');")

78. Click a button.MusicAnd click it to stop the music. What should I do?

Set gotoandplay () in the first frame to play sound.
Next, jump to another frame and stop all sound.

79. How do I 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 position of the X and Y points of the MC, this position is used to control the MC size. "Size_x" and "size_y" are the values that set the specific size of the MC.

80. How can I change the position of the swf after the call?

A simple method is to move the MC that has been placed in the Mocie file, just as we used to change the position of an image 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, and "_ x" and "_ y" refer to the X coordinate and Y coordinate points, position_x and position_y are specific positions.

81. How can one MC call a variable set in another MC?

Enter this statement in mc: (a B is the variable name, and mcname is the entity name of mc)

A = _ root. mcname. B;

This statement makes variable a of the current mc call _ root. mcname variable B of the mc

82. How to open a Word document in Flash?

Flash does not support the use of word files, but the browser can directly open the .doc file, then you can use getURL to solve the problem, the path uses an absolute addressHttp: // www.../word.doc.

83. How to call mpeg files in Flash?

Flash does not support calling mpeg files. First install a third-party software named Swiffcanvas1.0. Then open the fla file. If The Directory of the mpeg file is aa and the mpeg file name is bb, then you can add the following statement:

FS Command ("exec", "SwiffEXEC (LOCAL: aaaI. mpeg )");

Then, output the fla file as an exe file, open the exe file with Swiffcanvas, and set it in Swiffcanvas to fulfill your requirements. The output is the. Exe file.

Supplement: If you find the above method troublesome, you can download an auxiliary software license (available in the Flash software Park), which can convert mpeg and other video files into swf files, then import the file into flash or call it from outside. For details about calling the animation from outside, refer to the following answer.

84. How do I load external or other animations in MC?

We often use loading sub-animations (swf files) in active paintings. However, after loading in this way, the loaded animation is often not at the coordinates we need. There is a simple way to solve this problem. Create an empty MC first. Drag the MC to the home scene and name it Instance, such as "bb ". Add Action to the corresponding frame of the main scenario, fill in the URL in the action panel with the swf file to be loaded, and select "Target" in the "Location" column ", enter "/bb" in the blank bar ". In this way, the swf file is loaded into the MC named "bb. Now, we only need to control the position of the MC in the scene to control the precise coordinates of the loaded sub-animation.

85. How to use js or java in Flash?

A: on (release ){
Get URL ("java script: alert '........'";)
}

On (release ){
Thanx = "thanks ";
}

86. How do I enter Chinese characters in the edit window of Actionscript?

You can change the font of Flash, that is, delete WindowsFontsModern. fon. In this way, the font of the window can be edited much more.

87. How does Flash connect to the database?

A: You can only use background files, such as CGI scripts, Active Server Pages (ASP), or Personal Home Page (PHP. Transfer the value to flash to perform database operations.

88. Can javascript be called in FsCommand?

A: FsCommand can call the JS function MovieName_DofsCommand to load the Flash animation. MovieName is the Name of the Flash animation. It is specified by the Name attribute of the Embed tag or the ID attribute of the Object tag. If the Flash Player Name is MYMOVIE, the JS function Name should be called MYMOVIE_DOFSCOMMAND.

89. 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.Webpage designYou can use FLASH to create navigation controllers, Dynamic LOGOS, long animations containing synchronous sound effects, and even complete and sensitive web pages.

90. 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.

91. 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.

92. How can we 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. Legend

93. 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.

94. After the Flash is properly placed on the html, it is always circulating. How can we prevent it from repeating?

The last local Action is set to Stop)

95. How can I provide a pre-loaded LOADING location for my 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.

What? Do you want to LOADING in great detail? Then you can refer to others' works''

96. How to click a button to open a page html instead of a webpage.

Create a button and write it directly AS above:
On (release ){
GetURL ("***. html ");
}
Here, **. html is the name of the page file you want to open. It can also be a URL, for exampleHttp: // www.

97. I placed a huge MC on the "OVER the mouse" button. Why did I change 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.

98. 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)

Fscommand ("trapallkeys", "true/false"); (shortcut key setting, TRUE shortcut key on, FALSE shortcut key off)

Fscommand ("exec"); (called by the EXE program)

Fscommand ("quit"); (exit to close the window)

99. 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. This is neat)

100. How can I import sound into an MTV video?

It's easy. Just import CTRL + R to your audio file.

101. The music and lyrics of my production site are always out of sync.

CTRL + F open the audio control panel, find the sound tab on the right, and adjust the sound synchronization effect to STREM (audio data stream) mode.

102. How can I make Font effects very beautifully?

With third-party software Swish and Swfx, software resources in the Flash Bar are downloaded.

103. Q: How can I automatically disable an animation after it is completed?

A: Select FSCOMMOND in the ACTION of the last queue, and select QUIT on the right.

104. 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 affects the position and size of the imported SWF.
SetProperty ("mc", _ xscale ,"****");
SetProperty ("mc", _ yscale ,"****");
SetProperty ("mc", _ x ,"****");
SetProperty ("mc", _ y ,"****");
SetProperty ("mc", _ Alpha ,"****");............

105. 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.

106. Q: How can I set a page as a home page and add it to my favorites using actionscript?

A: 1. Use the getURL method:

Set as homepage:
On (release ){
GetURL ("javascript: void (document. links [0]. style. behav Upload or = 'URL (# default # homepage) '); void document. links [0]. setHomePage ('http: // www.flashempire.com/'); "," _ self "," POST ");
}

Add to favorites:
On (release ){
GetURL ("javascript: void window. external. AddFavorite ('http: // www. ', 'flash');", "_ self", "POST ");
}

2. The fscommand method is a bit complicated.

1. Add the code on the flash button first:

Home page:
On (release ){
Fscommand ("setHomePage", "http: // www .");
}

Favorites:
On (release ){
Fscommand ("addFavorite", "http: // www. | Flash Bar ");
}

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. behav URLs or = "url (# default # homepage )";
Document. links [0]. setHomePage (args );
} Else if (command = "addFavorite "){
Args = args. split ("| ");
Window. external. AddFavorite (args [0], args [1]);
}
}

Finally, if there is no link in the html, do you still need it? Lt; script LANGUAGE = javascript> add <a href = "javascript:"> </a>

107. Q: How to introduce a 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.

108. Q: How can I open a new custom browser window in Flash?

A: This question is very common and has been discussed countless times. Some useful posts in the past cannot be found. Now we can reorganize them as follows:
The common and very simple method is to use a similar
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 it in File> Publish setting...
Tempalte in HTML: Flash with FSCommand
Release
3. Edit the html file generated by publishing.

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.