Código :
import mx.controls.DateChooser;
import mx.controls.DataGrid;
import flash.geom.Point;
import mx.controls.gridclasses.DataGridColumn;
bsx = new XML();
bsx.ignoreWhite = true;
bsx.load("../exp3/base2.xml");
bsx.onLoad = prese;
bsx.onLoad = carg;
//>>>>>>>>>>>>>>>>>>>>>>>>>>FUNCIONES<<<<<<<<<<<<<<<<<<<<<<<
function act() {
}
function prese() {
tdg.headerHeight = 20;
tdg.resizableColumns = true;
tdg.selectable = true;
tdg.showHeaders = true;
}
function carg() {
var mdp:Array = new Array();
largo = bsx.firstChild.childNodes.length;
for (var i = 0; i<largo; i++) {
mdp.addItem({codigo:bsx.firstChild.childNodes[i].attributes.codigo, nombre:bsx.firstChild.childNodes[i].attributes.nombre, precio:bsx.firstChild.childNodes[i].attributes.precio});
}
tdg.dataProvider = mdp;
}
if (pre.getFocus=true) {
ingresar();
}
function ingresar() {
var elem1:XMLNode = bsx.createElement("registro");
elem1.attributes.codigo = cod.text
elem1.attributes.nombre = nom.text
elem1.attributes.precio = pre.text
bsx.firstChild.appendChild(elem1);
carg();
cod.text = "";
nom.text = "";
pre.text = "";
}
function borrar() {
largo = bsx.firstChild.childNodes.length;
bsx.firstChild.childNodes[0].removeNode();
carg();
}
function modificar() {
}
function limpiar() {
cod.text = "";
nom.text = "";
pre.text = "";
}
LA pregunta es hay como reemplazar con send(xml) o similar, pero no con archivos asp o php, si me pueden ayudar con cualquier cosa
