2011-01-06 12 views

回答

1

您使用E4X(用於XML的ECMAScript)來讀取和分析在你用它來讀取和解析等XML文件的方式MusicXML文件。據我所知,沒有額外的類庫可用。在Flash中使用MusicXML的開發人員(如Noteflight和Legato)發現,銷售服務而不是ActionScript庫會更好。

http://www.recordare.com/musicxml有大量的MusicXML信息可用,其中包括教程http://www.recordare.com/musicxml/tutorial。通過計算機創建音樂符號很複雜,所以如果這是您想要做的事情,請爲大量工作做好準備。如果您有一些其他類型的可視化,那可能會更容易。能夠閱讀音樂符號將是一個很大的幫助;這是即使在MusicXML教程中也假定的知識水平。

祝你好運!

0

只有幾個方法,其中將涉及您的XML在職的80%:

attributes  An object containing attribute variables assigned to this element. 
childNodes  An array containing all child nodes belonging to this node. 
parentNode  This node's parent node. 
firstChild  The first child in this element's childNodes, 
       or childNodes[0] 
lastChild  The last child in this elements childNodes, 
       or childNodes[childNodes.length-1] 
nextSibling  The node after this node in the parent's childNodes array. 
previousSibling The node before this node in the parent's childNodes array. 

簡單的文檔位於:http://www.republicofcode.com/tutorials/flash/as3xml/