Dessano
20.04.2007, 16:37
Искал по форуму, нашол много полезного по ХМЛ но немогу понять как отредактировать текст тагами в самом ХМЛе.
Вот мой код флеша:
var my_xml:XML = new XML();
my_xml.ignoreWhite = true;
my_xml.onLoad=function(success:Boolean){
if (success) {
trace(my_xml.firstChild.firstChild.attributes._name);
Property_name.text = my_xml.firstChild.firstChild.attributes._name;
}
}
my_xml.load("xml.xml");
Вот код ХМЛа:
<?xml version="1.0" encoding="UTF-8"?>
<root>
<!-- This is a comment -->
<it1 _name="All crew are busy right now, out and about getting tips.
And we are caught in a holding pattern. But check-in again
in a couple of weeks and crewguide.net will have landed.
Thanks, and happy travelling
The Crew Guide crew"/>
</root
Как отцентровать текст и каким тагом присвоить ему Фонт и размер м ХМЛЕ??
Вот мой код флеша:
var my_xml:XML = new XML();
my_xml.ignoreWhite = true;
my_xml.onLoad=function(success:Boolean){
if (success) {
trace(my_xml.firstChild.firstChild.attributes._name);
Property_name.text = my_xml.firstChild.firstChild.attributes._name;
}
}
my_xml.load("xml.xml");
Вот код ХМЛа:
<?xml version="1.0" encoding="UTF-8"?>
<root>
<!-- This is a comment -->
<it1 _name="All crew are busy right now, out and about getting tips.
And we are caught in a holding pattern. But check-in again
in a couple of weeks and crewguide.net will have landed.
Thanks, and happy travelling
The Crew Guide crew"/>
</root
Как отцентровать текст и каким тагом присвоить ему Фонт и размер м ХМЛЕ??