Hello, Vinod M Jacob
Have a nice day,
I am very thank you when you answered my question, I am very thank you
again.
asusudev
On Mon, Nov 3, 2008 at 4:08 PM, Vinod M Jacob <[EMAIL PROTECTED]> wrote:
> Try this
> orderList = orderInfo.item.(@id==1).price;
>
> On Nov 2, 7:31 pm, Asusu <[EMAIL PROTECTED]> wrote:
> > Hi everybody,
> >
> > I have a trouble when I try to use E4X Expressions
> >
> > Here's my error:
> > 1178 Attempted access of inaccessible property id through a reference
> > with static type E4XDynamicExpressions
> >
> > This error is generated in:
> > private function orderHandler():void {
> > orderList = orderInfo.item(@id==1).price;
> > }
> >
> > Thx u for reading
> >
> > <?xml version="1.0" encoding="utf-8"?>
> > <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
> > layout="absolute">
> > <mx:Script>
> > <![CDATA[
> > import mx.controls.List;
> > [Bindable]
> > private var orderList:String;
> >
> > private var orderInfo:XML =
> > <order>
> > <item id='1'>
> >
> <menuName>burger</menuName>
> > <price>3.95</price>
> > </item>
> > <item id='2'>
> >
> <menuName>fries</menuName>
> > <price>1.45</price>
> > </item>
> > </order>
> >
> > private function orderHandler():void {
> > orderList = orderInfo.item(@id==1).price;
> > }
> > ]]>
> > </mx:Script>
> >
> > <mx:LinkButton id="btnOrderHandler" label="Order Handler"
> > click="orderHandler()" x="10" y="20"/>
> > <mx:Label text="{orderList}" x="10" y="70" width="300"
> height="200"
> > fontSize="14"/>
> > </mx:Application>
> >
>
--
Thanh Su
Tin Long Co, LTD
Analyser
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex
India Community" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---