锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲国产综合无码一区二区二三区,亚洲综合av一区二区三区,亚洲欧洲日产v特级毛片http://m.tkk7.com/robbie/category/16728.htmlzh-cnTue, 27 Feb 2007 10:03:38 GMTTue, 27 Feb 2007 10:03:38 GMT60Flex2 develop guide study - 5 - data binding http://m.tkk7.com/robbie/articles/79280.html涓夊崄鑰岀珛涓夊崄鑰岀珛Sun, 05 Nov 2006 15:14:00 GMThttp://m.tkk7.com/robbie/articles/79280.htmlhttp://m.tkk7.com/robbie/comments/79280.htmlhttp://m.tkk7.com/robbie/articles/79280.html#Feedback0http://m.tkk7.com/robbie/comments/commentRss/79280.htmlhttp://m.tkk7.com/robbie/services/trackbacks/79280.html
Binding data with the <mx:Binding> tag

璇ョ珷鑺傚拰Binding data with curly braces鍩烘湰涓鏍鳳紝璁蹭簡濡備笅鍑犱釜鏂歸潰鐨勫唴瀹癸細
1銆乁sing ActionScript expressions in Binding tags
聽聽聽聽聽聽鍦˙indingTags涓嬌鐢ˋctionScript琛ㄨ揪寮?br />2銆丅inding more than one source property to a destination property
聽聽聽聽聽聽灝嗗涓簮灞炴х粦瀹氬埌涓涓洰鐨勫睘鎬т笂
3銆丅inding a source property to more than one destination property
聽聽聽聽聽聽灝嗕竴涓簮灞炴х粦瀹氬埌澶氫釜鐩殑灞炴т笂
4銆乁sing an E4X expression in an <mx:Binding> tag
聽聽聽聽聽聽鍦?lt;mx:Binding>鏍囩涓嬌鐢‥4X琛ㄨ揪寮?br />
涓婅堪鍥涚鎯呭喌鍦ㄦ枃涓兘鏈変緥瀛愶紝浠旂粏鐪嬩竴涓嬶紝鐞嗚В璧鋒潵搴旇娌℃湁闂銆?br />
絎笁縐嶆儏鍐典腑鐨勪緥瀛愬簲璇ヤ慨鏀逛負濡備笅錛屾墠鍙互姝g‘榪愯錛屽湪鏂囦腑鐨勪緥瀛愪腑娌℃湁<mx:Binding>鐨勭浉鍏抽厤緗?br /><?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="聽<mx:TextInput id="input1" text="Hello" />
聽<mx:Model id="mod1">
聽聽<part>{input1.text}</part>
聽</mx:Model>
聽<mx:Model id="mod2">
聽聽<part>{input1.text}</part>
聽</mx:Model>
聽<mx:Label id="label1" x="10" y="30" text="{mod1.part}"/>
聽<mx:Label id="label2" x="10" y="60" text="{mod2.part}"/>

<mx:Binding source="input1.text" destination="mod1.part"/>
聽<mx:Binding source="input1.text" destination="mod2.part"/>
聽<mx:Binding source="mod1.part" destination="label1.text"/>
聽<mx:Binding source="mod2.part" destination="label2.text"/>
</mx:Application>



]]>
Flex2 develop guide study - 4 - data binding http://m.tkk7.com/robbie/articles/78812.html涓夊崄鑰岀珛涓夊崄鑰岀珛Thu, 02 Nov 2006 16:19:00 GMThttp://m.tkk7.com/robbie/articles/78812.htmlhttp://m.tkk7.com/robbie/comments/78812.htmlhttp://m.tkk7.com/robbie/articles/78812.html#Feedback0http://m.tkk7.com/robbie/comments/commentRss/78812.htmlhttp://m.tkk7.com/robbie/services/trackbacks/78812.htmlP986

Using ActionScript expressions in curly braces
鍦▄}涓嬌鐢ˋctionScript琛ㄨ揪寮?br />
Using an E4X expression in curly braces
鍦▄}涓嬌鐢‥4X琛ㄨ揪寮?br />
A binding expression in curly braces or an <mx:Binding> tag can contain an ECMAScript for
XML (E4X) expression when the source of a binding is a bindable property of type XML.
褰撶粦瀹氱殑灞炴ф槸XML綾誨瀷鏃訛紝鍦▄}涓殑緇戝畾琛ㄨ揪寮忔垨鑰呭湪<mx:Binding>鏍囩涓彲浠ュ寘鍚竴涓狤CMAScript for XML鐨勮〃杈懼紡銆?br />
褰撲嬌鐢‥4X琛ㄨ揪寮忔椂錛屽繀欏誨XML鐔熸倝銆?/font>

