Article View: alt.pl.programy.flash-5
Article #34523component window - i combobox
From: plex
Date: Tue, 11 Mar 2008 13:26
Date: Tue, 11 Mar 2008 13:26
48 lines
1957 bytes
1957 bytes
witam
mam taki problem
mam strone na w ktorej wywoluje component window
do niego wciagam plik swf ktory pobiera dane z pliku xml i umieszcza to
w comboboxie ktory steruje flvplayerem
problem...
sam plik z playerem dziala idealnie ale jak go wciagam do innego pliku
do komponentu window nie ma nic w comboboxie
-----------------------------------------
plik - video.fla
--
kod dla combobox:
on (change) {
this._parent.flvp.stop();
this._parent.flvp.contentPath = "videos/" + this.getValue();
this._parent.flvp.play();
trace (this.getValue());
}
--
kod dla calego pliku:
thisXML = new XML();
thisXML.ignoreWhite = true;
thisXML.onLoad = LoadCombo;
thisXML.load("videos.xml");
this.flvp.contentPath = "videos/1.flv";
function LoadCombo(success) {
if (success) {
var BaseNode=thisXML.childNodes[0];
var ComboVideos = new Array();
var ComboURLs = new Array();
var ThisNode;
for (i=0; i < BaseNode.childNodes.length; i++) {
ThisNode = BaseNode.childNodes[i];
ComboVideos[i] = ThisNode.attributes["videoOpis"];
ComboURLs[i] = ThisNode.attributes["videoLink"];
listaVideo.addItem(ComboVideos[i],ComboURLs[i]);
}
}
}
stop();
---------------------------
Technical Details
Message-ID:
<fr6176$hho$1@news2.task.gda.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.pionier.net.pl!news.task.gda.pl!not-for-mailShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.pionier.net.pl!news.task.gda.pl!not-for-mail From: plex <maciek@awf.gda.pl> Newsgroups: alt.pl.programy.flash-5 Subject: component window - i combobox Date: Tue, 11 Mar 2008 14:26:34 +0100 Organization: CI TASK http://www.task.gda.pl/ Lines: 48 Message-ID: <fr6176$hho$1@news2.task.gda.pl> NNTP-Posting-Host: pcb132-3.awf.gda.pl Mime-Version: 1.0 X-Trace: news2.task.gda.pl 1205241894 17976 153.19.100.19 (11 Mar 2008 13:24:54 GMT) X-Complaints-To: abuse@news.task.gda.pl NNTP-Posting-Date: Tue, 11 Mar 2008 13:24:54 +0000 (UTC) User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit