Ver Mensaje Individual
  #1 (permalink)  
Antiguo 23/03/2009, 19:33
squalo1984
 
Fecha de Ingreso: marzo-2009
Mensajes: 9
Antigüedad: 15 años, 1 mes
Puntos: 0
Añadir Lineas a un xml con php y flash

Hola

Soy nuevo en el sitio y estoy haciendo un sistema de envio de sms con php, flash y xml como los servicios de publimensajes.

tengo un archivo flash que contiene el siguiente action scritp

Código PHP:
// Action script...

// [onClipEvent of sprite 3 in frame 1]
onClipEvent (load)
{
    
1;
    
testo "loading XML data...";
}

// [onClipEvent of sprite 3 in frame 1]
onClipEvent (enterFrame)
{
    if (
<= testo.length)
    {
        
txtComment txtComment substring(1)ntesto, ;
        ++
n;
    }
    else
    {
        
stop ();
    } 
// end else if
}

// [Action in Frame 1]
function loadNews()
{
    function 
parseIt()
    {
        
lista = [];
        
lista this.childNodes;
        
nextItem(n);
    } 
// End of the function
    
newsXml = new XML();
    
newsXML.load("sms.xml?nocache=" getTimer());
    
newsXml.onLoad parseIt;
    
newsXml.ignoreWhite true;
    
= -1;
    
timer 20;
// End of the function
function nextItem(arrayN)
{
    
name lista[arrayN].attributes.name;
    
output name;
// End of the function
function changeNews(txt)
{
    
newsContent.txtComment "";
    
newsContent.testo txt;
    
newsContent.1;
// End of the function
System.useCodepage true;
this.onEnterFrame = function ()
{
    --
timer;
    
timerSec Math.floor(timer 10);
    
timerTxt "timer: " timersec;
    if (
timerSec <= 0)
    {
        
timer 200;
        if (
lista.length)
        {
            ++
n;
        }
        else
        {
            
0;
            
loadNews();
        } 
// end else if
        
nextItem(n);
        
changeNews(output);
    } 
// end if
};
loadNews(); 
despues el archivo xml que contiene lo siguiente:

Código PHP:
<news name="saludos a la gente de bandeando" /><news name="Queremos ver al Recodo en mas programas" /> 

Entonces mi pregunta seria como puedo crear el archivo php para que escriba en el archivo xml?

espero que me puedan ayudar ya que pues mire este sistema en una pagina y pues se me hizo interesante aplicarlo en mi sitio web.


Gracias por su ayuda y pues soy nuevo por aqui estare aportando mis conocimientos.


ivan Jauregui