[FLASH] video clip on the nine events - students wanting to learn about AS

2010-03-10  来源:本站原创  分类:Flash  人气:314 

In this part of the tutorial, I'll tell you the next video clip of the incident, later to continue introducing video clips of the event function and add the method, we should understand that the whole idea of teaching: Guan Jianzhen - button - video clip ...

Actually, the movie clip with the button is similar, in the process of learning to learn all of the shining.
Video clip is the MovieClip, we generally referred to as MC, MC is generally onClipEvent () handler to handle events. It likes of which have the following nine kinds of it:
1, load: the current MC is loaded and ready to display before the event is triggered. This event can generally do some initialization work, such as: variable definition, assignment, loaded as documents, etc., very useful.
2, unload: unload the current MC is ready to trigger the event before it disappears.
3, enterFrame: each MC calculation of the current contents of the frame on the trigger of the event. You can do basic understanding of the timeline on every broadcast of a Guan Jianzhen trigger this event, particularly useful, such as we do to navigation menu. General circulation in the need for more testing when you will think of this event.
4, mouseMove: when the mouse moves triggered the event. Contrast button in the rollOver.
5, mouseDown: when the left mouse button pressed to trigger the event. Contrast button in the press
6, mouseUp: when the left mouse button up when the event is triggered. Contrast button in the release.
7, keyDown: when the keyboard key is pressed to trigger the event.
8, keyUp: When the keyboard release button is pressed when the event is triggered. Contrast keyPress.
9, data: current MC when new data is received to trigger the event. The incident with the loadVariables () and loadMovie () function combines the two most closely.
See, you will feel no special right MC, compared with the button on the multi-load, unload, enterFrame, data, for mouse button events not fine it. Events 9 above, is commonly used load, enterFrame. :)
Combination of the following examples we feel these events under the MC. Use to like here on () function.

