Thread:Project:Support desk/How to get exact image path?

Hi, I am using the MediaWiki to display some articles in my Flash app. I have run into a problem when I try to display an image because, all that API gives me is File:Name of image.jpg but for example for image File:Krilleyekils.jpg the path that I can recreate is http://en.wikipedia.org/wiki/File:Krilleyekils.jpg but to display the image elsewhere I need this path http://upload.wikimedia.org/wikipedia/commons/thumb/6/64/Krilleyekils.jpg/627px-Krilleyekils.jpg any idea how can I get it?