[flexcoders] can i store a dynamically loaded image?

2007-05-20 Thread JClouz
I am grabbing images from an http service at runtime and displaying them in 
flex:

myPic.load(url);

Works great, the picture loads in.  But after I load it in once, I'd like to 
store it so I don't need to query the http again if I need the image.

(I'm making a buddy list type component that shows the buddys picture, the pic 
has to be loaded at runtime but ideally I'd like to only grab it once and then 
store it in flex)


I'd like to be able to do something like this:

BuddyObject.pic = pic(url);

and then whenever I needed it:

myPic.load(BuddyObject.pic);

as opposed to

myPic.load(url);


Any ideas?

Thanks!


RE: [flexcoders] can i store a dynamically loaded image?

2007-05-20 Thread Alex Harui
See SuperImage at www.quietlyscheming.com

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of JClouz
Sent: Sunday, May 20, 2007 11:41 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] can i store a dynamically loaded image?

 

I am grabbing images from an http service at runtime and displaying them
in flex:

 

myPic.load(url);

 

Works great, the picture loads in.  But after I load it in once, I'd
like to store it so I don't need to query the http again if I need the
image.

 

(I'm making a buddy list type component that shows the buddys picture,
the pic has to be loaded at runtime but ideally I'd like to only grab it
once and then store it in flex)

 

 

I'd like to be able to do something like this:

 

BuddyObject.pic = pic(url);

 

and then whenever I needed it:

 

myPic.load(BuddyObject.pic);

 

as opposed to

 

myPic.load(url);

 

 

Any ideas?

 

Thanks!