[Flash]-108 flash FAQ

Source: Internet
Author: User
Tags stop script transparent image password protection

Source: Network

 

1. What do MC, FS, And as often mentioned in the Forum mean?
MC = movie clip (animation fragment); FS = fscommand, a very important command set of Flash; As = Action Script is flashProgramming Language.

 
2. What is the difference between MC and general layer? Under what circumstances does it work?
MC you can think of as an independent object. And it is an animation. Its feature is infinite nesting. The layer is an independent space that can better plan your production ideas. In one layer
There is an event.

3. How does Mc play in the scene?
Drag the MC to the scene and it will automatically play the animation during playback. If you do not add stop to the last frame, the MC will be a loop by default. To watch the playback effect, press Ctrl + enter. One
A long Mc occupies only one frame in a scenario. If it is an animation clip of many frames, the MC replays every frame during execution.

4. Why is an object always moving along a straight line when we perform an animation of "moving along trajectory?
The center of the first or last frame object is not placed on the track. There is a simple way to check: You set the screen size to 400% or greater and check whether the circles in the middle of the graph are aligned with the motion track.

5. Why is the object always moving along a straight line during closed track path animation?
Remove the closed path and try again.

6. How to Solve the Problem of rotating speed in flash?
Modify> movie: adjust the system in the text box after frame rate (or press Ctrl + M), or shorten the distance between frames.

7. Why are text buttons not flexible?
When you create a button, you do not specify the hit area (the hit area is the trigger area of the button). When you create a text button, you generally define a rectangle as the hit area, if the hit area is not defined
The system uses text as the trigger area of the button, which is not flexible. The hit area is hidden and not displayed in the scene.

8. How can I output an animation into a dynamic GIF file?
First, go to publish Settings> Format> GIF image and set it accordingly. Then, 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 GIF of MC to GIF.

9. How to output a frame image in flash?
Select File> Import. In the displayed dialog box, select GIF image from the drop-down list.

