--- In flexcoders@yahoogroups.com, Paul Hastings <[EMAIL PROTECTED]> wrote: > > droponrcll wrote: > > Is it possible to use the blobToImage when creating the datasource for > > the ItemRenderers so that you just pull that as a property from the > > objects in your ArrayCollection? > > not sure i'm following.
I'm not sure where your sampleData.sampleImagery is coming from, but let's assume it is an ArrayCollection containing Value Objects that is generated when parsing XML. Let's call the value objects BlobImages. Your blobToImage function returns something that can be used directly as an image source, obviously. What I'm not clear on is if it is a format that can be stored. I would suspect it can, since it gets passed back out of your blobToImage function. So, if it can be stored, you could do something like this as you make each ImageBlob (assume i is your raw imageblob in a for each loop): var ib = new ImageBlob( i.imageWidth, i.imageHeight, blobToImage(i.thumbnial, i.imageHeight, i.imageWidth) ); tempArray.push(ib); then in your mxml code: <mx:Component> <mx:Image height="{data.data.imageHeight}" width="{data.data.imageWidth}" source="{data.data.imageBlob}"/> </mx:Component> Just a thought from a relative newbie... -Amy