RE: [flexcoders] Image loader from thumbnail repeater
It is working like a charm, thanks for helping! From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Manish JethaniSent: Thursday, February 09, 2006 7:34 PMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Image loader from thumbnail repeater On 2/9/06, Stephane B. [EMAIL PROTECTED] wrote: 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()Change "event.target" to "event.currentTarget" -- 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 Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
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 Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Image loader from thumbnail repeater
The Image component in the code extract (initial post below) relates tothe thumbnails. The"img" idrefers to the full size image component on the same view. Whena 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/thand /images/full. Would you have a syntax recommendation (actual code) for thesuggestion (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 JethaniSent: Thursday, February 09, 2006 10:40 AMTo: flexcoders@yahoogroups.comSubject: 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:RepeaterWhere does "img" come from? I think you meant "event.target"."currentItem" is not available in the click handler. Instead ofcurrent 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 Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Image loader from thumbnail repeater
On 2/9/06, Stephane B. [EMAIL PROTECTED] wrote: Would you have a syntax recommendation (actual code) for the suggestion (first reply below)? [old] click=img.load('images/booking/' + repImages.currentItem); [new] click=img.load('images/booking/' + repImages.getItemAt(event.target.repeaterIndex)); -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Image loader from thumbnail repeater
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 valueat ProductDetails/___Image2_click() any idea? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Manish JethaniSent: Thursday, February 09, 2006 10:40 AMTo: flexcoders@yahoogroups.comSubject: 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:RepeaterWhere does "img" come from? I think you meant "event.target"."currentItem" is not available in the click handler. Instead ofcurrent 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 Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Image loader from thumbnail repeater
On 2/9/06, Stephane B. [EMAIL PROTECTED] wrote: 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() Change event.target to event.currentTarget -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/