10. How to set the flash background?
To set the background color, press Ctrl + M and select backround (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.

11. How to set the background to the desired color in flash?
Select the background color. There is no box for you to fill in the color.CodeBut we can use other methods to draw a box in the scene and fill it with the color you want (you should be able to enter the color code at this time, for example, # ff9900 ), then select modify movie (CTRL + M) and use the dropper tool to select the color you just painted. Even so, the color may be a little different, maybe it is a Flash 5 bug.

12. How can I change the color of the circle edge line when I draw a circle?
You can call out the color palette by selecting the stroke color button in the upper left corner of the mixer panel to change the edge color.

13. How to draw a standard positive circle?
Hold down SHIFT and draw with the mouse.

14. How to align the targets and place them in the desired positions?
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 ). To Merge multiple objects, press Ctrl + K.

15. How to make deformation animation of text?
Press Ctrl + B to separate the text in the two dimensions and then perform shape movement on the text in the previous dimension. In addition, symbol cannot be used for shape. That is to say, the object to be deformed is a vector image.

16. How can I hollow out text or graphs?
To scatter a word or image, first use the ink bottle tool to color its edge, and then select the middle part to delete it.

17. How can I adjust the playing sequence of multiple scenarios?
Windows> Inspector> scene allows you to adjust the playing sequence, change the name, and delete scenes.

18. How do I move a frame of MC to scene?
You can select all MC frames, press CTRL + ALT + C, and then switch to scene and press CTRL + ALT + v.

19. How to put SWF in fp2000?
Select "insert"-> "insert ActiveX" under the menu to see if there is any Shockwave Flash Object project. If not, select "Custom" and check in the box before "Shockwave Flash Object. Then press OK. In this case, a white option is displayed in the editing area. Select it. Double-click. In this case, you can enter the path of your flash and whether it is a loop. Remember, when Flash is inserted in FrontPage, FrontPage does not define the size for flash. You must define the size by yourself: double-click the white Block option and select the object tag, change the width and height to the desired size. In fact, it is better to use dw with FP.

20. How can I extend a line a little bit?
A key frame inserts a short line segment, and another key frame inserts a long line segment to perform shape animation on the previous key frame.

21. How can I change the overall size in Flash 5?
Create a new FLA, use the load movie method to import the original SWF to an empty Mc, and then control the position and zoom ratio of the MC. You can also press Ctrl + A to select all objects in all layers and then resize them.

22. How to merge layers?
Copy the first frame of the first layer to the last frame of the last layer, and create a new paste layer.

23. How to Select multiple frames?
You can use Shift + ALT + ctrl to select multiple frames, or click CTRL at the first frame to be selected, and then press and hold shift to end the frame.

24. How can I fix a background image and then perform an animation on it?
Place the image on a separate layer, lock the layer, and then create a new layer for animation.

25. How can I find the panel placed outside the window?
Move the status bar under windows to the bottom, zoom in and out the flash window, and click it to find the angle exposed by the Panel, and then drag it. If your display resolution is 800*600, adjust it to 1024, And then you can see the lost panel.

26. The created symbol may be out of the screen range. What should I do?
First, make a small one, and then zoom in proportionally on the transform panel.

27. How to test loading on a local machine?
Taking Flash 5 as an example, select control> test movie, open the Debug menu in the test window, and then select simulate different download speeds. You can also select Custom to set any download speeds, in this way, you can easily understand the role of your loading at Various connection speeds.

28. How do I customize shortcuts?
Select the Edit> keyboard shortcuts command.

29. How can I change the frame work zone of Flash 5 to the one of Flash 4?
Select the Edit> preferences command. In the pop-up panel, check the box before flash4 selection style and flash4 frame drawing.

30. How do I remove the shortcut menu of the Flash animation?
File> Publish setting, select the HTML Tag, remove the check box before the dispsay menu, and publish it.

31. How to convert a SWF file to an EXE file?
For SWF files with control menus, you can select File> creat projector to convert the files to EXE files. If the files are full-screen, you can press Ctrl + F to call out the menu and use the above method to generate the EXE file.

32. How to implement different backgrounds in a movie?
Different backgrounds can be automatically read In MC using the iterator or changed by the button hand.

33. How to Make the deformation process of your own deformation animation more accurate?
Select modify-transform-add shape hint in the menu to add a deformation key point. At the same time, the corresponding key point appears simultaneously at the last frame of the deformation. You can select multiple key points as needed. Select the number of key points and adjust the key points to achieve precise deformation. Note: Make sure that the menu view-show shape hints is enabled. Otherwise, the key points cannot be seen.

34. How can I keep the animation playing after a while?
Add an empty frame to make the animation stay. Add the number of frames according to the time to stay.

35. How is the effect of typing words one by one?
You can add a layer on the word, and then use the background color as a rectangle to cover the word. Set the rectangle to MC, give the object a name (Instance name), and then use the set property statement to program the movement of the rectangle. This method is suitable for scenarios with a large number of words. You can also use swish.

36. What is the effect of changing a string of words or images from fuzzy to clear?
First, create two layers, place the original clear image on the first layer, and then place the blurred image on the second layer to generate MC or graphic, then perform the Alpha gradient.

37. How to make the sound infinite loop?
Fill in the text box after the loop in the sound panel with a sufficient value.

38. How to synchronize the video and sound in flash?
Set the sound to stream in the sound panel.

39. How can we fix one side and zoom in or out one side at the same time when we zoom in or out an object?
Press the snap to objects button on the tool panel and select the menu modify> thansform> Edit> Center Command (Note: generate graphic or MC for this object first ), after a hollow cross is displayed in the center of the object, drag the cross with the mouse to move it to an edge that needs to be fixed, and then scale the other side. If horizontal width and horizontal height are raised at the same time, move the cross to the corner of the intersection of the two edges to be fixed.

40. How to Make a subtitle scroll from top to bottom, and the subtitle is smaller than the scene, and the text can be normally displayed at both ends of the subtitle?
You can first make the entire text, and then let it produce a motion animation to make it move from top to bottom. Create a new layer, draw a rectangle on the new layer, and define the layer as a shadow layer. The layer where the text is located is a masked layer, so that the test film can achieve the expected purpose.

41. What is the difference between graphic and MC?
The Animated graphic must be expressed in a fixed length on the time line, while MC is unrestricted. If you use the Stop command to stop the animation, graphic stops, and MC can continue the circular motion. The biggest difference between them is that graphic cannot be a tell target, while MC Can.

42. How do I act when the mouse approaches?
Make a button first, and place an MC (that is, the action to be generated) at the over frame of the button. Make other frames empty, that is, make a hidden button.

43. How to Make the symbol rotate horizontally?
Create a motion animation between two key frames, then select the symbol at the second frame position, open the menu and choose modify> tarnsform> flip vertical (vertical flip)/horizontal (horizontal flip) the command should be able to achieve your purpose.

44. How can I modify the size of the canvas without changing the position of the completed component?
This is a mistake. It should be noted that the component position does not change with the canvas. The effect you need should be that the component changes with the canvas size. The best way is to select the HTML option in the publishing settings during the publishing process to change the HTML file size format. If you want to add components to the scene, you only need to increase the width or height of the canvas.

45. How does flash read the text box "textfield "?
Load variables ("*. txt", 1) ------ create a text box. Ariable: Enter the name you want. For example, text ------- creates a TXT file. Put the content in the same directory as SwF: text = what you want

46. How can I export transparent images?
Only release of transparent GIF images is supported in flash. Check the GIF option in the release settings. The default format is opacity. In the drop-down list, the second option is transparent. Check it, you can publish a transparent GIF image.

47. How to keep the imported bitmap transparent?
Although Flash animation is based on vector graphics, bitmap can still be used if necessary, and flash4 supports transparent bitmap. to introduce a transparent bitmap, we must ensure that GIF images with transparent parts use the web216 color Security palette instead of other color palette. taking the commonly used Bitmap Processing Software Photoshop as an example, before converting an image into a GIF format, we need to change its pattern to "indexed color". In this case, we can select the "Web" palette as the color palette, the output is in gif89a format. After such a transparent GIF image is introduced into flash, the original transparent part can still be transparent.

48. How can I add password protection to my work?
Select the menu flie-export moive to bring up the following export Flash Player dialog box. Check "protect from import" to restrict others' use of the import of your work. But sometimes the source file is lost, or it is inconvenient to let friends import and use your animation. You can select "password" in the dialog box and then output the animation. In this way, you only need to keep your password in mind, so that you can import your animation to yourself or your friends.

49. How to quickly scale the scene size of completed animation?
The method is as follows: press Ctrl + A to select all objects in the timeline editing area (if the layer is locked, unlock it first ), click Edit multiple frames, click Modify onion markers on the right, and select onion all, you can use the "Zoom tool" to scale all objects to the desired size. Finally, press Ctrl + m to open the "scenario modification dialog box" (movie properties) and change the required scenario size. In the dialog box, press "Match: content. As a result, the scene size will automatically match the various components in the scene. This method can also be used to adjust the animation position of multiple frames at the same time, that is, when an animation (Note: Not a certain frame) is deviated from one side, this method can be used to adjust the animation position. Unlike the preceding method, you do not need to enter the "scenario dialog box" for processing.

50. How can I tighten the layer?
Click a black triangle icon on the rightmost side of the timeline and select short from the menu. In addition, you can use the option command to adjust the display ratio of frames.

51. How do I set the animation background to transparent?
One of the HTML columns in the publishing settings is the window mode. Select a transparent window and click OK. However, transparency is only available in IE and becomes invalid in NC.

52. How can I scale an image into a flash file without having to become a sawtooth image?
If the imported bitmap is a bitmap, it must be converted to the vector image format. The capacity of the vector image is small, and the amplification is not distorted. Many software can convert the bitmap to a vector image, however, Flash has provided a method to convert bitmap to bitmap, which is simple and effective. Press Ctrl + R to import the bitmap to be converted, and select the menu modify-trace bitmap. In the pop-up dialog box, the lower the color and minimum area are, the closer the last two items are, the more corners they are (that is, the more options the drop-down menu is in front ), the larger the image file, the finer the converted image.

53. How to arrange a line of Chinese characters around a circle center?
Create a character (do not scatter it), draw a circle as the guide line, and use the guide line to make the animation for this character for a week. A few words will be made into several frames, select "NONE" for rotate, tick the orient to path, change each frame to a key frame, delete the guide layer, select the edit multiple frames of the onion skin function, and select all frames, cut all the frames after the first frame, CTRL + Shift + V to the first frame, and then complete the circle. Change each character to what you want.

54. Which of the following methods is used to eliminate text sawtooth in Flash 5?
The text directly entered in flash can be displayed in a smooth manner.
Note: select the menu View> antialias texts.

55. How to plan the tool panel in flash?
Select window-Panel sets-default layout from the menu, and everything will be arranged neatly. I think every floating tool window is too big, right? Double-click the blue title bar above the window to minimize the size of the window. Double-click it to open it. In addition, there are shortcut buttons in the lower right corner of the Flash 5 window, which is very convenient.

56. How do I scale the scenario in Flash 5?
In earlier versions, you can only use the mouse or Magnifier tool to zoom in or out the scene size ., But it is different in Flash 5. By CTR + or CTR-, you can easily change the scenario size.

57. How to call external library files?
Open the file-open as library menu to easily use the symbols. Many people do not know this simple and practical problem! Further, you can also use the file-open as shared library command to directly call the online FLA file's symbol library, and the elements in this library only need to be downloaded once during client browsing, all the places where the movie of the library element is used in this project will automatically call these elements on the client without the need to download them again, which can save a lot of download time. This is particularly useful in collaborative development by teams. This is the charm of flash5 "shared Element Library.

58. What are the skills for converting formats in Flash 5?
Flash 5 has added comprehensive support for RealPlayer file format output. It is amazing to have another option for online publishing of your work. Some people like to use flash to make GIF animation, or convert it to Avi or mov format for other purposes. But sometimes we find that much animation information is lost for no reason. The reason is that movie clip is used in Flash animation. Accuracy is not a skill, but it is often confusing for beginners. There is one fundamental solution. Do not use movie clip in animation. Of course, you should not expect the generated GIF, Avi, or mov animations to support the interaction of SWF files. When the animation is output in AVI format, use the built-in compression method (such as Microsoft video1) in windows ).

