you want .text
What you're getting there is the toString() for the quantity node.
On Fri, Aug 29, 2008 at 10:58 AM, David Pariente <[EMAIL PROTECTED]>wrote:
> hi,
>
> that's the first i tried...but got same result...:(
>
> thnx for answer
>
> Tim Hoff escribió:
> >
> > Hi David,
> >
> > text="{rIngredients.currentItem.ingredient.quantity.*valueOf()}"*
> >
> > -TH
> >
> > --- In [email protected], David Pariente <[EMAIL PROTECTED]>
> wrote:
> > >
> > > hi, here i am again with a newbie problem...
> > >
> > > I made a repeater to show me text lines from an XML, but for some
> > reason
> > > it doesnt show me the value ONLY.
> > >
> > > <mx:Repeater id="rIngredients" dataProvider="{rXML.ingredients}">
> > > <mx:Text x="0" y="10"
> > > text="{rIngredients.currentItem.ingredient.quantity}" width="518"
> > > fontFamily="petitam" fontSize="12" enabled="true" color="#000000"/>
> > >
> > > </mx:Repeater>
> > >
> > > it works, but shows: "<quantity>1 pc.</quantity>", in stead on just
> > "1pc."
> > >
> > > Also...i wanna join 2 XML values inside that text line, like this:
> > >
> > > {rIngredients.currentItem.ingredient.quantity} -
> > > {rIngredients.currentItem.ingredient.ingname}
> > >
> > > so i get: "tomatoes - 2".
> > >
> > > Now if i do like that i get first a list of all quantities...then a
> > list
> > > of all ingredients after that :(
> > >
> > > Any idea of how to solve the 2 things?
> > > thnx a lot for ur help
> > >
> >
> >
>
>
>
> ------------------------------------
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> Links
>
>
>
>
--
"Therefore, send not to know For whom the bell tolls. It tolls for thee."
:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]