Actionscript 2.0 Search xml attribute to print its value
$30-250 USD
処理中
投稿日: 12年近く前
$30-250 USD
完了時にお支払い
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
[login to view URL][0].[login to view URL];
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.