59. When the output animation is saved as avi and then watched as Avi, MC does not move. How can this problem be solved?
1. Make the MC size you want and the video size you want, for example, 400*500.
2. Create a new layer.
3. input your MC directly to this layer.
Now, output an AVI file. If your location is incorrect, adjust MC.

60. How to draw a polygon in flash?
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?
Select the layer where the sound is located, press Ctrl + F, select the above sound tab, and there is a "Edit... "Click it to crop your incoming sound.

62. How to Make the font clear in flash?
Use Ctrl + B to scatter the font, or use CW font as the traditional Chinese character.

63. How to createCompositionCircular Motion?
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?
You can create several layers in one MC, import a graph to each layer, and set the order.

65. How to Make the effect of writing?
Enter the text to be written, for example, "Animation", 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)

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 to play the music, and then 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" are the positions of the X and Y points of the MC, this position is used to control the MC size. Its "size_x" and "size_y" are the values that set the specific Mc size.

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, "_ 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, so you can use geturl to solve the problem. The path uses the absolute address http: // 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, and then open the FLA file. If the directory of the mpeg file is AA, the name of the mpeg file is
If it is BB, you can add the following statement:
FS command ("EXEC", "swiffexec (local: AAA \ 111. 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 the above method is troublesome, you can download an auxiliary software license (available in the Flash software park). It can convert MPEG and other video files into SWF files, and then import them into flash or
For external calls, see the answer to the following questions for external call animations.

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 solution.
This problem can be solved. Create an empty Mc first. Drag the MC to the home scene and name it (instance), such as "BB ". Then, add action to the corresponding frame of the main scenario.
Fill in the SWF file to be loaded in the URL in the panel, select "target" in the "location" column, and enter "/BB" in the blank bar after it ". 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?
On (release ){
Geturl ("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 WINDOWS \ fonts \ modern. Fon. In this way, the font of the window can be edited much more.

87. How does flash connect to the database?
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?
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 be used with other WebProgramInteraction. Web designers can use flash to create navigation controllers, dynamic logos, long animations containing Synchronous sound effects, and even generate 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 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.

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 to provide a pre-loaded loading location for my flash?
Use the action syntax if frame is loaded to create a new layer,
First frame,
If frameloaded ("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 sheet?
Create a button and write it directly as above:
On (release ){
Geturl ("***. html ");
}
Here ****. html is the page file name you want to open, of course, can also be a URL, such as http://www.flash8.net

97. I placed a huge MC in 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. Is my MTV voice and lyrics 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?
answer: 1. Use geturl:
set to 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 ");
}< br> Add to favorites:
On (release) {
geturl ("javascript: void window. external. addFavorite ('HTTP: // www.flash8.net ', 'Flash bar'); "," _ 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.flash8.net ");
}
Favorites:
On (release ){
Fscommand ("AddFavorite", "http://www.flash8.net | 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 transparent bitmaps?
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.