Zurück   Flashforum > Software > Sound

Antwort
 
LinkBack Themen-Optionen Ansicht
Alt 22-03-2008, 04:33   #1 (permalink)
NDC
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);
NDC ist offline   Mit Zitat antworten
Antwort

Lesezeichen

Themen-Optionen
Ansicht

Forumregeln
Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks sind an
Pingbacks sind an
Refbacks sind an



Alle Zeitangaben in WEZ +1. Es ist jetzt 18:08 Uhr.

Domains, Webhosting & Vserver von Host Europe
Unterstützt das Flashforum!
Adobe User Group


Copyright ©1999 – 2012 Marc Thiele