oops, read event.result.getItemAt(0) instead of lastResult[0]...
I think you should keep one data holder (mx:Model or arrayCollection)
which would be bound to gallery and whatever has to get images path and
label.
You may keep mx:Model (because easier to read than AS) to store data
usefull for
Hi,
I think addImg() in imageListHandler should be in
concernOriginalReceived.
And I'm not sure source strings in addImg() are expanded (such as
assets/homeprofile_pics/extra_pics/{homeImages.img1}), I think expansion of
vars in {} only occurs in tags not in as.
But your code is much
hi, care to show how to do that, kinda confused
Sorry didnt mean to be offensive, but the difficulty to read the code is
probably also the problem : the array of paths to images is build three
times item by item and mx:Model may not dispatch event on item update.
In dataAr1, homeImages and home_img. dataAr1 is bindable so you could build
the
Hi you were not being offensive, sorry if i gave you the idea you were, as a
matter of fact you are trying to help and i am grateful for it. now i cant use
lastResult because i am using a remote object and there is no resultFormat
property on RemoteObject methods. so am still stuck, plus where
hi i have changed the dataprovider of the gallery from an array to an
arraycollection, what an trying to archive is that when someone clicks on the
list a different set of images is loaded in the gallery, that mean i would like
to update the arraycollection with a new set of images when an item
i hard-code an image path in imgGallery.mxml and it shows up perfectly bt i
can't hard-code an image path in thumbnail.mxml coz its used as an item
renderer for the horizontal list in imgGallery.mxml. but the image path work
perfectly.
nop that doesn't work, but when i hard-code the image path in the array the
images show up but when i use a dynamic path, no image shows up. below is the
hard-coded array of images and the same array of images but with a dynamic
path
imgGallery.mxml
?xml version=1.0 encoding=utf-8?
I think parentDocument from itemRenderer is horizontalList not gallery.mxml.
thomas
---
http://www.web-attitude.fr/
msn : thomas.parqu...@web-attitude.fr
softphone : sip:webattit...@ekiga.net sip%3awebattit...@ekiga.net
téléphone portable : +33601 822 056
2009/7/6 stinasius stinas...@yahoo.com
You dont get it. the parentDocument is the main application where the
horizontal list is loaded. here is the complete code...
gallery.mxml
?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute
xmlns:ns1=components.*
mx:Script
Maybe home_img in imgGallery.mxml is not refreshed when homeImages is
updated or not bindable too.
thomas
---
http://www.web-attitude.fr/
msn : thomas.parqu...@web-attitude.fr
softphone : sip:webattit...@ekiga.net sip%3awebattit...@ekiga.net
téléphone portable : +33601 822 056
2009/7/6
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: dynamic image gallery
You dont get it. the parentDocument is the main application where the
horizontal list is loaded. here is the complete code...
gallery.mxml
?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http
someone please help point out what am doing wrong in the code. would really
appreciate it.
Add a Label to thumbnail.mxml and show the image path to see that it
is getting that. Then hard-code an image path in thumbnail.mxml. This
will help you isolate the problem.
2009/7/6 stinasius stinas...@yahoo.com:
someone please help point out what am doing wrong in the code. would really
i have tried to do as you asked, added a label to the thumbnail.mxml and the
labels show up as expected. still haven't seen why those images cant show in
the Horizontal list.
Does an image appear if you hardcode the image source in thumbnail.mxml?
2009/7/6 stinasius stinas...@yahoo.com:
i have tried to do as you asked, added a label to the thumbnail.mxml and the
labels show up as expected. still haven't seen why those images cant show in
the Horizontal list.
any help guys?
17 matches
Mail list logo