sending data from flash? - help, error in my code?

Discussion in 'Graphics & Multimedia' started by DonTino, May 29, 2008.

  1. #1
    hi all,

    ok I'm trying to send data from a flash app to the server using the following code:

    Code:
    
    function sendXML(){
        _root.cities["tempContainer"].attachMovie("pointer","point_" + i,_root.cities["tempContainer"].getNextHighestDepth(),{pointX:_root.cities["tempContainer"]["point_Changeable"].point._x,pointY:_root.cities["tempContainer"]["point_Changeable"].point._y,textX:_root.cities["tempContainer"]["point_Changeable"].pointBack._x,textY:_root.cities["tempContainer"]["point_Changeable"].pointBack._y,cityText:_root.cities["tempContainer"]["point_Changeable"].pointBack.cityName.text,color:_root.cities["tempContainer"]["point_Changeable"].color,fontSize:_root.cities["tempContainer"]["point_Changeable"].fontSize,urlGo:_root.cities["tempContainer"]["point_Changeable"].urlGo});
        
        var xmlText:XML = new XML();
        var xmlString:String = "<country id = " +selectedCountryNum+ "><point>"+"<dotx>"+_root.cities["tempContainer"]["point_Changeable"].point._x+"</dotx>"+"<doty>"+_root.cities["tempContainer"]["point_Changeable"].point._y+"</doty>"+"<labelx>"+_root.cities["tempContainer"]["point_Changeable"]._x+"</labelx>"+"<labely>"+_root.cities["tempContainer"]["point_Changeable"]._y+"</labely>"+"<city>"+_root.cities["tempContainer"]["point_Changeable"].pointBack.cityName.text+"</city>"+"<url>"+_root.cities["tempContainer"]["point_Changeable"].urlGo+"</url>"+"<fontsize>"+_root.cities["tempContainer"]["point_Changeable"].fontSize+"</fontsize>"+"<fontcolor>"+_root.cities["tempContainer"]["point_Changeable"].color+"</fontcolor></point></country>";
        xmlText.parseXML(xmlString);
        
        _root.cities["tempContainer"]["point_Changeable"].removeMovieClip();
        
        //------------------------------
        //--- SEND XML TO SERVER -------
        //-----------------------------
    
        xmlText.send("parsexml.php","_self");
    }
    Code (markup):
    The parsexml.php file is called without any problems however there's not data sent to the file at all. Is there an error in the code above?

    thanks a lot for the help, I'm really lost here and don't seem to get an answer anywhere

    Tino
     
    DonTino, May 29, 2008 IP