MACROMEDIA FLASH MX 2004-USING COMPONENTS Use Manual page 216

Using components
Hide thumbs Also See for FLASH MX 2004-USING COMPONENTS:
Table of Contents

Advertisement

src.component = src_txt;
src.property = "text";
src.event = "focusOut";
var dest= new EndPoint();
dest.component = text_dest;
dest.property = "text";
new Binding(src, dest, {cls: mx.data.formatters.Custom, settings: {classname:
"com.mycompany.SpecialFormatter"}});
Binding.execute()
Availability
Flash Player 6.
Edition
Flash MX Professional 2004.
Usage
myBinding.execute([reverse])
Parameters
A Boolean value that specifies whether the binding should also be executed from the
reverse
destination to the source (
this value is
false
Returns
A
value if the binding executed successfully; otherwise, the method returns an array of error
null
message strings that describe the errors that prevented the binding from executing.
Description
Method; fetches the data from the source component and assigns it to the destination
component. If the binding uses a formatter, then the data is formatted before being assigned to
the destination.
This method also validates the data and causes either a
the destination and source components. Data is assigned to the destination even if it's invalid,
unless the destination is read-only.
If the
parameter is set to
reverse
in reverse (from the destination to the source).
Example
The following code, attached to a Button component instance, executes the binding in reverse
(from the destination component to the source component) when the button is clicked.
on(click) {
_root.myBinding.execute(true);
}
216
Chapter 6: Components Dictionary
), or only from the source to the destination (
true
.
and the binding is two-way, then the binding is executed
true
false
or
event to be emitted by
valid
invalid
). By default,

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004-USING COMPONENTS and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash mx

Table of Contents