Flex MX: Model and MX: XML

xiaoxiao2021-03-06  42

These two tags can be loaded with data for other tags. The data obtained from the background is generally more XML format, but in Flex gets this XML, it seems to be loaded directly into the image List, Combox, In the LinkBar tag, you must first load MX: Model or MX: XML and then use, of course, array can be loaded. As for other cases, it can be handled by Object, which will be described in the following.

MX: Model

gg

DFSG

DF

DFSGFD

DFF

As the MODEL definition, call to complete in List, Combox to complete it, as for if the node value you want to use can use linkData.part or linkData.Item [0] .Label, the obtained value is GG and DFSG

MX: XML example

DFGG

HDFH

fgfdg

As the XML definition, in List, COMBOX, call to complete (from linkdata.childnodes.tostring "You can see the Item added via DataProvider.AddItem =" "" DATA = "" "/> This is not like MX: Model, it is

In addition, if you take a certain value separately, use linkdata.childnodes [0] .firstchild.firstchild.nodeValue, value DF

转载请注明原文地址:https://www.9cbs.com/read-69699.html

New Post(0)