How can I use a IF to check if an image are in my system.DocumentsDirectory?
Label: corona android iphone ipad building error inmobi problem display screen View image tableView failed object physics touch button game lua config event listener |
how know if an image exits?
Try something like this:
1 2 3 4 5 6 7 8 9 10 | local function doesFileExist(filename) local path = system.pathForFile( filename, system.DocumentsDirectory) local file = io.open( path, "r" ) local fileExists = false if file then io.close( file ) fileExists = true end return fileExists end |
views:1547 update:2011/10/29 17:13:10
热门文章
GameCenter LeaderBoards and Achievements Enabled Through OpenFeint
send message and call to a person
Forum: Report Spam + PM
[INSTALL_PARSE_FAILED_NO_CERTIFICATES]
[SOLVED] Director ERROR: Failed to execute new( params ) function on 'screen1'
Too many (200) local variables
Corona SVG Level Builder released. Drag and drop physics level editor with Inkscape and SVG.
Small bug in Collectible Items example
Pivot Joints and apparent elasticity
Can't make removeSelf() delayed
send message and call to a person
Forum: Report Spam + PM
[INSTALL_PARSE_FAILED_NO_CERTIFICATES]
[SOLVED] Director ERROR: Failed to execute new( params ) function on 'screen1'
Too many (200) local variables
Corona SVG Level Builder released. Drag and drop physics level editor with Inkscape and SVG.
Small bug in Collectible Items example
Pivot Joints and apparent elasticity
Can't make removeSelf() delayed
相关文章
help about spritesheet vs movie clip
Make a hitbox inside a newImage
How can i make a ladder with box2d and the Corona sdk
localGroup:insert() : informations
Ball Frenzy now available in Android Market
Please fix xScale and yScale with Box2D
Variables
Which xCode version?
"Squashabug!" now available in the App Store :)
How to continuos play background music upon scene switching
Make a hitbox inside a newImage
How can i make a ladder with box2d and the Corona sdk
localGroup:insert() : informations
Ball Frenzy now available in Android Market
Please fix xScale and yScale with Box2D
Variables
Which xCode version?
"Squashabug!" now available in the App Store :)
How to continuos play background music upon scene switching
corona forums © 2003-2011