hi guys am having problems with my tilelist itemrenderer. it shows the
text but not the image from my server. am using coldfusion backend to
query database and pass the result to the tilelist. here is my
itemrender and cfc

"itemrender"

<?xml version="1.0" encoding="utf-8"?>
<mx:HBox xmlns:mx="http://www.adobe.com/2006/mxml";>
        <mx:CurrencyFormatter id="cf"/>
<!--    <mx:Image source="{data.profilePic}"/> -->
                <mx:Image source="{'../assets/homeprofile_pics/' + 
data.profilePic}"/>
        <mx:VBox>
                <mx:Label text="{data.type}" fontWeight="bold"/>
                <mx:Label text="{cf.format(data.price)}"/>
        </mx:VBox>      
</mx:HBox>

"cfc query"
<cfquery name="homes" datasource="realestate">
                        select  id, ctryid_home, city, location, price, type, 
                                        square_feet, date_listed, bedrooms, 
bathrooms, status, 
                                        pool, backyard, closets, garage, sale, 
                                        rent, image, lat, lng, description, tour
                                        
                        FROM            homes 
                        WHERE           ctryid_home = <cfqueryparam 
value="#arguments.ctry_id#"
cfsqltype="cf_sql_integer" />                                                   
                                
                </cfquery>
                <cfquery dbtype="query" name="results">
                select          id, ctryid_home, city, location, price, type, 
                                        square_feet, date_listed, bedrooms, 
bathrooms, status, 
                                        pool, backyard, closets, garage, sale, 
                                        rent, 
'http://localhost:8500/assets/homeprofile_pics/' + image AS
profilePic,
                                        lat, lng, description,
'http://localhost:8500/iestate/images/video/' + tour AS video
                FROM homes              
                </cfquery>
                <cfreturn results>

i have tested the path to my images in a browser and it works but for
some reason it doesn't display the image in flex. any solutions?


Reply via email to