onClipEvent (movieEvent) (
/ / Here is your statement

MovieEvent here is our big event of 9 described above in one or more.
Requirements: Be a flash, see MC events of interest.
1, the new flash document.
2, the new MC components yuan, lightly draw a circle better.
3, to build an MC component yuan_mc, dragged into the component yuan, to create a motion animation, add a new layer, in the first Guanjian Zhen plus as: stop (); is this mc is a sports movie, start it is stopped.
4, a new layer yuan_mc, drag the component yuan_mc people.
5, the new four layers are named: show_txt, showef_txt, showload_txt, showcont_txt, in each layer and put on a dynamic text, the corresponding variables: show_txt, showef_txt, showload_txt, showcont_txt. In order to show the current state.
6 points in the MC layer yuan_mc components yuan_mc, plus as.

onClipEvent (load) (
_root.showload_txt = "load event is complete!";
_root.showcont_txt = 0;
onClipEvent (mouseDown) (
_root.show_txt = "now is: mouseDown event!";
onClipEvent (mouseMove) (
_root.show_txt = "now is: mouseMove event!";
onClipEvent (keyDown) (
_root.show_txt = "now is: keyDown event!";
onClipEvent (keyUp) (
_root.show_txt = "now is: keyUp event!";
play ();
onClipEvent (enterFrame) (
_root.showcont_txt + +;
_root.showef_txt = "enterFrame event going forward:";

The above code you should be able to see to understand, is the _root. Is the meaning of the main timeline, we are dedicated to the back. Dynamic text not speak, do not understand jump, this example on a purpose, let everyone know that the 9 events Bale. Eyes closed imagine a function for MC onClipEvent event have? Know that the finger hook up on it.

  • [FLASH] video clip on the nine events - students wanting to learn about AS 2010-03-10

    In this part of the tutorial, I'll tell you the next video clip of the incident, later to continue introducing video clips of the event function and add the method, we should understand that the whole idea of teaching: Guan Jianzhen - button - video

  • Flash video image grid 2010-03-01

    Flash video audio support is very good, easy access to the video, after which you can be processed into your favorite look. This article demonstrates how Flash is the video data capture and processing for the grid. Choice, your computer should have t

  • Application of high-definition flash video site to upgrade to achieve solutions 2010-06-18

    n application background Currently, the unit has completed the construction of more than 80% of video websites are used wmv9 video encoding format. With high-definition, flash and other technologies, media or more network operators wishing to use the

  • How to make web page Flash video player in the pop-up window 2010-06-29

    Many browsers have this feature, when you move the mouse to the video on the web page, you can see there is a button appears at the top, pop-up an independent player. When you click the button, the video playback in a new window will pop up, and this

  • Flash Video (FLV) encoding, conversion, recording, playback program 2010-11-10

    Flash Video (FLV) encoding, conversion, recording, playback program lash Video (FLV) encoding, conversion, recording, playback program Clean Sweep Client encoding tools (Client-Side-FLV-Encoding) 1, Sorenson Squeeze 2, Riva FLV Encoder 3, Turbine Vid

  • How to solve Flash video access refused 2010-10-19

    Doing Rtmfp protocol test, I was doing when the video stream, there is such a problem. With Security.showSettings (SecurityPanel.PRIVACY); to hide the panel in the Flash pop up, I put them is whether to allow the SWF to video access, I chose to allow

  • rookie learning flash: Loading library movie clip 2010-03-30

    The patient was a Flash AS3.0 rookie learning to fly series of tutorials, in this Flash AS3.0 tutorial we will learn a brief example of how the eagle flew load library movie clip will be made into animation, I hope to give my friends be helpful ~ ~ O

  • FLASH in the movie clip named variables and explain 2010-04-03

    Recently seen a lot of articles inside the code had been misunderstood to varying degrees, making the words sometimes had to say in detail once again. Which is one of the most common problem is that everyone inside the code name of the movie clip is

  • Beginner's Guide to the use of Flash Media Server3.5 on video streaming 2010-09-01

    http://hi.baidu.com/sunxiaoshen/blog/item/f1dcc70fc0952bef37d12203.html This article is Adobe Flash Media Server3.5 the second series of tutorials for beginners. Is mainly explained by using the Flash Media Server3.5 video on demand services provided

  • flash cs3 video documentation set 2010-03-30

    flash is everywhere, and not just exist in the mature online or offline movies, websites, games and applications, it also can be made for the DVD and broadcast television. In fact, in my first year as a flash user, for a few flash radio system progra

  • Flash in the general approach to respond to keyboard 2010-04-03

    These are the previous order, and now made up, hope to help novice approach ... ... to respond to the keyboard as the AS is an important component of today has become increasingly widely used, especially in the FLASH game production in the absence of

  • Detailed Flash AS3 garbage collection 2011-01-12

    Part1: Currently I do the research ActionScript3.0, its ability to make me very excited. It brought a lot of native execution speed possible (the original sentence The raw execution speed by itself provides so many possibilities. Raw meant raw, origi

  • Flash OBJECT and EMBED tags 2009-03-15

    Insert swf in html document is already familiar with the matter. However, these events are more mechanical then go change the template, and some property fields do not know What is the meaning, today, when the website has found a more comprehensive i

  • Flash Builder4 to work with Flash cs4 2010-03-06

    As we all know, Flash builder4 (Flex builder3) ease of programming can be much better than Flash cs4, but Flash cs4 design to facilitate Fb off than many of strong, so we can cs4 in interface design, carried out in the fb code writing: - Flash cs par

  • Flash animation production effect snow 2010-04-03

    In fact, this instance has been very much! But because the next few days ago, a snow, but now the winter! I look forward to come back a ah! So, like a friend to introduce the method of making snow. Animation goose feather-like snow off a lengthy and

  • Explode text effect Flash 2010-04-03

    Must have a friend like Flash make sure the effect of some special interest, to share with you today with Flash6.0 produced under the "explosion font" approach. Methods and procedures similar to other versions. [1b] the final result: [/ 1b] The

  • flash create a steam effect 2010-04-03

    [1b] steam [/ 1b] [1b] [/ 1b] Filter is to create realistic smoke in another way, such as in this case, steam. Use a real picture to work, so that animation is more satisfactory. Steam cup do not look very cold, make people a little uncomfortable. In

  • Flash AS Study Notes (scratch)-Flash in the first two data types (theory papers) 2010-04-03

    No. 2-Flash of data types (theory papers) Then, on one, we know that variables can store information, but there are many types of information, such as: var money = 100; var name = "monkey"; On top of, money numbers, which can be arithmetic, and

  • production of smoke gradient flash effect 2010-04-03

    [1b] with a gradient produced smoke [/ 1b] [1b] effects [/ 1b] Here are several methods of producing smoke, smoke each technique are based on their own style. You want to make into a cartoon style clouds of smoke it? Or you want to get soft on the re

  • Yaku FLASH AS2 Simple Tutorial 0 2010-04-03

    [Url = javascript: void (0); / * 1251087455109 * /] Yaku FLASH AS2 Simple Tutorial 0 [/ url] [url = http://www.5uflash.com/flashjiaocheng/Flashjichucaozuo/4839.html] Yaku FLASH AS2 Simple Tutorial 1 [/ url] [url = http://www.5uflash.com/flashjiaochen