Load many file XML
welcome.
i working flex 2 weeks , have 1 problem.
i have panel displays images when user hovers mouse on thumbnail images in horizontallist, @ bottom of panel. images in horizontallist taken xml file.
i did today, 3 buttons , - when click on button 1 - load xml no. 1 in horizontallist. when click on button 2 - load xml no. 2 in horizontallist etc..
<mx:xml id="xml" source="gallery.xml" />
<mx:xmllistcollection id="xmllistcoll" source="{xml.image}" />
<mx:menubar fontfamily="verdana" fontsize="11" fontstyle="normal" fontweight="normal">
<mx:button label="button1" id="button1"/>
<mx:button label="button2" id="button2"/>
<mx:button label="button3" id="button3"/>
</mx:menubar>
<mx:panel id="panel"
layout="absolute"
stylename="opaquepanel"
width="100%"
height="100%">
<mx:image id="img"
scalecontent="true"
horizontalcenter="0"
verticalcenter="0"
maintainaspectratio="true"
width="250"
height="250"
completeeffect="fade" />
<mx:controlbar>
<mx:horizontallist id="horizontallist"
dataprovider="{xmllistcoll}"
labelfield="lbl"
iconfield="src"
itemrenderer="customitemrenderer"
columncount="4"
columnwidth="125"
rowheight="100"
width="100%"
horizontalscrollpolicy="on"
change="horizontallist_change(event);"
itemrollover="horizontallist_itemrollover(event);"
itemrollout="horizontallist_itemrollout(event);"
doubleclickenabled="true"
doubleclick="horizontallist_doubleclick(event);" />
</mx:controlbar>
</mx:panel>
</mx:application>
can me this, please?
can help?
More discussions in Flex (Read Only)
adobe
Comments
Post a Comment