The Image component in the code extract (initial post below) relates to the thumbnails. The "img" id refers to the full size image component on the same view. When a thumb within the repeater is clicked, it is expected to change the source of the full size image "img" accordingly. Thumb and full size image are two physical images but share the same exact name, it is the path that differs: /images/th and /images/full.
 
Would you have a syntax recommendation (actual code) for the suggestion (first reply below)? Meanwhile, I will try to figure it out and will post a reply if I succeed.
 
Thanks for helping, and congrat to the group owner for such effective initiative!
 
Steph


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Manish Jethani
Sent: Thursday, February 09, 2006 10:40 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Image loader from thumbnail repeater

On 2/9/06, Stephane B. <[EMAIL PROTECTED]> wrote:

>  <mx:Repeater id="repImages"  dataProvider="{product.image}">
>      <mx:Image  source="images/th/{repImages.currentItem}" width="69" height="93"  click="img.load('images/booking/' + repImages.currentItem);"  />
>  </mx:Repeater>

Where does "img" come from?  I think you meant "event.target".

"currentItem" is not available in the click handler.  Instead of
current item, use getItemAt() and pass it the object's
"repeaterIndex".


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to