There is a different in system repnse between flex and air what you (Subeesh) suggexted worked for me fine under flex but not at all under air
moshe On Jan 21, 1:34 pm, subeesh a <[email protected]> wrote: > Hi, > > I assume that "r.currentItem.mood" gives the correct path to the image. Try > removing the @Embed() from the dynamic one like this > > <mx:Image height="35" width="35" source="{r.currentItem.mood}"/> > > Subeesh > > On Wed, Jan 21, 2009 at 3:14 PM, Yogesh Gaur <[email protected]>wrote: > > > > > HI...can u plz give more details of ur requirement and what is > > r.currentItem.mood ... by are using souce twice (source inside a > > source ) ...it doesnt work this way .... mostly for dynamic image > > loading ...u shd make a class and associate an image to it ... and > > then us that class in ActionScript > > > moshe wrote: > > > Hi > > > > I am trying to display images in 2 ways static and dynamic > > > unfortunately the dynamic display the last 2 doesn't show anything > > > > <mx:Image height="35" width="35" styleName="MediumIcon" > > > visible="{r.currentItem.extramedicine=='true'?true:false}" > > > source="@Embed('images/icon_extra-medicine.gif')"/> -> Display Image > > > > <mx:Image height="35" width="35" source="@Embed > > > ('{r.currentItem.mood}')"/> -> Don't display image > > > > <mx:Image height="35" width="35" source="@Embed > > > (source='{r.currentItem.mood}')"/> -> Don't display image > > > > moshe --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Flex India Community" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/flex_india?hl=en -~----------~----~----~----~------~----~------~--~---