P987欏電殑渚嬪瓙搴旇璇曚竴涓嬶紝鐪嬬湅褰搙ml涓湁涓や釜description鏃訛紝鍏惰緭鍑虹粨鏋滀細濡備綍錛?br />褰撴湁涓や釜description鏃訛紝浼氳凱浠e皢description杈撳嚭錛屼笉榪囬渶瑕佹敞鎰忕殑鏄緭鍑虹粨鏋滄牸寮忓涓嬶細
聽聽聽<description>Big Screen Television</description>
聽聽聽<description>DVD Player</description>

Using ActionScript functions in curly braces
鍦▄}涓嬌鐢ˋctionScript鍑芥暟

If the inString property is not passed as an argument, but is referenced from within the
function, the function does not get invoked when the inString property changes.
濡傛灉inString灞炴ф病鏈変綔涓哄弬鏁拌繘琛屼紶閫掞紝鑰屾槸鍦ㄥ嚱鏁板唴閮ㄨ寮曠敤浜嗭紝褰搃nString灞炴у彂鐢熷彉鍖栨椂錛屽嚱鏁版槸涓嶄細琚皟鐢ㄧ殑銆?br />
浠ヤ笂涓夌鎯呭喌鐨勪緥瀛愬湪鏂囨。涓湁璇︾粏鐨勬弿榪幫紝灝變笉鍦ㄨ繖閲岃創鍑轟簡銆?br />
鏈榪戝繖浜庨」鐩笂綰匡紝鍙兘姣忓ぉ灝戠湅涓鐐逛簡錛氾紙



]]>
Flex2 develop guide study - 3 - data bindinghttp://m.tkk7.com/robbie/articles/78570.html涓夊崄鑰岀珛涓夊崄鑰岀珛Wed, 01 Nov 2006 15:06:00 GMThttp://m.tkk7.com/robbie/articles/78570.htmlhttp://m.tkk7.com/robbie/comments/78570.htmlhttp://m.tkk7.com/robbie/articles/78570.html#Feedback0http://m.tkk7.com/robbie/comments/commentRss/78570.htmlhttp://m.tkk7.com/robbie/services/trackbacks/78570.htmlData binding requires a source property, a destination property, and a triggering event that
indicates when to copy the data from the source to the destination.

鏁版嵁緇戝畾闇瑕佷竴涓簮錛屼竴涓洰鏍囧拰闇瑕佷粠婧愭嫹璐濇暟鎹埌鐩殑涓涓Е鍙戜簨浠躲?br />
娉ㄦ剰錛氳繖鍙ヨ瘽瑙i噴浜嗘暟鎹粦瀹氱殑鏈川銆備篃寮曞嚭浜嗕笅闈㈢殑涓孌佃瘽銆?/font>

You can use all properties of a component as the destination of a data binding expression.
However, to use a property as the source of a data binding expression,the component must be
implemented to support data binding, which means that the component dispatches an event
when the value of the property changes to trigger the binding
.
For more information on
creating component properties that can be used as the source of a data binding expression, see
鈥淏indable metadata tag鈥?in Creating and Extending Flex 2 Components.

涓婇潰榪欐璇濈殑鍏抽敭鍚箟鍦ㄤ簬鏈変笅鍒掔嚎鐨勮繖涓孌? 鎺т歡蹇呴』鏀寔鏁版嵁緇戝畾錛岃繖鎰忓懗鐫褰撳睘鎬ф敼鍙樻椂鎺т歡蹇呴』鍙戦佷竴涓簨浠舵潵瑙﹀彂鏁版嵁緇戝畾鐨勬搷浣溿?br />
In addition to properties, you can use ActionScript functions as the source of binding
expressions. You usually do this when using a bindable property as an argument of a function.
When the property changes, the function executes, and the result is used in the binding
destination.

