8/27/2010 5:32:08 AM
Title:
List with different sizes of images in center of List
HI all,
i am trying to develop simple image gallery with prev and next
buttons,but images in the display(or list) should be of different
sizes. the current pic should be larger than remaining images in list.
the question i want to ask is... using item renderer can we change the
size of particular image in a list.
if no then what approach i have to follow to get this done.
something related to this
http://www.flashmo.com/preview/flashmo_209_photo_slider
or you can say
i need caraousel effect in list
http://examples.adobe.com/flex2/inproduct/sdk/photoviewer/PhotoViewer.html
plz provide me an approach i m right now try to study the code of Photo viewer
thnx in advance
8/27/2010 7:19:43 AM
you can try adding click listener to image inside your renderer and write the scaling code like this inside
protected function image1_clickHandler(event:MouseEvent):void
{
this.verticalScrollPolicy="off";
this.horizontalScrollPolicy="off";
this.scaleX=1.5;
this.scaleY=1.5;
}
Tyler
Points: 430
Posts:0
8/28/2010 12:25:04 AM
you can check this one a very good sample of image gallery , similar to yours with source code
http://demo.quietlyscheming.com/fisheye/index.html
this is the source download link
http://demo.quietlyscheming.com/source/Fisheye.zip
8/28/2010 10:57:33 PM
thnx tyler and wilbur fro reply
yup,
i needed something like the link given by Tyler
i owe a beer tyler thnx a lot
8/28/2010 10:58:42 PM
sry fro using another acct but the previous account is not allowing me to sign in
i guess some prob with site.
BTW thnx all...
8/28/2010 11:41:28 PM
Tyler it is asking for Framework Update path...
what i m supposed to do....?
Tyler
Points: 430
Posts:0
8/29/2010 12:39:53 AM
you should create a new flex project with flex compiler SDK 4.0 and copy the qs folder and 3 mxml files inside. Also create img folder and place 14 images with name from img1.jpg to img14.jpg
see function createData() to change number of images to load.