header
ask question
Click here to ask Question Now Its free No registration required. Flash, Flex, Flash Media Server, ActionScript,Adobe Air. Most questions receive a response in an hour.
sriiz`
Points:0
Posts:0
Answered

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



1
Wilbur
Points: 510
Posts:0
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;
	
}


2
Tyler
Points: 430
Posts:0
Accepted Answer
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

3
srii
Points: 70
Posts:0
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

4
srii
Points: 70
Posts:0
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...

5
srii
Points: 70
Posts:0
8/28/2010 11:41:28 PM



Tyler it is asking for Framework Update path...

what i m supposed to do....?

6
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.


Post your Reply
Name  

Email

Type your Reply or Answer

Are you human? What is 2+1 



Members Login

Email  
Password
Forgot Password





This website focus on: Flash | Flex | FMS | RED5 | WOWZA | Flash Media Server | Adobe AIR | ActionScript,Flash Solutions | Flash Question | Flash Answers | Flash Developers | Flash Problem, Flash Help, Flash bugs, Flash workaround | Flash Blog | Flex Question Answers | Flash Forum | Flex Development | Actionscript development | Flash development | Adobe AIR development
Copyright © 2008 AskMeFlash.com. All rights reserved. Privacy Policy | Terms & Conditions