Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Creating a new attribute in an XML node using E4X in AS3

Is there any way to do it?

like image 506
TurboHz Avatar asked Dec 18 '22 08:12

TurboHz


1 Answers

Thanks for answering.

I did found your explanations and link suggestions interesting and encouraging.

Anyway, I did not make myself clear with my question. What I did want to know was how to create any property, even without knowing it's name. I did read several docs and tutorials until I figured it out. Hope this can be of help.

var data:XML = <node/>;
var $my_attr:String = 'id';
data.@[$my_attr] = 'foo';
like image 122
TurboHz Avatar answered Jan 21 '23 14:01

TurboHz