Yup this works fine , if you embed the image. 

But what if we want to still download the images dynamically and
maintain a single instance of it.!

 

I mailed abt this previously, But I am wondering where did the mail slip
! :P

Well the question is, 

 

Lets say in datagrid! I want to display images in cells and some images
may repeat depending on the content.

 

Its based on a entry in XML , say data.imageType , Now depending on it
... I should download the specific image and display it.

Yeah I can tweak around with embedding the images. But then I have 2
problems with it

 

1, I can dynamically change the image set without rebuilding the SWF!

2. My swf becomes huge and loading time increases.

 

I tried some insane things, but they really din't payoff !! ( for eg:
<mx:Image id="image1" source="http://someurl/image.jpg";  />

Now we want the same instance to be loaded as a mxml tag again....
<mx:Image id="image2" source="{image1.source}" /> is reloading the image
again ! :-( )

 

Suggest me a way out !! 

Thanks in advance

Ravi Gummadi

PartyGaming Plc. 

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Jeremy Tooley
Sent: Thursday, March 08, 2007 3:14 PM
To: [email protected]
Subject: Re: [flexcoders] Re: my application -- need help on multiple
images in datagrid

 

Thank you so much.. this worked and my datagrid now scrolls smooth. That

is only an image in the CCUVS page.
This application needed to get done very fast... 4 1/2 days so I didnt 
really do everything right.

A lot of shortcuts to get the job done

Jeremy

Cato Paus wrote:
>
> Hi Jeremy,
> I did the same whit a tree,
> then i did have to parse the xml and putt on the img,
> here is a short code snipp,
>
> /////////////////////////////////////////////////
>
> [Embed(source="images/folder.gif")]
> [Bindable]
> public var imgFolder:Class;
>
> var newItem : XMLList = new XMLList(<element label={fileList
> [f].fileName} path={fileList[f].path} isBranch={fileList[f].children}
> icon="imgFolder"/>);
>
> /////////////////////////////////////////////////
>
> this wath i have done to get the embeded img into my xml.
>
> hope this helps.
>
> Cato Paus
>
> --- In [email protected]
<mailto:flexcoders%40yahoogroups.com>  
> <mailto:flexcoders%40yahoogroups.com>, Jeremy Tooley <[EMAIL PROTECTED]>
wrote:
> >
> > I have an application I am working on where the datagrid gets
> populated
> > from an xml file and the images are loaded in from there as well.
> There
> > are only 2 images and I was wondering if it would be better to
> embed the
> > image and base it on a predetermined value.
> >
> > Here is my app so far.
> >
> > http://www.wemadethat.com/gov/UVSBack3.html
<http://www.wemadethat.com/gov/UVSBack3.html>  
> <http://www.wemadethat.com/gov/UVSBack3.html
<http://www.wemadethat.com/gov/UVSBack3.html> >
> >
> > If you click on the capability matrix you can see the green x's get
> > loaded over and over. I am just wondering if there is a better way.
> >
> > Thanks
> > Jeremy
> >
>
> 
> ----------------------------------------------------------
>
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.446 / Virus Database: 268.18.7/713 - Release Date:
3/7/2007 9:24 AM
> 

 

Reply via email to