Einzelnen Beitrag anzeigen
Alt 24-05-2010, 22:06   #19 (permalink)
php2flash
Neuer User
 
Registriert seit: May 2010
Beiträge: 26
Jetzt hab ich ein kleines Problem. Alles funktioniert nur wenn ich es aktualieren. Gehe ich auf meine swf-Datei so lädt die meine xml-Datei nun möchte ich aber rechnen. Das Ergebnis wird nicht angezeigt, erst wenn ich denn Browser aktualisiere.

Mein Code
PHP-Code:
blog = new XML();
blog.ignoreWhite true;
blog.onLoad = function (success) {
 if (
success) {

  for (
0blog.firstChild.childNodes.lengthi++) {
      
   if ( 
blog.firstChild.childNodes[i].nodeName == 'preis')
    
preis_preis blog.firstChild.childNodes[i].firstChild;    

  }
 }
}
blog.load ("nbr/book/"+_root.load+".xml");  
 

 
vertrag = new XML();
vertrag.ignoreWhite true;
vertrag.onLoad = function (success) {
 if (
success) {

  for (
0blog.firstChild.childNodes.lengthi++) {
      

   if ( 
vertrag.firstChild.childNodes[i].nodeName == 'minus')
    
vertrag_preis vertrag.firstChild.childNodes[i].firstChild;

                  
book_vertragx = ( Math.max(1,  parseFloat(preis_preis) - parseFloat(vertrag_preis)) );  
            
    
  }
 }
}
vertrag.load ("vertrag.vxml"); 
php2flash ist offline   Mit Zitat antworten