How To Create A Handler

Table of contents:

How To Create A Handler
How To Create A Handler

Video: How To Create A Handler

Video: How To Create A Handler
Video: How To Create A Discord.js Bot | #1 Setup u0026 Command Handler 2024, December
Anonim

Events in Flesh Builder are handled by dedicated handlers. The program reacts to various events, for example, pressing a button or reaching a stage by an object.

How to create a handler
How to create a handler

Instructions

Step 1

To create handlers, ActionScript is used, which describes how the program responds to an event. If you do not have Flesh Builder, download from the Internet using search engines. Create an event handler in Properties. Select the item and then turn on the standard view in the Property inspector. The edit area for the event handler is in the General field. Specify a name for the event in the On Event field and an event parameter.

Step 2

Click on the lightning bolt icon to set the program code for the handler. Click on the "Create event handler" item, and in the "Code" editor specify the implementation of the handler actions. To create an event handler for the selected item, select the category view and go to the "Events" section. Select the required event and double-click on its name. In the Value field, enter the implementation for the generated event handler.

Step 3

An event handler can also be created from the context menu. To do this, call the drop-down menu and select an event. In Properties view, specify the selected event handler and then set the implementation in Code mode.

Step 4

Note that Flash Builder will not be able to attach an event handler unless you provide a unique name for it. If you need to use a unique name, you must first create the event handler itself and change the name of the handler to something else. If you are having problems using this software, please use the Help to solve the problems. You can also watch videos on the Internet that clearly demonstrate the basic principles of working with this software product.

Recommended: