Hai! 

   I have been trying to expand a VBox containg details of an Image that is being clicked.. The image is placed in Tile which is inside a repeater.. i have problem in accessing the repeater object.. i tried using the repeaterIndices.. but it doesnt work.. Can anyone help me in this issue please.. please send me the code.. thanks in advance..

Regards,

nithya..

The MXML which i tried is:

<mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml">

<mx:Script>
          function show(index) {
         var e = new mx.effects.WipeDown(cart[index]);
   e.show=true;
         e.duration = 300;
         e.playEffect();
    }
     
    function hide(index){
     var f = new mx.effects.WipeUp(cart[index]);
       f.show=false;
    f.duration = 300;
    f.playEffect();
   } 
    </mx:Script>
   <mx:Effect>
        <mx:WipeDown  name="showCart" show="true" duration="300"/>
        <mx:WipeUp name="hideCart" show="false" duration="300"/>
    </mx:Effect>

    <mx:Model id="catalog" source="../catalog.xml"/>

    <mx:Canvas>

        <mx:Tile y="50" width="480">
            <mx:Repeater id="list" dataProvider="{catalog.product}" count="6">

<mx:VBox mouseOver="show(event.target.repeaterIndices[0])"   mouseOut="hide(event.target.repeaterIndices[0])" >
                    <mx:Image width="75" height="70" source="{list.currentItem.image}"/>
                   
             <mx:VBox id="cart" backgroundColor="#EEF5EE" borderStyle="solid" marginTop="8" marginLeft="8" marginBottom="8" marginRight="8" visible="false" showEffect="showCart" hideEffect="hideCart">


 <mx:Label text="Details:"/>
            </mx:VBox>
     <mx:Label text="{list.currentItem.name}"/>
                    <mx:Label text="${list.currentItem.price}"/>
                </mx:VBox>
            </mx:Repeater>
        </mx:Tile>

 </mx:Canvas>

</mx:Application>


Yahoo! Messenger - Communicate instantly..."Ping" your friends today! Download Messenger Now

Yahoo! Groups Links

Reply via email to