Variable file names @2x/dynamic resolution?

In the two cases below, how would i insure that my application properly pull the @2x version of the image for retina displays. Right now, adding an @2x variation to the directory isn’t working. Thanks!

[lua]-----------------------
for i=1, 6 do
data[i].image = “wall”…i…“a.png”
end


detailScreenimage = display.newImageRect(“wall”…id…".png",320,480)


[lua] [import]uid: 13050 topic_id: 10282 reply_id: 310282[/import]

The directory? No the way it works is using filenames. So have both wall2a.png and wall2a@2x.png sitting right next to each other, and if you have the dynamic resolution setup in your settings then it’ll automatically load the correct version:

http://blog.anscamobile.com/2011/01/dynamic-image-resolution-made-easy/ [import]uid: 12108 topic_id: 10282 reply_id: 37503[/import]