P980
Representing Data

Data binding
The data binding feature provides a syntax for automatically copying the value of a property
of one client-side object to a property of another object at run time. Data binding is usually
triggered when the value of the source property changes. You can use data binding to pass user
input data from user interface controls to a data service. You can also use data binding to pass
results returned from a data service to user interface controls.
数殾l‘定ç‰ÒŽ(gu¨©)€§å¯ä»¥åœ¨˜q行时自动将一个客æˆïL(f¨¥ng)«¯å¯¹è±¡çš„属性å¤åˆ¶åˆ°å¦ä¸€ä¸ªå®¢æˆïL(f¨¥ng)«¯å¯¹è±¡çš„属性。数æ®ç»‘å®šé€šå¸¸å½“ä¸€ä¸ªåŽŸå¯¹è±¡çš„å±žæ€§æ”¹å˜æ—¶è¢«è§¦å‘ã€‚ä½ å¯ä»¥ä½¿ç”¨æ•°æ®¾l‘定ž®†ç”¨æˆ¯‚¾“入数æ®ä¼ é€’è‡³æ•°æ®æœåŠ¡ç«¯ã€‚ä½ ä¹Ÿå¯ä»¥ä‹É用数æ®ç»‘å®šå°†æ•°æ®æœåŠ¡ç«¯çš„˜q”回å€ég¼ 递至用户交互界é¢ã€?br />
Data models
The data model feature lets you store data in client-side objects. A data model is an
ActionScript object that contains properties for storing data, and that optionally contains
methods for additional functionality. Data models are useful for partitioning the user interface
and data in an application.
æ•°æ®æ¨¡åž‹ç‰ÒŽ(gu¨©)€§å¯ä»¥å°†æ•°æ®å˜å‚¨äºŽå®¢æˆïL(f¨¥ng)«¯åQŒä¸€ä¸ªæ•°æ®æ¨¡åž‹æ˜¯ä¸€ä¸ªActionScript对象åQŒè¿™ä¸ªå¯¹è±¡çš„属性与è¦å˜å‚¨çš„æ•°æ®å¯¹åº”åQŒè¿™ä¸ªå¯¹è±¡ä¹Ÿå¯èƒ½åŒ…å«ä¸€äº›å…¶å®ƒæ–¹æ³•ã€‚æ•°æ®æ¨¡åž‹å¯¹äºŽå°†½E‹åºä¸çš„用户交互界é¢ä¸Žæ•°æ®åˆ†¼›»éžå¸¸æœ‰æ•ˆã€?br />
Data validation
The data validation feature lets you ensure that data meets specific criteria before the
application uses the data.
æ•°æ®æ ¡éªŒç‰ÒŽ(gu¨©)€§ä‹É得程åºåœ¨ä½¿ç”¨æ•°æ®å‰ï¼Œ¼‹®ä¿æ•°æ®½W¦åˆä¸€å®šçš„æ ‡å‡†ã€?br />
Data formatting
The data formatting feature lets you change the format of data before displaying it in a user
interface control.
æ•°æ®æ ¼å¼ç‰ÒŽ(gu¨©)€§ä‹É得在ž®†æ•°æ®æ˜¾½CÞZºŽç”¨æˆ·äº¤äº’界é¢å‰å¯ä»¥æ”¹å˜æ•°æ®çš„æ˜„¡¤ºæ ¼å¼ã€?/p>

]]>