Re: [flexcoders] Re: not kosher to call function from inline renderer?

2007-10-17 Thread paulh
droponrcll wrote:
> I'm not sure where your sampleData.sampleIm agery is coming from, but

a CFC object.

> var ib = new ImageBlob(
> i.imageWidth,
> i.imageHeight,
> blobToImage( i.thumbnial, i.imageHeight, i.imageWidth)
> );
> tempArray.push( ib);

i see. thanks.




[flexcoders] Re: not kosher to call function from inline renderer?

2007-10-17 Thread droponrcll
--- 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:





Just a thought from a relative newbie...

-Amy




Re: [flexcoders] Re: not kosher to call function from inline renderer?

2007-10-17 Thread Paul Hastings
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.


[flexcoders] Re: not kosher to call function from inline renderer?

2007-10-17 Thread droponrcll
--- In flexcoders@yahoogroups.com, Paul Hastings <[EMAIL PROTECTED]> 
wrote:
>
> Paul deCoursey wrote:
> > The inline component doesn't have that method in scope. Try
> > {this.parentDocumen t.blobToImage. ...
> 
> spoke too soon. while this got rid of the complier error, that 
method's still 
> not getting called ie breakpoints on it never get fired.
> 
> any ideas?

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?



[flexcoders] Re: not kosher to call function from inline renderer?

2007-10-16 Thread realeyes_jun
Livedocs -->
http://livedocs.adobe.com/flex/201/html/cellrenderer_072_24.html

-Jun

--- In flexcoders@yahoogroups.com, Paul Hastings <[EMAIL PROTECTED]>
wrote:
>
> Paul deCoursey wrote:
> > The inline component doesn't have that method in scope. Try
> > {this.parentDocumen t.blobToImage. ...
>
> yup that did the trick. thanks paul.
>
> btw is documented anywhere?
>