Hallo,
ich habe folgendes Problem.
ich möchte in einer Flash Seite verschiede Tracklisten anwählbar machen. Den Player kann ich problemlos in einen Movieclip laden, aber ich weiß nicht wie ich
ihm jeweils eine andere Konfigurationsdatei zuordnen kann.
Kann mir jemand helfen?
Ja, genau das versuche ich auch, aber die verschiedenen Player greifen immer auf die selbe Konfigurationsdatei zu. Ich weiß nicht, wie ich das ändern kann. Gibt es eine Möglichkeit dem Player mitzuteilen, welche Konfigurationsdatei er verwenden soll?
Vielen Dank schonmal!
Danke für die schnelle Antwort. Gebe zu, dass ich da nicht reingeschaut habe!
Außerdem muss ich zugeben, dass ich ein ziemlicher Anfänger bin, was Flash betrifft.
Mein Problem bei dem Lösungsvorschlag ist, dass ich verschiedene Player innerhalb EINES Flash Films darstellen will. Dabei habe ich aber nur eine HTML Seite (sonst würde der ganze Film ja neu laden, oder?). Wenn ich das also richtig verstehe (kann gut sein, dass ich das falsch verstehe), fällt flashvars damit raus.
wie übergebe ich das in der URL?
flashvars oder die übergeben parameter in der url sind das gleiche !!!
dh du kannst folgendes machen :<br />var zanmantou1:MovieClip = _root.createEmptyMovieClip("player1", _root.getNextHeighestDepth());<br />zanmantou1.lockRoot = true;<br />zanmantou1.loadMovie("zanmantou.swf?config=cfg1.xml");<br /><br />var zanmantou2:MovieClip = _root.createEmptyMovieClip("player2", _root.getNextHeighestDepth());<br />zanmantou2.lockRoot = true;<br />zanmantou2.loadMovie("zanmantou.swf?config=cfg2.xml");<br /><br />var zanmantou3:MovieClip = _root.createEmptyMovieClip("player3", _root.getNextHeighestDepth());<br />zanmantou3.lockRoot = true;<br />zanmantou3.loadMovie("zanmantou.swf?config=cfg3.xml");<br /><br />var zanmantou4:MovieClip = _root.createEmptyMovieClip("player4", _root.getNextHeighestDepth());<br />zanmantou4.lockRoot = true;<br />zanmantou4.loadMovie("zanmantou.swf?config=cfg4.xml");<br /><br />
also ok dann dir hardcore variante ;)<br />var zanmantou1:MovieClip = _root.createEmptyMovieClip("player1", _root.getNextHeighestDepth());<br />zanmantou1.lockRoot = true;<br />zanmantou1.loadMovie("zanmantou.swf");<br />zanmantou1.config = "config1.xml";<br />//bzw<br />zanmantou1.tracklist = "tracklist1.xml";<br /><br />damit änderst du direkt die vars<br />
Das habe ich jetzt geschrieben:
var zanmantou1:MovieClip = _root.createEmptyMovieClip("player1", _root.getNextHeighestDepth());
zanmantou1.lockRoot = true;
zanmantou1.loadMovie("zanmantou.swf");
zanmantou1.config = "cfg1.xml";
und das ist die Antwort:
config parser
config parsed
Error opening URL "file:///C|/.../Flash2/config.xml"
da stimmt doch irgendwas nicht!
It looks like you're new here. If you want to get involved, click one of these buttons!