Eurokicker
-


Hinweise


Antwort
 
LinkBack Themen-Optionen Thema durchsuchen Thema bewerten
Alt 31.03.2006, 13:11   #1
TP-Junior
 
Registriert seit: Jan 2006
Ort: Reutlingen
Agamemmnon macht alles soweit korrekt

Audio player xml problem


Hallo,
habe ein Problem mit der xml datei vom Audio Player,kann mir jemand die xml datei evtl. einrichten?
AS

PHP-Code:
function startMp3Loader()
{
    if (
song >= songFiles.length || song == undefined)
    {
        
song 0;
    } 
// end if
    
if (song 0)
    {
        
song songFiles.length 1;
    } 
// end if
    
_parent.musictitle.text songArtist[song];
    
mp3.loadSound(songFiles[song], true);
    
mp3Loader.gotoAndStop(1);
    
mp3Position.gotoAndStop(1);
    
this.onEnterFrame = function ()
    {
        
percent mp3.getBytesLoaded() / mp3.getBytesTotal() * 100;
        if (!
isNan(percent))
        {
            
frame Math.floor(percent);
            
mp3Loader.gotoAndStop(frame);
            
mp3Percent mp3.position mp3.duration percent;
            
mp3Frame Math.floor(mp3Percent);
            
mp3Position.gotoAndStop(mp3Frame);
            if (
mp3Percent == 100)
            {
            } 
// end if
        
// end if
        
mp3.onSoundComplete = function ()
        {
            
mp3Loader.gotoAndStop(1);
            
mp3Position.gotoAndStop(1);
            ++
song;
            
startMp3Loader();
        };
        if (
mp3.position == && percent == 100)
        {
            
mp3.start();
        } 
// end if
    
};
// End of the function
function pause()
{
    var 
_loc1 _root;
    if (
_loc1.mp3Status == "start")
    {
        
mp3.start(pausePosistion0);
        
_loc1.mp3Status "stop";
        
play_mp.enabled false;
        return;
    } 
// end if
    
pausePosistion mp3.position 1000;
    
mp3.stop();
    
_loc1.mp3Status "start";
    
play_mp.enabled true;
// End of the function
_global.songArtist = new Array();
_global.songFiles = new Array();
playlist = new XML();
player.onLoad = function (suc)
{
    
0;
    if (
suc)
    {
        for (var 
_loc1 player_loc1 != null_loc1 _loc1.nextSibling)
        {
            var 
_loc2 _loc1.nodeName;
            if (
_loc2 != null)
            {
                
songArtist[i] = "0" "." _loc1.attributes.name;
                
songFiles[i] = _loc1.attributes.link;
                ++
i;
            } 
// end if
            
if (_loc1.firstChild != null)
            {
                
_loc1 _loc1.firstChild;
                continue;
            } 
// end if
            
if (_loc1.nextSibling != null)
            {
                
_loc1 _loc1.nextSibling;
                continue;
            } 
// end if
            
_loc1 _loc1.parentNode;
        } 
// end of for
    
// end if
    
startMp3Loader();
    
play_mp.enabled false;
};
playlist.load("playlist.xml");
mp3 = new Sound(); 
XML Datei (Playlist.xml)

PHP-Code:
<?xml version="1.0" encoding="UTF-8"?>
<player>
<songFiles ="song"="test1.mp3" />
<songFiles ="song"="test2.mp3" />

</player>

fängt einfach net an zu laden
was stimmt an dem xml Dokument nicht???

Geändert von Wanderratte (31.03.2006 um 13:22 Uhr).
Agamemmnon ist offline   Mit Zitat antworten


Alt 31.03.2006, 13:21   #2
TP-Moderator
 
Benutzerbild von Wanderratte
 
Registriert seit: Mar 2002
Wanderratte ist ein richtiges Arbeitstier - DANKEWanderratte ist ein richtiges Arbeitstier - DANKEWanderratte ist ein richtiges Arbeitstier - DANKEWanderratte ist ein richtiges Arbeitstier - DANKEWanderratte ist ein richtiges Arbeitstier - DANKEWanderratte ist ein richtiges Arbeitstier - DANKE
Hallo

als erstes, wenn du Code postest benutze bitte oben den Button php, dadurch wird der Code formatiert angezeigt.
So als nächstes:
playlist.load("playlist.xml");

und eine XML heist

Playlist.xml

Du solltest schon die Groß und Kleinschreibung beachten
__________________
Gruß

Wanderratte
Gebildet ist,
wer weiß,
wo er findet,
was er nicht weiß.

Eurokicker
Home
Amazon Wunschzettel
Wanderratte ist offline   Mit Zitat antworten
Alt 31.03.2006, 13:30   #3
TP-Junior
 
Registriert seit: Jan 2006
Ort: Reutlingen
Agamemmnon macht alles soweit korrekt
Hallo Wanderratte:-)
danke für den hinweis.
Ist ein aufwendiger player mit ladebalken und anzeige.
bekomme immer nur den pfad zum ordner und das undefined angezeigt.
im Code ist das ja auch so geschrieben,aber die xml datei selber stimmt leider net.


gruß Vangelis

Geändert von Agamemmnon (31.03.2006 um 13:37 Uhr).
Agamemmnon ist offline   Mit Zitat antworten
Alt 31.03.2006, 14:03   #4
TP-Newbie
 
Registriert seit: Jun 2005
dala macht alles soweit korrekt
versuchs mal so:

PHP-Code:
<?xml version="1.0" encoding="UTF-8" ?> 
  <player>
  <song path="test1.mp3" /> 
  <song path="test2.mp3" /> 
  </player>
dala ist offline   Mit Zitat antworten
Antwort

  Aktuelles Thema
  TP Hilfe Forum > Web-Editoren & Coding > Flash > Flash 8
Audio player xml problem Audio player xml problem
« Wie kann ich Objekte auf einer Linie entlanglaufen lassen? (Bewegungs_Tween) | Einfacher Syntaxfehler »

Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)
 
Themen-Optionen Thema durchsuchen
Thema durchsuchen:

Erweiterte Suche
Thema bewerten
Thema bewerten:

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

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


Alle Zeitangaben in WEZ +2. Es ist jetzt 20:17 Uhr.

Powered by: vBulletin Version 3.7 (Deutsch)
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd. / Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.
Traum-Projekt.com | Suchen | Archiv | Impressum | Kontakt | | | Nach oben |



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67