| |||||||
Du magst keine Werbung? Wir auch nicht!
Einfach registrieren und die Werbung ist weg. Diese Nachricht sehen nur nicht registrierte Nutzer.
![]() |
| | LinkBack | Themen-Optionen | Ansicht |
| | #1 (permalink) |
| Neuer User Registriert seit: Oct 2006
Beiträge: 210
| Tree Komponente und Sound?=??
Hallo weiss jemand mehr zum thema sound in zusammen nhang mit der tree komponente: wie kann man eigentlich die selected node abspielen? hier das script var trDP_xml:XML = new XML("<node label='ARTIST'><node label='MUSIC.mp3' value='MUSIC.mp3' data='MUSIC.mp3'/><node >"); tree.dataProvider = trDP_xml; var xmlListener:Object = new Object(); xmlListener.result = function(evt:Object) { _global.rootProducts.tree.setIsOpen(tree.getTreeNo deAt(0), true); }; xml_conn.addEventListener("result", xmlListener); treeListener.change = function(evt:Object) { if (_global.rootProducts.tree.getIsBranch(_global.roo tProducts.tree.selectedNode)) { trace(_global.rootProducts.tree.getIsBranch(_globa l.rootProducts.tree.selectedNode)); if (_global.rootProducts.tree.getIsOpen(_global.rootP roducts.tree.selectedNode)) { //trace(_global.rootProducts.tree.selectedNode); _global.rootProducts.tree.setIsOpen(_global.rootPr oducts.tree.selectedNode, false); //trace(_global.rootProducts.tree.selectedNode); var Sound:Object=new Sound(); Sound.loadSound(tree.currentItem,1); } else { _global.rootProducts.tree.setIsOpen(_global.rootPr oducts.tree.selectedNode, true); trace(_global.rootProducts.tree.selectedNode.curre ntItem); var Sound:Object=new Sound(); Sound.loadSound(tree.currentItem,1); } } else { var Sound:Object=new Sound(); Sound.loadSound(tree.currentItem,1); var node = evt.target.selectedItem; _global.nCurrentPid = Number(node.attributes.value); if (_global.nCurrentPid) { //trace(_global.rootProducts.tree.selectedNode); _global.rootProducts.mcProduct._x = 353; _global.rootProducts.mcProduct._y = 200; _global.rootProducts.loadData(); _global.rootProducts.mcProduct.highlightMCButton(_ global.rootProducts.mcProduct.mcDescription.tDescr iption); } } }; tree.addEventListener('change', treeListener); |
| | |
![]() |
| Lesezeichen |
| Themen-Optionen | |
| Ansicht | |
| |