Flash MX/ActionScript Graphics Tutorial (vii)

Source: Internet
Author: User
Tutorial Chapter 2nd dealing with events

Events, is to promote the soul of the Flash program, you can say, no event there is no flash program, really because of the rich events, flash program interactivity can be achieved. When developing flash programs, we need to devote a great deal of effort to estimating which events the program should handle and how to handle them. For example, to a button, we just need to deal with the user click the button triggered by the event? If you need a button to respond to more user actions, then we need to add the appropriate event handling code.

Flash program can handle the event is a dime, we obviously can not be a list of them to tell the why, in fact, the name of these events, the role and treatment methods are similar, as long as the basic principle of mastering, you can Itong. The most important thing is not to understand the details of each event, but to learn to select the appropriate event and process it based on the functionality of the program that you need to complete.

In the example in Chapter 1th, we have used code to handle a press event, and the structure of the event-handling code is the same, described in natural language:
When this event occurs (the event name)
{
Perform these actions
}

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.