
12-17-2007, 10:40 PM
|
|
Will work for food. Maybe
|
 |
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
|
|
|
You're using getImgWidth/getImgHeight. This is all well and all, but they will not give you the correct width/height until the image is loaded in the cache(after it downloads)... and since you're calling this onCreated, and not in a timeout loop, it most likely isn't updated. Also, try bitmap="image"; and see if that makes a difference. I doubt it though.
If you're still having problems, try deducing what could be causing the problem. Change the image to something you KNOW works, like head0.png. Also, put an echo in the function to make sure the function is calling. |
Last edited by DustyPorViva; 12-17-2007 at 10:56 PM..
|
|
|