In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
Editor to share with you what are the ways of Flex3.0 data binding, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
Using Flex3.0 data binding to process data
Flex3.0 data binding is the process of connecting data from one object to another. It provides a convenient way to transfer data in an application.
AdobeFlex3 provides several ways to specify Flex3.0 data binding:
◆ uses curly braces ({}) syntax.
◆ uses ActionScript expressions in curly braces
◆ uses tags in MXML
◆ uses bindings in ActionScript
Use curly braces ({}) syntax
Flex3.0 data binding requires source attributes, target attributes, and trigger events. The trigger event table name is appropriate to copy data from the source to the destination. The following example shows a Text control that gets the data for the value property of the Hslider control. The property name in curly braces is the source property of the binding expression. When the value of the original property changes, Flex copies the current value of the source property mySlider.value to the target property, the text property of the Text control.
Connection: to see a more complex example of Flex3.0 data binding using brace syntax, check out Definingdatamodels
Examples
Use ActionScript expressions in curly braces
The binding expression in curly braces can be included in the ActionScript expression to send back a result. For example, you can use curly braces syntax for the following types of bindings:
◆ has a separate bindable attribute in curly braces
◆ uses string concatenation in curly braces, where the station is a bindable attribute
◆ 's calculation based on bindable attributes in curly braces
◆ uses conditional operations in curly braces to determine a bindable attribute
In the following example, each type of binding expression is used in the user interface.
Examples
{nameInput.text} Thisis {nameInput.text} {(Number (numberInput.text) asNumber) * 6x7} {(isMale.selected)? "Mr.": "Ms."} {nameInput.text} is all the content of this article entitled "what are the ways of Flex3.0 data binding?" Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.