Looks like the right solution, but I get the following error:
ReferenceError: Error #1069: Property repeaterIndex not found on flash.display.Loader and there is no default value
 at ProductDetails/___Image2_click()
 
any idea?


From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Manish Jethani
Sent: Thursday, February 09, 2006 10:40 AM
To: [email protected]
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