That would be my first suggestion as well, to debug that expression.  I
would move it to a function so I could trace the final source string.

 

Note, I have had a lot of trouble with run-time relative urls, so I
don't use them any more.  Instead, I pass root urls into flex from the
wrapper, so I always have a fully qualified url to assign to source.  I
can trace that url and paste it into a browser to make sure my image is
available where I expect.

 

Tracy

 

________________________________

From: [email protected] [mailto:[email protected]] On
Behalf Of claudiu ursica
Sent: Tuesday, December 30, 2008 9:20 AM
To: [email protected]
Subject: Re: [flexcoders] image in tilelist not showing

 

Are you sure that your binding expression for Image.source evaluates
correctly?
You're code seems ok to me. If the type and price are displayed the
source might be the issue...

Claudiu 

 

________________________________

From: johndoematrix <[email protected]>
To: [email protected]
Sent: Tuesday, December 30, 2008 3:25:04 PM
Subject: [flexcoders] image in tilelist not showing

hi guys i have a tilelist that is meant to show images from a database
bt only an image icon is shown instead of the actual image. am using
coldfusion as my backend. here is a sample of my code. 

<mx:TileList width="100%" height="100% " id="tlist"
dataProvider= "{dataAr} " rowHeight="150" columnWidth= "150"
itemRenderer= "components. TileListItemRend erer"/>

"TileListItemRender er.mxml"

<?xml version="1.0" encoding="utf- 8"?>
<mx:HBox xmlns:mx="http://www.adobe. com/2006/ mxml
<http://www.adobe.com/2006/mxml> ">
<mx:Image source="../assets/ profile_pics/ {data.image} "/>
<mx:VBox>
<mx:Label text="{data. type}" fontWeight=" bold"/>
<mx:Label text="{data. price}"/>
</mx:VBox> 
</mx:HBox>

 

 

Reply via email to