瀵逛簬瀹炶錛屽彲浠ヤ嬌鐢ˋctionScript鐨勫嚱鏁板仛涓虹粦瀹氳〃杈懼紡鐨勬簮銆傞氬父鍙互浣跨敤涓涓粦瀹氱殑灞炴у仛涓哄嚱鏁扮殑鍙傛暟錛岃繖鏍峰綋灞炴у彉鍖栨椂錛屽嚱鏁板皢浼氭墽琛岋紝緇撴灉灝變細琚粦瀹氱殑鐩殑浣跨敤銆?br />
娉細瀵逛笂闈竴孌佃瘽鏈変簡鍒濇鐨勭悊瑙o紝涓嶈繃鏈濂借兘鏈変竴涓緥瀛愯鏄庯紝鍙儨榪樻病鐪嬪埌:(

You can also use a property of type Function as a binding source or destination. A property of
type Function is a variable that holds a reference to a function.

娉細榪欎篃鏄竴涓鏄庡嚱鏁頒笌鏁版嵁緇戝畾鐩稿叧鐨勪嬌鐢ㄦ柟娉曘?br />涓嬮潰緇堜簬灝辮璁插埌鏁版嵁緇戝畾鐨勫叿浣撲嬌鐢ㄦ柟娉曚簡銆?br />
Binding data with curly braces

涓句緥濡備笅錛?br /><?xml version="1.0"?>
<mx:Application xmlns:mx="<!-- Data model stores registration data that user enters. -->
<mx:Model id="reg">
聽聽聽<registration>
聽聽聽聽聽聽<name>{name.text}</name>
聽聽聽聽聽聽<email>{email.text}</email>
聽聽聽聽聽聽<phone>{phone.text}</phone>
聽聽聽聽聽聽<zip>{zip.text}</zip>
聽聽聽聽聽聽<ssn>{ssn.text}</ssn>
聽聽聽</registration>
</mx:Model>
<!-- Form contains user input controls. -->
<mx:Form>
聽聽聽<mx:FormItem label="Name" required="true">
聽聽聽聽聽聽<mx:TextInput id="name" width="200"/>
聽聽聽</mx:FormItem>
聽聽聽<mx:FormItem label="Email" required="true">
聽聽聽聽聽聽<mx:TextInput id="email" width="200"/>
聽聽聽</mx:FormItem>
聽聽聽<mx:FormItem label="Phone" required="true">
聽聽聽聽聽聽<mx:TextInput id="phone" width="200"/>
聽聽聽</mx:FormItem>
聽聽聽<mx:FormItem label="Zip" required="true">
聽聽聽聽聽聽<mx:TextInput id="zip" width="60"/>
聽聽聽</mx:FormItem>
聽聽聽<mx:FormItem label="Social Security" required="true">
聽聽聽聽聽聽<mx:TextInput id="ssn" width="200"/>
聽聽聽</mx:FormItem>
聽聽聽...
</mx:Form>
</mx:Application>

涓婇潰鐨勪緥瀛愬緢娓呮鐨勮鏄庝簡浣跨敤{}鍋氫負鏁版嵁緇戝畾鐨勭敤娉曘備笉榪囧湪涓婇潰鐨勪緥瀛愪腑浣跨敤鍒頒簡DataModel錛屽叧浜嶥ata Models璇峰弬瑙伮燙hapter 38, 鈥淪toring Data,鈥?on page 1001銆?/font>

]]>
Flex2 develop guide study - 2http://m.tkk7.com/robbie/articles/78249.html涓夊崄鑰岀珛涓夊崄鑰岀珛Tue, 31 Oct 2006 04:52:00 GMThttp://m.tkk7.com/robbie/articles/78249.htmlhttp://m.tkk7.com/robbie/comments/78249.htmlhttp://m.tkk7.com/robbie/articles/78249.html#Feedback0http://m.tkk7.com/robbie/comments/commentRss/78249.htmlhttp://m.tkk7.com/robbie/services/trackbacks/78249.htmlAbout data binding

Data binding is the process of tying the data in one object to another object. It provides a
convenient way to pass data around in an application. Adobe Flex 2 provides three ways to
specify data binding: the curly braces ({}) syntax and the <mx:Binding> tag in MXML and
the BindingUtils methods in ActionScript.

鏁版嵁緇戝畾鎻愪緵浜嗕竴縐嶄究鍒╃殑鏂規硶鍦ㄧ▼搴忎腑浼犻掓暟鎹紝瀹冨彲浠ュ湪涓涓璞″拰鍙︿竴涓璞¢棿寤虹珛鍏寵仈鍏崇郴銆傚湪Flex2涓彁渚涗簡涓夌鐗瑰畾鐨勬柟娉曠敤浜庢暟鎹粦瀹氾細
1銆亄}
2銆?lt;mx:Binding>鏍囩
3銆丄ctionScript涓殑BindingUtils鏂規硶

