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>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to