I'd suggest you just solve this systematically, instead of guessing. Hard code a full url to a known image. Verify it in a browser, and test it in the app.
Then make that url relative, test it. If you can't find it, put the image in the same folder as the main app, test again with the full url in browser and app, then make the relative url (it should just be the file name alone). Test in the app. Move the image ONE folder toward where you want it. Adjust the relative url. Test. Repeat, until the Image is where you want it and the app works. Doing this will probably show you where your current logic is in error. Having to do this once or twice was one of the reasons I mostly stopped using relative urls, and started passing the full qualified url to the root "assets" folder from the html wrapper via flashvars. That technique has other benefits as well. Tracy --- In flexcoders@yahoogroups.com, "johndoematrix" <johndoemat...@...> wrote: > > when i do what you asked me to do by taking out the leading dots and > the forward slash, image icons appear but without loading the images. > could it be with the coldfusion query? coz it looks like its actually > trying to load the images but cant find them. am gonna revise my > coldfusion query bt if you dont mind you can also look at it see if am > doing something wrong. > > <cffunction name="load" output="false" access="remote" returntype="query"> > <cfargument name="ctry_id" required="true" type="numeric" default="0"> > <cfset var homes= ""> > <cfset var result= ""> > <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/IESTATE_V1/assets/homeprofile_pic s/' > + image AS profilePic, > lat, lng, description, > 'http://localhost:8500/iestate/images/video/' + tour AS video > FROM homes > </cfquery> > <cfreturn results> > </cffunction> >