Common uses of data binding include the following:
閫氬父浣跨敤鏁版嵁緇戝畾鐨勬儏褰㈠涓嬶細
鈻?To bind properties of user interface controls to data service requests.
灝嗙敤鎴蜂氦浜掔晫闈腑鐨勮緭鍏ョ粦瀹氬埌鏁版嵁鏈嶅姟璇鋒眰涓?br />鈻?To bind data service results to properties of user interface controls.
灝嗘暟鎹湇鍔″搷搴旂殑緇撴灉緇戝畾鍒扮敤鎴蜂氦浜掔晫闈腑銆?br />鈻?To bind data service results to a middle-tier data model, and to bind that data model鈥檚
fields to user interface controls. For more information about data models, see Chapter 38,
鈥淪toring Data,鈥?on page 1001.
灝嗘暟鎹湇鍔″搷搴旂粨鏋滅粦瀹氬埌澶勪簬涓棿灞傜殑鏁版嵁妯″瀷涓紝鍐嶅皢鏁版嵁妯″瀷鐨勫瓧孌電粦瀹氬埌鐢ㄦ埛浜や簰鐣岄潰涓?br />鈻?To bind properties of user interface controls to a middle-tier data model, and to bind that
data model鈥檚 fields bound to a data service request (a three-tier system).
984 Binding Data
灝嗙敤鎴蜂氦浜掔晫闈腑鐨勮緭鍏ョ粦瀹氬埌澶勪簬涓棿灞傜殑鏁版嵁妯″瀷涓紝鍐嶅皢鏁版嵁妯″瀷鐨勫瓧孌電粦瀹氬埌鏁版嵁鏈嶅姟璇鋒眰涓?br />鈻?To bind an ArrayCollection or XMLListCollection object to the dataProvider property
of a List-based control.
灝咥rrayCollection鎴栬匵MLListCollection瀵硅薄緇戝畾鍒板熀浜嶭ist鐨勭晫闈㈡帶浠剁殑dataProvider灞炴т腑銆?br />鈻?To bind individual parts of complex properties to properties of user interface controls. An
example would be a master-detail scenario in which clicking an item in a List control
displays data in several other controls.
灝嗗鏉傚睘鎬х殑鍗曚釜閮ㄥ垎緇戝畾鍒扮敤鎴蜂氦浜掔晫闈腑銆?br />鈻?To bind XML data to user interface controls by using ECMAScript for XML (E4X)
expressions in binding expressions.
閫氳繃浣跨敤ECMAScript for XML琛ㄨ揪寮忓皢XML鏁版嵁緇戝畾鍒扮敤鎴蜂氦浜掔晫闈腑銆?br />
Although binding is a powerful mechanism, it is not appropriate for all situations. For
example, for a complex user interface in which individual pieces must be updated based on
strict timing, it would be preferable to use a method that assigns properties in order. Also,
binding executes every time a property changes, so it is not the best solution when you want
changes to be noticed only some of the time.

灝界鏁版嵁緇戝畾鏄竴涓己澶х殑鏈哄埗錛屼絾鏄叾騫朵笉閫傜敤浜庢墍鏈夌姸鍐點傛瘮濡傚湪濡備笅涓ょ鎯呭喌涓氨涓嶉傚悎浣跨敤鏁版嵁緇戝畾錛?br />1銆佸湪涓涓鏉傜殑鐢ㄦ埛浜や簰鐣岄潰涓紝涓浜涙洿鏂版湁涓ユ牸鐨勬椂闂存搴忋?br />2銆佺敱浜庢暟鎹粦瀹氬湪灞炴ф瘡嬈″彂鐢熸敼鍙樻椂閮戒細瑙﹀彂錛屼粎浠呭笇鏈涘湪涓浜涚壒瀹氱殑鏉′歡涓嬭Е鍙戞敼鍙樻椂灝變笉閫傚悎浣跨敤鏁版嵁緇戝畾銆?br />




]]>
Flex2 develop guide study - 1http://m.tkk7.com/robbie/articles/78176.html涓夊崄鑰岀珛涓夊崄鑰岀珛Mon, 30 Oct 2006 15:26:00 GMThttp://m.tkk7.com/robbie/articles/78176.htmlhttp://m.tkk7.com/robbie/comments/78176.htmlhttp://m.tkk7.com/robbie/articles/78176.html#Feedback0http://m.tkk7.com/robbie/comments/commentRss/78176.htmlhttp://m.tkk7.com/robbie/services/trackbacks/78176.html P980
Representing Data

