EndPoint.event

Availability

Flash Player 6 (6.0.79.0).

Edition

Flash MX Professional 2004.

Usage

endPointObj.event

Description

Property; specifies the name of an event, or an array of event names, generated by the component when data assigned to the bound property changes. When the event occurs, the binding executes.

The specified event only applies to components that are used as the source of a binding, or as the destination of a two-way binding. For more information about creating two-way bindings, see Binding class.

Example

In this example, you need to add two TextInput instances on the Stage. One text field needs an instance name of first_textInput and the other field needs the instance name second_textInput. You also need to add the DataBindingClasses component to the Library.

import mx.data.binding.Binding;
var src:Object = {component:first_textInput, property:"text", event:["enter", "focusOut"]};
var dst:Object = {component:second_textInput, property:"text"};
var my_binding:Binding = new Binding(src, dst);

first_textInput.addEventListener("enter", doEnter);
function doEnter(eventObject) {} 

Flash CS3


 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/flash/9.0/main/00002682.html