Thread: GuiShowImgCtrls
View Single Post
  #2  
Old 12-17-2007, 10:40 PM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
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..
Reply With Quote