RepresentingData.JPG
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.

鏁版嵁緇戝畾鐗規у彲浠ュ湪榪愯鏃惰嚜鍔ㄥ皢涓涓鎴風瀵硅薄鐨勫睘鎬у鍒跺埌鍙︿竴涓鎴風瀵硅薄鐨勫睘鎬с傛暟鎹粦瀹氶氬父褰撲竴涓師瀵硅薄鐨勫睘鎬ф敼鍙樻椂琚Е鍙戙備綘鍙互浣跨敤鏁版嵁緇戝畾灝嗙敤鎴瘋緭鍏ユ暟鎹紶閫掕嚦鏁版嵁鏈嶅姟绔備綘涔熷彲浠ヤ嬌鐢ㄦ暟鎹粦瀹氬皢鏁版嵁鏈嶅姟绔殑榪斿洖鍊間紶閫掕嚦鐢ㄦ埛浜や簰鐣岄潰銆?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.

鏁版嵁妯″瀷鐗規у彲浠ュ皢鏁版嵁瀛樺偍浜庡鎴風錛屼竴涓暟鎹ā鍨嬫槸涓涓狝ctionScript瀵硅薄錛岃繖涓璞$殑灞炴т笌瑕佸瓨鍌ㄧ殑鏁版嵁瀵瑰簲錛岃繖涓璞′篃鍙兘鍖呭惈涓浜涘叾瀹冩柟娉曘傛暟鎹ā鍨嬪浜庡皢紼嬪簭涓殑鐢ㄦ埛浜や簰鐣岄潰涓庢暟鎹垎紱婚潪甯告湁鏁堛?br />
Data validation
The data validation feature lets you ensure that data meets specific criteria before the
application uses the data.

鏁版嵁鏍¢獙鐗規т嬌寰楃▼搴忓湪浣跨敤鏁版嵁鍓嶏紝紜繚鏁版嵁絎﹀悎涓瀹氱殑鏍囧噯銆?br />
Data formatting
The data formatting feature lets you change the format of data before displaying it in a user
interface control.

鏁版嵁鏍煎紡鐗規т嬌寰楀湪灝嗘暟鎹樉紺轟簬鐢ㄦ埛浜や簰鐣岄潰鍓嶅彲浠ユ敼鍙樻暟鎹殑鏄劇ず鏍煎紡銆?/p>

]]>
主站蜘蛛池模板: 久久w5ww成w人免费| 成年网在线观看免费观看网址 | 中文字幕 亚洲 有码 在线| 在线观看免费中文视频| 1区1区3区4区产品亚洲| 久久国产高潮流白浆免费观看| 亚洲∧v久久久无码精品| 99在线在线视频免费视频观看| 久久青青草原亚洲av无码app| 久久精品免费一区二区| 好爽又高潮了毛片免费下载| 亚洲国产精品综合久久一线| 免费一级毛片在线播放视频免费观看永久 | 亚洲一区二区成人| 七色永久性tv网站免费看| 狠狠色香婷婷久久亚洲精品| 又爽又黄无遮挡高清免费视频| aa午夜免费剧场| 精品久久久久久亚洲综合网| 黑人大战亚洲人精品一区| 亚洲欧洲日产国码无码久久99| 欧洲一级毛片免费| 中文字幕免费视频| 亚洲一级毛片免费观看| 男人进去女人爽免费视频国产 | a级黄色毛片免费播放视频| 亚洲精品高清无码视频| 婷婷亚洲天堂影院| 国产成人亚洲影院在线观看| 亚洲色少妇熟女11p| 女人与禽交视频免费看| 亚洲日韩精品A∨片无码加勒比| 成人午夜免费视频| 一区二区三区亚洲| 日本高清免费中文字幕不卡| a视频免费在线观看| 亚洲砖码砖专无区2023 | 91精品国产免费入口| 亚洲AV日韩综合一区| 亚洲人成网www| 啊v在线免费观看|