MXML learning record three

xiaoxiao2021-03-06  41

@CONTEXTROOT () This parameter seems to be used in the webservice or httpservice tag, representing the web application access directory. And use it elsewhere, there are two ways to implement, one is use Event.Result.Serverl However, it is not necessarily effective, the other is using getURL (relative path, '_ self ", the result can access the file MX: Tree's use of the file MX: Tree's use 1. XML data obtained from the background Such as < Node label = "Personal" isbranch = "true" /> < / XML> You can load directly into the MX: Tree using treeMenu.dataProvider = txml.firstchild.childNodes; 2. Mx: Tree's event processing event property definition, such as Change and NodeOpen In addition, Script is defined as function changeeevt (event) {alert (event.target.selecteditem.parentNod E.Attributes.data event.target.selecteditem.attributes.label " event.target.selectedItem.attributes.data);

Function Nodeopenevt (Event) {Alert ("_" " event.node.attributes.data);} The above example is basically available to the corresponding event required to TREE

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

New Post(0)