From: Ravi Kumar Gummadi 
Sent: Thursday, March 08, 2007 10:38 AM
To: '[email protected]'
Subject: Problem with multiple instantiation of image in MXML!!
 
Hi,
 
 
I am facing problems in instantiating the image class with same downloaded 
image multiple times.
 
Lets say I have the following code:
 
<mx:Image id=”image1” source=”http://someurl/some.jpg”  />
 
In the above line the  image is downloaded once! Now if you want to use the 
same image again without downloading again, How would we achieve that?
 
<mx:Image id=”image2” source=”{image1.source}” /> is downloading the image 
again!
< mx:Image id=”{image1 }    />  returns a compilation error ! ( I know that 
it’s a blunder of writing code :D )
 
I have been trying many other ways of doing that, But nothing seems to work!!!!
 
Help me out !
 
Cheers 
 
Ravi Gummadi
Partygaming Plc.


 
____________________________________________________________________________________
Expecting? Get great news right away with email Auto-Check. 
Try the Yahoo! Mail Beta.
http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html 

Reply via email to