beh.... tu hai:

t.content = nodes[i].attributes.content;

basta che ci aggiungi sotto:

t.typecontent=nodes[i].attributes.typecontent;

e poi:

if(t.typecontent=="text"){

// fai le operazioni sul testo t.typecontent

} elseif(t.typecontent=="swf"){


// carica lo swf il cui nome e' contenuto in t.typecontent

}