I can,t give the URL direcltly as source because. In the item 
renderer i have some images in the image map at the client side 
binded into swf and if some body doesnt want the default images for 
the item renderer they can place the custom images at server. so i 
need to bring the new images and replace the old image class 
variables, so that the item renderer takes the new images classes.

imageMap<criteria, Image as Class> bring the new images uploaded at 
server for a partcular criteria the replace the old image in the 
image map with the new image and item renderer image uses this source 
to display the images in itemrenderer.

Thanks,
Srikanth

--- In [email protected], Jehanzeb Musani <[EMAIL PROTECTED]> 
wrote:
>
> You can directly specify the image url as the source
> of the image control in your itemrenderer.
> 
> If you have a Facebook account and you have photo
> albums in your profile then you can runt the attached
> SWF to view the demo of loading images at runtime.
> 
> Below is the code excerpt from that SWF.
> 
> Image Control
> -------------
> <mx:Image id="albumPic" x="372" y="87"
> scaleContent="false" width="182" height="170"/>
> 
> Code to set Image Source
> ------------------------
> //Contains list of FacebookPhoto loaded at runtime
> [Bindable] private var picturesArray:Array;
> 
> private function OnPhotSelected(event:ListEvent) :
> void
> {
>   var selectedPic:FacebookPhoto 
>     = this.picturesArray 
>            [this.photosGrid.selectedIndex] 
>   as FacebookPhoto;
> 
>   this.albumPic.source = selectedPic.src_big;
> }
> 
> --- srikanth_reddy_007 <[EMAIL PROTECTED]>
> wrote:
> 
> > I have an Item renderer which has an image and it
> > displays the images 
> > depending on the type of the item
> > 
> > What i want is to load the images dynamically from
> > the server at run 
> > time and keep them in a Dictionary <Type,Class> at
> > the begining of the 
> > app and the item renderer takes the images from the
> > dictionary.
> > 
> > i used loader.load(urlReq) to load the image
> > dynamically and how can i 
> > convert it to Class object? so that for the tem
> > renderer image i can 
> > use binding as source={imagemap["100"]}
> > 
> > 
> 
> 
> 
>       
______________________________________________________________________
______________
> Looking for last minute shopping deals?  
> Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping
>


Reply via email to