Actionscript 2.0 Search xml attribute to print its value

В роботі Опубліковано %project.relative_time Оплачується при отриманні
В роботі Оплачується при отриманні

I have an xml (attached at the end of the message) and i need a flash as2 file with a dynamic text field to show the value of the attribute PriceA based on the Codigo attribute.

Right now im loading the PriceA values on textfields based on its position using

[url removed, login to view][0].[url removed, login to view];

But if i add, delete or move a child from its original position all my values change. I need to be able to define a textfield content based on its Codigo attributes and not based on his position.

So just by changing the Codigo value on the Actionscript i can change the .text content of the textfield.

This is the example XML.

<?xml version="1.0" encoding="iso-8859-1"?>

<Productos>

<Linea Codigo='2012' Descript='Comb1 1/4 lb s/queso' PriceA='3100' />

<Linea Codigo='2013' Descript='Comb2 1/2 lb Dble c/Queso' PriceA='3650' />

<Linea Codigo='2464' Descript='Combo 1/4 Promo(Ave)GD' PriceA='2800' />

</Productos>

Thanks,

I need this fast please.

ActionScript Adobe Flash XML

ID Проекту: #1735354

Про проект

13 заявок(-ки) Дистанційний проект Остання активність Jul 4, 2012