Actionscript 2.0 Search xml attribute to print its value

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"?>


<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' />



I need this fast please.

Taidot: ActionScript, Adobe Flash, XML

Näytä lisää: as2 0, actionscript 2, Value, ave, attribute, ActionScript, xml message, add print, promo text, 3650, codigo, xml move, dynamic attribute, 8859, text search, xml text, fast file move, search field add field, flash attributes, flash print, iso file, as2 dynamic text, text xml, file print, xml text file

Tietoa työnantajasta:
( 61 arvostelua ) Los Angeles, Costa Rica

Projektin tunnus: #1735354