This is what I have so far <?xml version="1.0" encoding="utf-8"?> > > <!-- > http://blog.flexexamples.com/2007/10/03/displaying-images-from-an-xml-file-using-the-repeater-component/ > > --> > > <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" > > layout="vertical" > > verticalAlign="middle" > > backgroundColor="white"> > > > <mx:Script> > > <![CDATA[ > > private function toggleImage():void { > > if (rep.currentItem.visible) > > rep.currentItem.visible=false > > else > > rep.currentItem.visible=true; > > } > > ]]> > > </mx:Script> > > > <mx:XML id="imagesXML" source="images.xml" /> > > <mx:Zoom id="zoom" /> > > <mx:HBox id="hBox"> > > <mx:Repeater id="rep" > > dataProvider="{imagesXML.image}"> > > > > <mx:Image source="{rep.currentItem.@src}" > > toolTip="{rep.currentIndex}:{rep.currentItem.@alt}" > > completeEffect="{zoom}" > > id="repImage" > > maxWidth="100" > > maxHeight="70" > > click= maxHeight="{FlexGlobals.topLevelApplication.height}" > > /> > > </mx:Repeater> > > </mx:HBox> > > </mx:Application> >
-- You received this message because you are subscribed to the Google Groups "Flex India Community" group. To view this discussion on the web visit https://groups.google.com/d/msg/flex_india/-/Muj07XT1jlIJ. 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.

