Projects - Flex Builder - Image Viewer Application
.mxml code:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="horizontal"
horizontalAlign="left">
<mx:Array id="images">
<mx:String>images/photo1.jpg</mx:String>
<mx:String>images/photo2.jpg</mx:String>
<mx:String>images/photo3.jpg</mx:String>
<mx:String>images/photo4.jpg</mx:String>
<mx:String>images/photo5.jpg</mx:String>
<mx:String>images/photo6.jpg</mx:String>
<mx:String>images/photo7.jpg</mx:String>
<mx:String>images/photo8.jpg</mx:String>
<mx:String>images/photo9.jpg</mx:String>
<mx:String>images/photo10.jpg</mx:String>
</mx:Array>
<mx:List id="ctlImage" dataProvider="{images}"
selectedIndex="0" width="75" >
<mx:itemRenderer>
<mx:Component>
<mx:Image source="{data}" width="75" height="50"
/>
</mx:Component>
</mx:itemRenderer>
</mx:List>
<mx:Image source="{ctlImage.selectedItem.valueOf()}"
height="400" />
</mx:Application>
html code:
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
id="imageViewer" width="100%" height="100%"
codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab">
<param name="movie" value="imageViewer.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#869ca7" />
<param name="allowScriptAccess" value="sameDomain"
/><embed src="imageViewer.swf" quality="high"
bgcolor="#869ca7"
width="100%" height="100%" name="imageViewer"
align="middle"
play="true"
loop="false"
quality="high"
allowScriptAccess="sameDomain"
type="application/x-shockwave-flash"
pluginspage="http://www.adobe.com/go/getflashplayer">
</embed> </object>